package flags
import "github.com/docker/cli/cli/flags"
Index ¶
Constants ¶
const ( // 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" // FlagTLSVerify is the flag name for the TLS verification option FlagTLSVerify = "tlsverify" )
Functions ¶
func SetLogLevel ¶
func SetLogLevel(logLevel string)
SetLogLevel sets the logrus logging level
Types ¶
type ClientOptions ¶
type ClientOptions struct { Common *CommonOptions ConfigDir string }
ClientOptions are the options used to configure the client cli
func NewClientOptions ¶
func NewClientOptions() *ClientOptions
NewClientOptions returns a new ClientOptions
type CommonOptions ¶
type CommonOptions struct { Debug bool Hosts []string LogLevel string TLS bool TLSVerify bool TLSOptions *tlsconfig.Options Context string }
CommonOptions are options common to both the client and the daemon.
func NewCommonOptions ¶
func NewCommonOptions() *CommonOptions
NewCommonOptions returns a new CommonOptions
func (*CommonOptions) InstallFlags ¶
func (commonOpts *CommonOptions) InstallFlags(flags *pflag.FlagSet)
InstallFlags adds flags for the common options on the FlagSet
func (*CommonOptions) SetDefaultOptions ¶
func (commonOpts *CommonOptions) SetDefaultOptions(flags *pflag.FlagSet)
SetDefaultOptions sets default values for options after flag parsing is complete
Source Files ¶
- Version
- v20.10.9+incompatible
- Published
- Sep 23, 2021
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 hours ago –
Tools for package owners.