Documentation ¶
Index ¶
- func SetupSignalHandler() (stopCh <-chan struct{})
- type GlobalOption
- func (g *GlobalOption) Controller() *controllerOptions
- func (g *GlobalOption) ExecuteOrDie()
- func (g *GlobalOption) Gateway() *gatewayOptions
- func (g *GlobalOption) GetCommand() *cobra.Command
- func (g *GlobalOption) Parse()
- func (g *GlobalOption) RegisteredRunE(run func(opt *GlobalOption) func(cmd *cobra.Command, args []string) error)
- func (g *GlobalOption) Sever() *serverOptions
- func (g *GlobalOption) Validate() error
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
Click to show internal directories.
Click to hide internal directories.