{"modulePath":"github.com/rancher/docker-cli","version":"v0.0.0-20190201110649-896ff57b300c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package image\n\n## Functions\n\n```go\nfunc AddTargetToAllSignableRoles(repo client.Repository, target *client.Target) error\n```\nAddTargetToAllSignableRoles 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.\n\n```go\nfunc AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig\n```\nAuthResolver returns an auth resolver function from a command.Cli\n\n```go\nfunc HistoryWrite(ctx formatter.Context, human bool, histories []image.HistoryResponseItem) error\n```\nHistoryWrite writes the context\n\n```go\nfunc NewBuildCommand(dockerCli command.Cli) *cobra.Command\n```\nNewBuildCommand creates a new \\`docker build\\` command\n\n```go\nfunc NewHistoryCommand(dockerCli command.Cli) *cobra.Command\n```\nNewHistoryCommand creates a new \\`docker history\\` command\n\n```go\nfunc NewHistoryFormat(source string, quiet bool, human bool) formatter.Format\n```\nNewHistoryFormat returns a format for rendering an HistoryContext\n\n```go\nfunc NewImageCommand(dockerCli command.Cli) *cobra.Command\n```\nNewImageCommand returns a cobra command for \\`image\\` subcommands\n\n```go\nfunc NewImagesCommand(dockerCli command.Cli) *cobra.Command\n```\nNewImagesCommand creates a new \\`docker images\\` command\n\n```go\nfunc NewImportCommand(dockerCli command.Cli) *cobra.Command\n```\nNewImportCommand creates a new \\`docker import\\` command\n\n```go\nfunc NewLoadCommand(dockerCli command.Cli) *cobra.Command\n```\nNewLoadCommand creates a new \\`docker load\\` command\n\n```go\nfunc NewPruneCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPruneCommand returns a new cobra prune command for images\n\n```go\nfunc NewPullCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPullCommand creates a new \\`docker pull\\` command\n\n```go\nfunc NewPushCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPushCommand creates a new \\`docker push\\` command\n\n```go\nfunc NewRemoveCommand(dockerCli command.Cli) *cobra.Command\n```\nNewRemoveCommand creates a new \\`docker remove\\` command\n\n```go\nfunc NewSaveCommand(dockerCli command.Cli) *cobra.Command\n```\nNewSaveCommand creates a new \\`docker save\\` command\n\n```go\nfunc NewTagCommand(dockerCli command.Cli) *cobra.Command\n```\nNewTagCommand creates a new \\`docker tag\\` command\n\n```go\nfunc PushTrustedReference(streams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig types.AuthConfig, in io.Reader) error\n```\nPushTrustedReference pushes a canonical reference to the trust server. nolint: gocyclo\n\n```go\nfunc RunPrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)\n```\nRunPrune calls the Image Prune API This returns the amount of space reclaimed and a detailed output string\n\n```go\nfunc RunPull(cli command.Cli, opts PullOptions) error\n```\nRunPull performs a pull against the engine based on the specified options\n\n```go\nfunc RunPush(dockerCli command.Cli, opts pushOptions) error\n```\nRunPush performs a push against the engine based on the specified options\n\n```go\nfunc RunSave(dockerCli command.Cli, opts saveOptions) error\n```\nRunSave performs a save against the engine based on the specified options\n\n```go\nfunc TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ref reference.NamedTagged) error\n```\nTagTrusted tags a trusted ref nolint: interfacer\n\n```go\nfunc TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig types.AuthConfig, requestPrivilege types.RequestPrivilegeFunc) error\n```\nTrustedPush handles content trust pushing of an image\n\n```go\nfunc TrustedReference(ctx context.Context, cli command.Cli, ref reference.NamedTagged, rs registry.Service) (reference.Canonical, error)\n```\nTrustedReference returns the canonical trusted reference for an image reference\n\n## Types\n\n```go\ntype PullOptions struct {\n\t// contains filtered or unexported fields\n}\n```\nPullOptions defines what and how to pull\n\n","path":"github.com/rancher/docker-cli/cli/command/image","name":"image","synopsis":"","isRedistributable":true}
