package flags
import "github.com/docker/cli/cli/flags"
Index ¶
Constants ¶
const ( EnvEnableTLS = "DOCKER_TLS" 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 */ )
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
Source Files ¶
- Version
- v28.0.4+incompatible
- Published
- Mar 25, 2025
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 1 hour ago –
Tools for package owners.