cmd

package
v2.0.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "promoter",
	Short: "Promotes Docker images",
	Long: `Promotes Docker images from one Registry into another.
                Optimizes network traffic by inspecting existing image data.`,
	Run: func(cmd *cobra.Command, args []string) {
		os.Exit(1)
	},
}

RootCmd provides CLI handler for the application

Functions

func ImageNameAndRegistry

func ImageNameAndRegistry(url string) (registry string, image string, err error)

ImageNameAndRegistry returns registry, image from provided fqdn

func ImageNameAndRegistryAndTag

func ImageNameAndRegistryAndTag(src string) (registry string, image string, tag string, err error)

ImageNameAndRegistryAndTag returns registry, image and tag from provided fqdn

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL