image

package
v20.10.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTargetToAllSignableRoles

func AddTargetToAllSignableRoles(repo client.Repository, target *client.Target) error

AddTargetToAllSignableRoles attempts to add the image target to all the top level delegation roles we can (based on whether we have the signing key and whether the role's path allows us to). If there are no delegation roles, we add to the targets role.

func AuthResolver

func AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig

AuthResolver returns an auth resolver function from a command.Cli

func HistoryWrite

func HistoryWrite(ctx formatter.Context, human bool, histories []image.HistoryResponseItem) error

HistoryWrite writes the context

func NewBuildCommand

func NewBuildCommand(dockerCli command.Cli) *cobra.Command

NewBuildCommand creates a new `docker build` command

func NewHistoryCommand

func NewHistoryCommand(dockerCli command.Cli) *cobra.Command

NewHistoryCommand creates a new `docker history` command

func NewHistoryFormat

func NewHistoryFormat(source string, quiet bool, human bool) formatter.Format

NewHistoryFormat returns a format for rendering an HistoryContext

func NewImageCommand

func NewImageCommand(dockerCli command.Cli) *cobra.Command

NewImageCommand returns a cobra command for `image` subcommands

func NewImagesCommand

func NewImagesCommand(dockerCli command.Cli) *cobra.Command

NewImagesCommand creates a new `docker images` command

func NewImportCommand

func NewImportCommand(dockerCli command.Cli) *cobra.Command

NewImportCommand creates a new `docker import` command

func NewLoadCommand

func NewLoadCommand(dockerCli command.Cli) *cobra.Command

NewLoadCommand creates a new `docker load` command

func NewPruneCommand

func NewPruneCommand(dockerCli command.Cli) *cobra.Command

NewPruneCommand returns a new cobra prune command for images

func NewPullCommand

func NewPullCommand(dockerCli command.Cli) *cobra.Command

NewPullCommand creates a new `docker pull` command

func NewPushCommand

func NewPushCommand(dockerCli command.Cli) *cobra.Command

NewPushCommand creates a new `docker push` command

func NewRemoveCommand

func NewRemoveCommand(dockerCli command.Cli) *cobra.Command

NewRemoveCommand creates a new `docker remove` command

func NewSaveCommand

func NewSaveCommand(dockerCli command.Cli) *cobra.Command

NewSaveCommand creates a new `docker save` command

func NewTagCommand

func NewTagCommand(dockerCli command.Cli) *cobra.Command

NewTagCommand creates a new `docker tag` command

func PushTrustedReference

func PushTrustedReference(streams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig types.AuthConfig, in io.Reader) error

PushTrustedReference pushes a canonical reference to the trust server. nolint: gocyclo

func RunPrune

func RunPrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)

RunPrune calls the Image Prune API This returns the amount of space reclaimed and a detailed output string

func RunPull

func RunPull(cli command.Cli, opts PullOptions) error

RunPull performs a pull against the engine based on the specified options

func RunPush

func RunPush(dockerCli command.Cli, opts pushOptions) error

RunPush performs a push against the engine based on the specified options

func RunSave

func RunSave(dockerCli command.Cli, opts saveOptions) error

RunSave performs a save against the engine based on the specified options

func TagTrusted

func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ref reference.NamedTagged) error

TagTrusted tags a trusted ref nolint: interfacer

func TrustedPush

func TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig types.AuthConfig, options types.ImagePushOptions) error

TrustedPush handles content trust pushing of an image

func TrustedReference

func TrustedReference(ctx context.Context, cli command.Cli, ref reference.NamedTagged, rs registry.Service) (reference.Canonical, error)

TrustedReference returns the canonical trusted reference for an image reference

Types

type PullOptions

type PullOptions struct {
	// contains filtered or unexported fields
}

PullOptions defines what and how to pull

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL