cli

package
v0.0.0-...-913c819 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddCommandName         = "add"
	RemoveCommandName      = "remove"
	ListCommandName        = "list"
	RegistryName           = "registry"
	VersionFlagName        = "version"
	ConfigFilenameFlagName = "config"
)
View Source
var (
	App            = kingpin.New("docker-registry", "A cli for docker registries")
	ConfigFilename = App.Flag(ConfigFilenameFlagName, "path to config file").Default(config.DefaultFilename).String()
	Registry       = App.Flag(RegistryName, "registry to act upon").String()
)

global flags

View Source
var (
	AddRegistryCommandName = fmt.Sprintf("%s %s", RegistryName, AddCommandName)

	RemoveRegistryCommandName = fmt.Sprintf("%s %s", RegistryName, RemoveCommandName)

	ListRegistryCommandName = fmt.Sprintf("%s %s", RegistryName, ListCommandName)
)

registry commands

View Source
var (
	RepositoryCommandName = "repository"

	ListRepositoriesCommandName = fmt.Sprintf("%s %s", RepositoryCommandName, ListCommandName)
)

repository commands

View Source
var (
	MigrateCommandName = "migrate"

	MigrateCommandConfigFilename = migrateCommand.Arg("dockercfg", "path to dockercfg file").Default(config.DefaultOldFilename).String()
)

other commands

Functions

func RegistrySet

func RegistrySet()

RegistrySet checks if the registry flag is set. if not, raises an error and quits

func RegistrySetAndExists

func RegistrySetAndExists(settings *config.Settings)

RegistrySetAndExists checks if the registry flag is set and that it's registered. if not, raises an error and quits

Types

This section is empty.

Jump to

Keyboard shortcuts

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