options

package
v0.0.0-...-33cbb82 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupSignalHandler

func SetupSignalHandler() (stopCh <-chan struct{})

SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1.

Types

type GlobalOption

type GlobalOption struct {
	EnableKubeConfig bool
	KubeConfig       string
	ThreadSize       int
	MaxRecvByteSize  int
	MaxSendByteSize  int
	// contains filtered or unexported fields
}

func NewRootCommand

func NewRootCommand() *GlobalOption

func (*GlobalOption) Controller

func (g *GlobalOption) Controller() *controllerOptions

func (*GlobalOption) ExecuteOrDie

func (g *GlobalOption) ExecuteOrDie()

func (*GlobalOption) Gateway

func (g *GlobalOption) Gateway() *gatewayOptions

func (*GlobalOption) GetCommand

func (g *GlobalOption) GetCommand() *cobra.Command

func (*GlobalOption) Parse

func (g *GlobalOption) Parse()

func (*GlobalOption) RegisteredRunE

func (g *GlobalOption) RegisteredRunE(run func(opt *GlobalOption) func(cmd *cobra.Command, args []string) error)

func (*GlobalOption) Sever

func (g *GlobalOption) Sever() *serverOptions

func (*GlobalOption) Validate

func (g *GlobalOption) Validate() error

Jump to

Keyboard shortcuts

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