package flags
import "github.com/docker/cli/cli/flags"
Index ¶
- Constants
- Variables
- func SetLogLevel(logLevel string)
- type ClientOptions
- func NewClientOptions() *ClientOptions
- func (o *ClientOptions) InstallFlags(flags *pflag.FlagSet)
- func (o *ClientOptions) SetDefaultOptions(flags *pflag.FlagSet)
- type CommonOptions
Constants ¶
const ( DefaultCaFile = "ca.pem" DefaultKeyFile = "key.pem" DefaultCertFile = "cert.pem" FlagTLSVerify = "tlsverify" FormatHelp = "" /* 407 byte string literal not displayed */ InspectFormatHelp = "" /* 251 byte string literal not displayed */ )
Variables ¶
var NewCommonOptions = NewClientOptions
NewCommonOptions returns a new CommonOptions
Deprecated: use NewClientOptions.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(logLevel string)
SetLogLevel sets the logrus logging level
Types ¶
type ClientOptions ¶
type ClientOptions struct { Debug bool Hosts []string LogLevel string TLS bool TLSVerify bool TLSOptions *tlsconfig.Options Context string ConfigDir string }
ClientOptions are the options used to configure the client cli.
func NewClientOptions ¶
func NewClientOptions() *ClientOptions
NewClientOptions returns a new ClientOptions.
func (*ClientOptions) InstallFlags ¶
func (o *ClientOptions) InstallFlags(flags *pflag.FlagSet)
InstallFlags adds flags for the common options on the FlagSet
func (*ClientOptions) SetDefaultOptions ¶
func (o *ClientOptions) SetDefaultOptions(flags *pflag.FlagSet)
SetDefaultOptions sets default values for options after flag parsing is complete
type CommonOptions ¶
type CommonOptions = ClientOptions
CommonOptions are options common to both the client and the daemon.
Deprecated: use ClientOptions.
Source Files ¶
options.go options_deprecated.go
- Version
- v23.0.15+incompatible
- Published
- Sep 5, 2024
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 7 minutes ago –
Tools for package owners.