package flags

import "github.com/docker/docker/cli/flags"

Index

Constants

const (
	// DefaultTrustKeyFile is the default filename for the trust key
	DefaultTrustKeyFile = "key.json"
	// DefaultCaFile is the default filename for the CA pem file
	DefaultCaFile = "ca.pem"
	// DefaultKeyFile is the default filename for the key pem file
	DefaultKeyFile = "key.pem"
	// DefaultCertFile is the default filename for the cert pem file
	DefaultCertFile = "cert.pem"
	// TLSVerifyKey is the default flag name for the tls verification option
	TLSVerifyKey = "tlsverify"
)

Functions

func SetDaemonLogLevel

func SetDaemonLogLevel(logLevel string)

SetDaemonLogLevel sets the logrus logging level TODO: this is a bad name, it applies to the client as well.

Types

type ClientFlags

type ClientFlags struct {
	FlagSet   *flag.FlagSet
	Common    *CommonFlags
	PostParse func()

	ConfigDir string
}

ClientFlags represents flags for the docker client.

type CommonFlags

type CommonFlags struct {
	FlagSet   *flag.FlagSet
	PostParse func()

	Debug      bool
	Hosts      []string
	LogLevel   string
	TLS        bool
	TLSVerify  bool
	TLSOptions *tlsconfig.Options
	TrustKey   string
}

CommonFlags are flags common to both the client and the daemon.

func InitCommonFlags

func InitCommonFlags() *CommonFlags

InitCommonFlags initializes flags common to both client and daemon

Source Files

client.go common.go

Version
v1.12.2-rc2
Published
Oct 4, 2016
Platform
js/wasm
Imports
8 packages
Last checked
4 minutes ago

Tools for package owners.