Documentation
¶
Overview ¶
Package registry defines the registry command and its operators as sub-commands.
Index ¶
- type BlobCommand
- type BlobDeleteCommand
- type BlobFetchCommand
- type BlobPushCommand
- type BlobStatCommand
- type CatalogCommand
- type LoginCommand
- type LogoutCommand
- type ManifestCommand
- func (c *ManifestCommand) DeleteCommand() *ManifestDeleteCommand
- func (c *ManifestCommand) FetchCommand() *ManifestFetchCommand
- func (c *ManifestCommand) Flags() []cli.Flag
- func (c *ManifestCommand) PushCommand() *ManifestPushCommand
- func (c *ManifestCommand) StatCommand() *ManifestStatCommand
- func (c *ManifestCommand) ToCLI() *cli.Command
- type ManifestDeleteCommand
- type ManifestFetchCommand
- type ManifestPushCommand
- type ManifestStatCommand
- type RegistryCommand
- type RepositoryCommand
- type RepositoryTagsCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobCommand ¶
type BlobCommand struct { }
BlobCommand defines blob operations.
func NewBlobCommand ¶
func NewBlobCommand() *BlobCommand
NewBlobCommand returns a BlobCommand with default values.
func (*BlobCommand) ToCLI ¶
func (c *BlobCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type BlobDeleteCommand ¶
type BlobDeleteCommand struct { Common *options.Common Remote *options.ContainerRegistry Force bool `json:"force,omitempty" yaml:"force,omitempty"` }
BlobDeleteCommand is used to delete the target blob.
func NewBlobDeleteCommand ¶
func NewBlobDeleteCommand() *BlobDeleteCommand
NewBlobDeleteCommand returns a blob delete command with default values.
func (*BlobDeleteCommand) Flags ¶
func (c *BlobDeleteCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*BlobDeleteCommand) Run ¶
func (c *BlobDeleteCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*BlobDeleteCommand) ToCLI ¶
func (c *BlobDeleteCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type BlobFetchCommand ¶
type BlobFetchCommand struct { Common *options.Common Remote *options.ContainerRegistry }
BlobFetchCommand used to fetch the blob from the remote registry.
func NewBlobFetchCommand ¶
func NewBlobFetchCommand() *BlobFetchCommand
NewBlobFetchCommand returns a blob fetch command with default values.
func (*BlobFetchCommand) Flags ¶
func (c *BlobFetchCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*BlobFetchCommand) Run ¶
func (c *BlobFetchCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*BlobFetchCommand) ToCLI ¶
func (c *BlobFetchCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type BlobPushCommand ¶
type BlobPushCommand struct { Remote *options.ContainerRegistry Common *options.Common Size int64 `json:"size,omitempty" yaml:"size,omitempty"` }
BlobPushCommand is used to push the target blob.
func NewBlobPushCommand ¶
func NewBlobPushCommand() *BlobPushCommand
NewBlobPushCommand returns a blob push command with default values.
func (*BlobPushCommand) Flags ¶
func (c *BlobPushCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*BlobPushCommand) Run ¶
func (c *BlobPushCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*BlobPushCommand) ToCLI ¶
func (c *BlobPushCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type BlobStatCommand ¶
type BlobStatCommand struct { Common *options.Common Remote *options.ContainerRegistry }
BlobStatCommand used to stat the descriptor of the target blob from the remote registry.
func NewBlobStatCommand ¶
func NewBlobStatCommand() *BlobStatCommand
NewBlobStatCommand returns a blob stat command with default values.
func (*BlobStatCommand) Flags ¶
func (c *BlobStatCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*BlobStatCommand) Run ¶
func (c *BlobStatCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*BlobStatCommand) ToCLI ¶
func (c *BlobStatCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type CatalogCommand ¶
type CatalogCommand struct { Common *options.Common Remote *options.ContainerRegistry }
CatalogCommand is used to list repositories in the remote registry.
func NewCatalogCommand ¶
func NewCatalogCommand() *CatalogCommand
NewCatalogCommand returns a command with default values.
func (*CatalogCommand) Flags ¶
func (c *CatalogCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*CatalogCommand) Run ¶
func (c *CatalogCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*CatalogCommand) ToCLI ¶
func (c *CatalogCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type LoginCommand ¶
type LoginCommand struct { Common *options.Common Remote *options.ContainerRegistry Username string `json:"username,omitempty" yaml:"username,omitempty"` Password string `json:"password,omitempty" yaml:"password,omitempty"` PasswordStdin bool `json:"password_stdin,omitempty" yaml:"password_stdin,omitempty"` }
LoginCommand used to login remote registry.
func NewLoginCommand ¶
func NewLoginCommand() *LoginCommand
NewLoginCommand returns a LoginCommand with default values.
func (*LoginCommand) Flags ¶
func (c *LoginCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*LoginCommand) Run ¶
func (c *LoginCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*LoginCommand) ToCLI ¶
func (c *LoginCommand) ToCLI() *cli.Command
ToCLI tranforms to a *cli.Command.
type LogoutCommand ¶
type LogoutCommand struct {
*options.ContainerRegistry
}
LogoutCommand used to remove the credentials from the local auth file.
func NewLogoutCommand ¶
func NewLogoutCommand() *LogoutCommand
NewLogoutCommand returns a LogoutCommand with default values.
func (*LogoutCommand) Flags ¶
func (c *LogoutCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*LogoutCommand) Run ¶
func (c *LogoutCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*LogoutCommand) ToCLI ¶
func (c *LogoutCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type ManifestCommand ¶
type ManifestCommand struct { Common *options.Common Remote *options.ContainerRegistry Pretty bool `json:"pretty,omitempty" yaml:"pretty,omitempty"` }
ManifestCommand defines manifest operations.
func NewManifestCommand ¶
func NewManifestCommand() *ManifestCommand
NewManifestCommand returns a ManifestCommand with default values.
func (*ManifestCommand) DeleteCommand ¶
func (c *ManifestCommand) DeleteCommand() *ManifestDeleteCommand
func (*ManifestCommand) FetchCommand ¶
func (c *ManifestCommand) FetchCommand() *ManifestFetchCommand
func (*ManifestCommand) Flags ¶
func (c *ManifestCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*ManifestCommand) PushCommand ¶
func (c *ManifestCommand) PushCommand() *ManifestPushCommand
func (*ManifestCommand) StatCommand ¶
func (c *ManifestCommand) StatCommand() *ManifestStatCommand
func (*ManifestCommand) ToCLI ¶
func (c *ManifestCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type ManifestDeleteCommand ¶
type ManifestDeleteCommand struct { *ManifestCommand Force bool `json:"force,omitempty" yaml:"force,omitempty"` }
ManifestDeleteCommand is used to delete the target manifest.
func (*ManifestDeleteCommand) Flags ¶
func (c *ManifestDeleteCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*ManifestDeleteCommand) Run ¶
func (c *ManifestDeleteCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*ManifestDeleteCommand) ToCLI ¶
func (c *ManifestDeleteCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type ManifestFetchCommand ¶
type ManifestFetchCommand struct {
*ManifestCommand `json:",inline" yaml:",inline"`
}
ManifestFetchCommand used to fetch the image manifest from the remote registry.
func (*ManifestFetchCommand) Run ¶
func (c *ManifestFetchCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*ManifestFetchCommand) ToCLI ¶
func (c *ManifestFetchCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type ManifestPushCommand ¶
type ManifestPushCommand struct {
*ManifestCommand
}
ManifestDeleteCommand is used to push the target manifest.
func (*ManifestPushCommand) Run ¶
func (c *ManifestPushCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*ManifestPushCommand) ToCLI ¶
func (c *ManifestPushCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type ManifestStatCommand ¶
type ManifestStatCommand struct {
*ManifestCommand
}
ManifestStatCommand used to stat the descriptor of the target manifest from the remote registry.
func (*ManifestStatCommand) Run ¶
func (c *ManifestStatCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*ManifestStatCommand) ToCLI ¶
func (c *ManifestStatCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type RegistryCommand ¶
type RegistryCommand struct{}
RegistryCommand is a command for registry and retains the common flags for subcommands.
func (*RegistryCommand) ToCLI ¶
func (c *RegistryCommand) ToCLI() *cli.Command
ToCLI tranforms to a *cli.Command.
type RepositoryCommand ¶
type RepositoryCommand struct{}
RepositoryCommand defines repository operations.
func NewRepositoryCommand ¶
func NewRepositoryCommand() *RepositoryCommand
NewRepositoryCommand returns a command with default values.
func (*RepositoryCommand) ToCLI ¶
func (c *RepositoryCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.
type RepositoryTagsCommand ¶
type RepositoryTagsCommand struct { Common *options.Common Remote *options.ContainerRegistry }
RepositoryTagsCommand used to list tags in the remote repository.
func NewRepositoryTagsCommand ¶
func NewRepositoryTagsCommand() *RepositoryTagsCommand
NewRepositoryTagsCommand returns a command with default values.
func (*RepositoryTagsCommand) Flags ¶
func (c *RepositoryTagsCommand) Flags() []cli.Flag
Flags defines the flags related to the current command.
func (*RepositoryTagsCommand) Run ¶
func (c *RepositoryTagsCommand) Run(ctx context.Context, cmd *cli.Command) error
Run is the main function for the current command
func (*RepositoryTagsCommand) ToCLI ¶
func (c *RepositoryTagsCommand) ToCLI() *cli.Command
ToCLI transforms to a *cli.Command.