flagdefs

package
v0.0.0-...-5fb8a3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func 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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL