flag

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallDeprecatedSkipVerify

func InstallDeprecatedSkipVerify(flagset *pflag.FlagSet, flags *SecFlags)

Types

type OptionList

type OptionList struct {
	// Options field holds all specified and valid options. Should
	// not be modified.
	Options []string
	// contains filtered or unexported fields
}

OptionList is a flag value type supporting a csv list of options

func NewOptionList

func NewOptionList(permissibleOptions []string, defaultOptions string) (*OptionList, error)

func (*OptionList) PermissibleString

func (ol *OptionList) PermissibleString() string

func (*OptionList) Set

func (ol *OptionList) Set(s string) error

func (*OptionList) String

func (ol *OptionList) String() string

func (*OptionList) Type

func (ol *OptionList) Type() string

type SecFlags

type SecFlags struct {
	// contains filtered or unexported fields
}

func NewSecFlags

func NewSecFlags(defOpts string) (*SecFlags, error)

func (SecFlags) Set

func (bf SecFlags) Set(s string) error

func (*SecFlags) SkipAllSecurityChecks

func (sf *SecFlags) SkipAllSecurityChecks() bool

func (*SecFlags) SkipAnySecurityChecks

func (sf *SecFlags) SkipAnySecurityChecks() bool

func (*SecFlags) SkipImageCheck

func (sf *SecFlags) SkipImageCheck() bool

func (*SecFlags) SkipOnDiskCheck

func (sf *SecFlags) SkipOnDiskCheck() bool

func (*SecFlags) SkipTlsCheck

func (sf *SecFlags) SkipTlsCheck() bool

Jump to

Keyboard shortcuts

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