Documentation
¶
Index ¶
- func AuthResolver(cli command.Cli) ...
- func HistoryWrite(ctx formatter.Context, human bool, histories []image.HistoryResponseItem) error
- func NewBuildCommand(dockerCli command.Cli) *cobra.Command
- func NewHistoryCommand(dockerCli command.Cli) *cobra.Command
- func NewHistoryFormat(source string, quiet bool, human bool) formatter.Format
- func NewImageCommand(dockerCli command.Cli) *cobra.Command
- func NewImagesCommand(dockerCLI command.Cli) *cobra.Command
- func NewImportCommand(dockerCli command.Cli) *cobra.Command
- func NewLoadCommand(dockerCli command.Cli) *cobra.Command
- func NewPruneCommand(dockerCli command.Cli) *cobra.Command
- func NewPullCommand(dockerCli command.Cli) *cobra.Command
- func NewPushCommand(dockerCli command.Cli) *cobra.Command
- func NewRemoveCommand(dockerCli command.Cli) *cobra.Command
- func NewSaveCommand(dockerCli command.Cli) *cobra.Command
- func NewTagCommand(dockerCli command.Cli) *cobra.Command
- func PushTrustedReference(ctx context.Context, ioStreams command.Streams, ...) errordeprecated
- func RunPrune(ctx context.Context, dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)
- func RunPull(ctx context.Context, dockerCLI command.Cli, opts PullOptions) error
- func RunPush(ctx context.Context, dockerCli command.Cli, opts pushOptions) error
- func RunSave(ctx context.Context, dockerCli command.Cli, opts saveOptions) error
- func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ...) errordeprecated
- func TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ...) errordeprecated
- func TrustedReference(ctx context.Context, cli command.Cli, ref reference.NamedTagged) (reference.Canonical, error)
- type PullOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthResolver ¶
func AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig
AuthResolver returns an auth resolver function from a command.Cli
func HistoryWrite ¶
HistoryWrite writes the context
func NewBuildCommand ¶
NewBuildCommand creates a new `docker build` command
func NewHistoryCommand ¶
NewHistoryCommand creates a new `docker history` command
func NewHistoryFormat ¶
NewHistoryFormat returns a format for rendering an HistoryContext
func NewImageCommand ¶
NewImageCommand returns a cobra command for `image` subcommands
func NewImagesCommand ¶
NewImagesCommand creates a new `docker images` command
func NewImportCommand ¶
NewImportCommand creates a new `docker import` command
func NewLoadCommand ¶
NewLoadCommand creates a new `docker load` command
func NewPruneCommand ¶
NewPruneCommand returns a new cobra prune command for images
func NewPullCommand ¶
NewPullCommand creates a new `docker pull` command
func NewPushCommand ¶
NewPushCommand creates a new `docker push` command
func NewRemoveCommand ¶
NewRemoveCommand creates a new `docker remove` command
func NewSaveCommand ¶
NewSaveCommand creates a new `docker save` command
func NewTagCommand ¶
NewTagCommand creates a new `docker tag` command
func PushTrustedReference
deprecated
func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, in io.Reader) error
PushTrustedReference pushes a canonical reference to the trust server.
Deprecated: use trust.PushTrustedReference instead. this function was only used internally and will be removed in the next release.
func RunPrune ¶
func RunPrune(ctx context.Context, 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 TagTrusted
deprecated
func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ref reference.NamedTagged) error
TagTrusted tags a trusted ref. It is a shallow wrapper around APIClient.ImageTag that updates the given image references to their familiar format for tagging and printing.
Deprecated: this function was only used internally, and will be removed in the next release.
func TrustedPush
deprecated
func TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, options image.PushOptions) error
TrustedPush handles content trust pushing of an image.
Deprecated: this function was only used internally and will be removed in the next release.
Types ¶
type PullOptions ¶
type PullOptions struct {
// contains filtered or unexported fields
}
PullOptions defines what and how to pull