Documentation ¶
Overview ¶
Package flagdefs contains shared flag definitions for Metropolis. The usage is the same as for the standard flags in the flag package, except that the flag.FlagSet needs to be passed in the first parameter. Pass flag.CommandLine to use the default FlagSet. There are also separate functions for use with the pflag package.
Index ¶
- func StorageSecurityPolicy(flags *flag.FlagSet, name string, ...) *cpb.ClusterConfiguration_StorageSecurityPolicy
- func StorageSecurityPolicyPflag(flags *pflag.FlagSet, name string, ...) *cpb.ClusterConfiguration_StorageSecurityPolicy
- func StorageSecurityPolicyVar(flags *flag.FlagSet, p *cpb.ClusterConfiguration_StorageSecurityPolicy, ...)
- func StorageSecurityPolicyVarPflag(flags *pflag.FlagSet, p *cpb.ClusterConfiguration_StorageSecurityPolicy, ...)
- func TPMMode(flags *flag.FlagSet, name string, value cpb.ClusterConfiguration_TPMMode, ...) *cpb.ClusterConfiguration_TPMMode
- func TPMModePflag(flags *pflag.FlagSet, name string, value cpb.ClusterConfiguration_TPMMode, ...) *cpb.ClusterConfiguration_TPMMode
- func TPMModeVar(flags *flag.FlagSet, p *cpb.ClusterConfiguration_TPMMode, name string, ...)
- func TPMModeVarPflag(flags *pflag.FlagSet, p *cpb.ClusterConfiguration_TPMMode, name string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StorageSecurityPolicy ¶
func StorageSecurityPolicy(flags *flag.FlagSet, name string, value cpb.ClusterConfiguration_StorageSecurityPolicy, usage string) *cpb.ClusterConfiguration_StorageSecurityPolicy
StorageSecurityPolicy defines a StorageSecurityPolicy flag with specified name, default value, and usage string. The return value is the address of a StorageSecurityPolicy variable that stores the value of the flag.
func StorageSecurityPolicyPflag ¶
func StorageSecurityPolicyPflag(flags *pflag.FlagSet, name string, value cpb.ClusterConfiguration_StorageSecurityPolicy, usage string) *cpb.ClusterConfiguration_StorageSecurityPolicy
StorageSecurityPolicyPflag defines a StorageSecurityPolicy flag with specified name, default value, and usage string. The return value is the address of a StorageSecurityPolicy variable that stores the value of the flag.
func StorageSecurityPolicyVar ¶
func StorageSecurityPolicyVar(flags *flag.FlagSet, p *cpb.ClusterConfiguration_StorageSecurityPolicy, name string, value cpb.ClusterConfiguration_StorageSecurityPolicy, usage string)
StorageSecurityPolicyVar defines a StorageSecurityPolicy flag with specified name, default value, and usage string. The argument p points to a StorageSecurityPolicy variable in which to store the value of the flag.
func StorageSecurityPolicyVarPflag ¶
func StorageSecurityPolicyVarPflag(flags *pflag.FlagSet, p *cpb.ClusterConfiguration_StorageSecurityPolicy, name string, value cpb.ClusterConfiguration_StorageSecurityPolicy, usage string)
StorageSecurityPolicyVarPflag defines a StorageSecurityPolicy flag with specified name, default value, and usage string. The argument p points to a StorageSecurityPolicy variable in which to store the value of the flag.
func TPMMode ¶
func TPMMode(flags *flag.FlagSet, name string, value cpb.ClusterConfiguration_TPMMode, usage string) *cpb.ClusterConfiguration_TPMMode
TPMMode defines a TPMMode flag with specified name, default value, and usage string. The return value is the address of a TPMMode variable that stores the value of the flag.
func TPMModePflag ¶
func TPMModePflag(flags *pflag.FlagSet, name string, value cpb.ClusterConfiguration_TPMMode, usage string) *cpb.ClusterConfiguration_TPMMode
TPMModePflag defines a TPMMode flag with specified name, default value, and usage string. The return value is the address of a TPMMode variable that stores the value of the flag.
func TPMModeVar ¶
func TPMModeVar(flags *flag.FlagSet, p *cpb.ClusterConfiguration_TPMMode, name string, value cpb.ClusterConfiguration_TPMMode, usage string)
TPMModeVar defines a TPMMode flag with specified name, default value, and usage string. The argument p points to a TPMMode variable in which to store the value of the flag.
func TPMModeVarPflag ¶
func TPMModeVarPflag(flags *pflag.FlagSet, p *cpb.ClusterConfiguration_TPMMode, name string, value cpb.ClusterConfiguration_TPMMode, usage string)
TPMModeVarPflag defines a TPMMode flag with specified name, default value, and usage string. The argument p points to a TPMMode variable in which to store the value of the flag.
Types ¶
This section is empty.