Documentation
¶
Index ¶
- Variables
- func New(use, short string, options []crane.Option) *cobra.Command
- func NewCmdAuth(options []crane.Option, argv ...string) *cobra.Command
- func NewCmdAuthGet(options []crane.Option, argv ...string) *cobra.Command
- func NewCmdAuthLogin(argv ...string) *cobra.Command
- func NewCmdAuthLogout(argv ...string) *cobra.Command
- func NewCmdAuthToken(options []crane.Option) *cobra.Command
- func NewCmdCatalog(options *[]crane.Option, _ ...string) *cobra.Command
- func NewCmdCleanup(options *[]crane.Option) *cobra.Command
- func NewCmdCopy(options *[]crane.Option) *cobra.Command
- func NewCmdDelete(options *[]crane.Option) *cobra.Command
- func NewCmdList(options *[]crane.Option) *cobra.Command
- func NewCmdPull(options *[]crane.Option) *cobra.Command
- func NewCmdPush(options *[]crane.Option) *cobra.Command
- func NewCmdVersion() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var Root = New(use, short, []crane.Option{})
var Version string
Version can be set via: -ldflags="-X 'github.com/google/go-containerregistry/cmd/crane/cmd.Version=$TAG'"
Functions ¶
func New ¶
New returns a top-level command for crane. This is mostly exposed to share code with gcrane.
func NewCmdAuth ¶
NewCmdAuth creates a new cobra.Command for the auth subcommand.
func NewCmdAuthGet ¶
NewCmdAuthGet creates a new `crane auth get` command.
func NewCmdAuthLogin ¶
NewCmdAuthLogin creates a new `crane auth login` command.
func NewCmdAuthLogout ¶
NewCmdAuthLogout creates a new `crane auth logout` command.
func NewCmdCatalog ¶
NewCmdCatalog creates a new cobra.Command for the catalog subcommand.
func NewCmdCleanup ¶
NewCmdCleanup creates a new cobra.Command for the cleanup subcommand.
func NewCmdCopy ¶
NewCmdCopy creates a new cobra.Command for the copy subcommand.
func NewCmdDelete ¶
NewCmdDelete creates a new cobra.Command for the delete subcommand.
func NewCmdList ¶
NewCmdList creates a new cobra.Command for the ls subcommand.
func NewCmdPull ¶
NewCmdPull creates a new cobra.Command for the pull subcommand.
func NewCmdPush ¶
NewCmdPush creates a new cobra.Command for the push subcommand.
func NewCmdVersion ¶
NewCmdVersion creates a new cobra.Command for the version subcommand.
Types ¶
This section is empty.