package content

import "github.com/containerd/containerd/cmd/ctr/commands/content"

Index

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(ref string, cliContext *cli.Context) (containerd.Image, error)

Fetch loads all resources into the content store and returns the image

Types

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

content.go fetch.go

Version
v1.1.0-rc.2
Published
Apr 13, 2018
Platform
js/wasm
Imports
23 packages
Last checked
1 minute ago

Tools for package owners.