Documentation ¶
Index ¶
- func AddTargetToAllSignableRoles(repo client.Repository, target *client.Target) error
- func AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig
- func NewBuildCommand(dockerCli command.Cli) *cobra.Command
- func NewHistoryCommand(dockerCli command.Cli) *cobra.Command
- 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(streams command.Streams, repoInfo *registry.RepositoryInfo, ...) error
- func RunPrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)
- func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ...) error
- func TrustedPush(ctx context.Context, cli command.Cli, repoInfo *registry.RepositoryInfo, ...) error
- func TrustedReference(ctx context.Context, cli command.Cli, ref reference.NamedTagged, ...) (reference.Canonical, error)
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 NewBuildCommand ¶
NewBuildCommand creates a new `docker build` command
func NewHistoryCommand ¶
NewHistoryCommand creates a new `docker history` command
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 ¶
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 ¶
RunPrune calls the Image Prune API This returns the amount of space reclaimed and a detailed output string
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, requestPrivilege types.RequestPrivilegeFunc) error
TrustedPush handles content trust pushing of an image
Types ¶
This section is empty.