global

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalOptions

type GlobalOptions struct {
	WorkDir     string `yaml:"work-dir"`
	LogDir      string `yaml:"log-dir"`
	LogToDir    bool   `yaml:"log-to-dir"`
	LogToStd    bool   `yaml:"log-to-std"`
	LeaderToken string `yaml:"leader-token"`
}
var DefaultGO GlobalOptions = GlobalOptions{
	WorkDir:     filepath.Join(global.HomePath, ".litekube/"),
	LogDir:      "",
	LogToStd:    true,
	LogToDir:    true,
	LeaderToken: global.ReservedNodeToken,
}

func NewGlobalOptions

func NewGlobalOptions() *GlobalOptions

func (*GlobalOptions) HelpSection

func (opt *GlobalOptions) HelpSection() *help.Section

func (*GlobalOptions) PrintFlags

func (opt *GlobalOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error

print all flags

Jump to

Keyboard shortcuts

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