{"modulePath":"github.com/open-beagle/docker-cli","version":"v0.0.0-20260703101838-c836ad25e032","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package flags\n\n## Constants\n\n```go\nconst (\n\t// EnvEnableTLS is the name of the environment variable that can be used\n\t// to enable TLS for client connections. When set to a non-empty value, TLS\n\t// is enabled for API connections using TCP. For backward-compatibility, this\n\t// environment-variable can only be used to enable TLS, not to disable.\n\t//\n\t// Note that TLS is always enabled implicitly if the \"--tls-verify\" option\n\t// or \"DOCKER_TLS_VERIFY\" ([github.com/docker/docker/client.EnvTLSVerify])\n\t// env var is set to, which could be to either enable or disable TLS certification\n\t// validation. In both cases, TLS is enabled but, depending on the setting,\n\t// with verification disabled.\n\tEnvEnableTLS = \"DOCKER_TLS\"\n\n\t// DefaultCaFile is the default filename for the CA pem file\n\tDefaultCaFile = \"ca.pem\"\n\t// DefaultKeyFile is the default filename for the key pem file\n\tDefaultKeyFile = \"key.pem\"\n\t// DefaultCertFile is the default filename for the cert pem file\n\tDefaultCertFile = \"cert.pem\"\n\t// FlagTLSVerify is the flag name for the TLS verification option\n\tFlagTLSVerify = \"tlsverify\"\n\t// FormatHelp describes the --format flag behavior for list commands\n\tFormatHelp = `Format output using a custom template:\n'table':            Print output in table format with column headers (default)\n'table TEMPLATE':   Print output in table format using the given Go template\n'json':             Print in JSON format\n'TEMPLATE':         Print output using the given Go template.\nRefer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates`\n\t// InspectFormatHelp describes the --format flag behavior for inspect commands\n\tInspectFormatHelp = `Format output using a custom template:\n'json':             Print in JSON format\n'TEMPLATE':         Print output using the given Go template.\nRefer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates`\n)\n```\n\n## Functions\n\n```go\nfunc SetLogLevel(logLevel string)\n```\nSetLogLevel sets the logrus logging level\n\n## Types\n\n```go\ntype ClientOptions struct {\n\tDebug      bool\n\tHosts      []string\n\tLogLevel   string\n\tTLS        bool\n\tTLSVerify  bool\n\tTLSOptions *tlsconfig.Options\n\tContext    string\n\tConfigDir  string\n}\n```\nClientOptions are the options used to configure the client cli.\n\n```go\nfunc NewClientOptions() *ClientOptions\n```\nNewClientOptions returns a new ClientOptions.\n\n```go\nfunc (o *ClientOptions) InstallFlags(flags *pflag.FlagSet)\n```\nInstallFlags adds flags for the common options on the FlagSet\n\n```go\nfunc (o *ClientOptions) SetDefaultOptions(flags *pflag.FlagSet)\n```\nSetDefaultOptions sets default values for options after flag parsing is complete\n\n","path":"github.com/open-beagle/docker-cli/cli/flags","name":"flags","synopsis":"","isRedistributable":true}
