k8sflag

package
v0.0.0-...-eaf31dc Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolFlag

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

func Bool

func Bool(key string, def bool, options ...Option) *BoolFlag

func (*BoolFlag) Get

func (f *BoolFlag) Get() bool

type DurationFlag

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

func Duration

func Duration(key string, def *time.Duration, options ...Option) *DurationFlag

func (*DurationFlag) Get

func (f *DurationFlag) Get() *time.Duration

type FlagSet

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

func NewFlagSet

func NewFlagSet(path string, options ...Option) *FlagSet

func (*FlagSet) Bool

func (s *FlagSet) Bool(key string, def bool, options ...Option) *BoolFlag

func (*FlagSet) Duration

func (s *FlagSet) Duration(key string, def *time.Duration, options ...Option) *DurationFlag

func (*FlagSet) Float64

func (s *FlagSet) Float64(key string, def float64, options ...Option) *Float64Flag

func (*FlagSet) Int32

func (s *FlagSet) Int32(key string, def int32, options ...Option) *Int32Flag

func (*FlagSet) String

func (s *FlagSet) String(key string, def string, options ...Option) *StringFlag

type Float64Flag

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

func Float64

func Float64(key string, def float64, options ...Option) *Float64Flag

func (*Float64Flag) Get

func (f *Float64Flag) Get() float64

type Int32Flag

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

func Int32

func Int32(key string, def int32, options ...Option) *Int32Flag

func (*Int32Flag) Get

func (f *Int32Flag) Get() int32

type Option

type Option int
const (
	Verbose  Option = iota
	Required Option = iota
	Dynamic  Option = iota
)

type StringFlag

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

func String

func String(key, def string, options ...Option) *StringFlag

func (*StringFlag) Get

func (f *StringFlag) Get() string

Jump to

Keyboard shortcuts

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