Documentation ¶
Index ¶
- Variables
- func NewCmdAppend() *cobra.Command
- func NewCmdAuth() *cobra.Command
- func NewCmdAuthGet() *cobra.Command
- func NewCmdAuthLogin() *cobra.Command
- func NewCmdBlob() *cobra.Command
- func NewCmdCatalog() *cobra.Command
- func NewCmdConfig() *cobra.Command
- func NewCmdCopy() *cobra.Command
- func NewCmdDelete() *cobra.Command
- func NewCmdDigest() *cobra.Command
- func NewCmdExport() *cobra.Command
- func NewCmdList() *cobra.Command
- func NewCmdManifest() *cobra.Command
- func NewCmdPull() *cobra.Command
- func NewCmdPush() *cobra.Command
- func NewCmdRebase() *cobra.Command
- func NewCmdTag() *cobra.Command
- func NewCmdValidate() *cobra.Command
- func NewCmdVersion() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var ( // Root is the top-level cobra.Command for crane. Root = &cobra.Command{ Use: "crane", Short: "Crane is a tool for managing container images", Run: func(cmd *cobra.Command, _ []string) { cmd.Usage() }, DisableAutoGenTag: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { if verbose { logs.Debug.SetOutput(os.Stderr) } if insecure { options = append(options, crane.Insecure) } cf, err := config.Load(os.Getenv("DOCKER_CONFIG")) if err != nil { logs.Debug.Printf("failed to read config file: %v", err) } else if len(cf.HTTPHeaders) != 0 { options = append(options, crane.WithTransport(&headerTransport{ inner: http.DefaultTransport, httpHeaders: cf.HTTPHeaders, })) } }, } )
var Version string
Version can be set via: -ldflags="-X 'github.com/google/go-containerregistry/cmd/crane/cmd.Version=$TAG'"
Functions ¶
func NewCmdAppend ¶
NewCmdAppend creates a new cobra.Command for the append subcommand.
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 NewCmdBlob ¶
NewCmdBlob creates a new cobra.Command for the blob subcommand.
func NewCmdCatalog ¶
NewCmdCatalog creates a new cobra.Command for the repos subcommand.
func NewCmdConfig ¶
NewCmdConfig creates a new cobra.Command for the config 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 NewCmdDigest ¶
NewCmdDigest creates a new cobra.Command for the digest subcommand.
func NewCmdExport ¶
NewCmdExport creates a new cobra.Command for the export subcommand.
func NewCmdList ¶
NewCmdList creates a new cobra.Command for the ls subcommand.
func NewCmdManifest ¶
NewCmdManifest creates a new cobra.Command for the manifest 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 NewCmdRebase ¶
NewCmdRebase creates a new cobra.Command for the rebase subcommand.
func NewCmdValidate ¶
NewCmdValidate creates a new cobra.Command for the validate subcommand.
func NewCmdVersion ¶
NewCmdVersion creates a new cobra.Command for the version subcommand.
Types ¶
This section is empty.