package content
import "github.com/containerd/containerd/cmd/ctr/commands/content"
Index ¶
- Variables
- func Display(w io.Writer, statuses []StatusInfo, start time.Time)
- func Fetch(ctx context.Context, client *containerd.Client, ref string, config *FetchConfig) (images.Image, error)
- type FetchConfig
- type StatusInfo
Variables ¶
var ( // Command is the cli command for managing content Command = cli.Command{ Name: "content", Usage: "manage content", Subcommands: cli.Commands{ activeIngestCommand, deleteCommand, editCommand, fetchCommand, fetchObjectCommand, getCommand, ingestCommand, listCommand, pushObjectCommand, setLabelsCommand, }, } )
Functions ¶
func Display ¶
func Display(w io.Writer, statuses []StatusInfo, start time.Time)
Display pretty prints out the download or upload progress
func Fetch ¶
func Fetch(ctx context.Context, client *containerd.Client, ref string, config *FetchConfig) (images.Image, error)
Fetch loads all resources into the content store and returns the image
Types ¶
type FetchConfig ¶
type FetchConfig struct { // Resolver Resolver remotes.Resolver // ProgressOutput to display progress ProgressOutput io.Writer // Labels to set on the content Labels []string // PlatformMatcher matches platforms, supersedes Platforms PlatformMatcher platforms.MatchComparer // Platforms to fetch Platforms []string // Whether or not download all metadata AllMetadata bool }
FetchConfig for content fetch
func NewFetchConfig ¶
NewFetchConfig returns the default FetchConfig from cli flags
type StatusInfo ¶
type StatusInfo struct { Ref string Status string Offset int64 Total int64 StartedAt time.Time UpdatedAt time.Time }
StatusInfo holds the status info for an upload or download
Source Files ¶
- Version
- v1.4.7
- Published
- Jul 13, 2021
- Platform
- linux/amd64
- Imports
- 24 packages
- Last checked
- 1 second ago –
Tools for package owners.