Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Version of Current REST API Version version.Version = "1" // MinVersion represents Minimun REST API version supported MinVersion version.Version = "1.12" // DefaultDockerfileName is the Default filename with Docker commands, read by docker build DefaultDockerfileName string = "Dockerfile" DefaultConfigName string = "config.yml" )
Common constants for daemon and client.
Variables ¶
View Source
var Get3WCommands = make(map[string]Command)
Get3WCommands stores all the Get3W command
Functions ¶
func MatchesContentType ¶
MatchesContentType validates the content type against the expected one
Types ¶
type Cli ¶
Cli represents a command line interface.
type ClientFlags ¶
type ClientFlags struct { FlagSet *flag.FlagSet Common *CommonFlags PostParse func() }
ClientFlags represents flags for the docker client.
type CommonFlags ¶
type CommonFlags struct { FlagSet *flag.FlagSet PostParse func() Debug bool LogLevel string TrustKey string }
CommonFlags represents flags that are common to both the client and the daemon.
type Handler ¶
type Handler interface{}
Handler holds the different commands Cli will call It should have methods with names starting with `Cmd` like:
func (h myHandler) CmdFoo(args ...string) error
type Initializer ¶
type Initializer interface {
Initialize() error
}
Initializer can be optionally implemented by a Handler to initialize before each call to one of its commands.
type StatusError ¶
An StatusError reports an unsuccessful exit by a command.
func (StatusError) Error ¶
func (e StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.