cmd

package
v0.0.0-...-a954c3e Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() (ctx context.Context, cancel func())

func Execute

func Execute()

func NewCmdRoot

func NewCmdRoot() *cobra.Command

func SetupLogger

func SetupLogger(debug bool)

Types

type RootOptions

type RootOptions struct {
	Debug               bool
	ConfigFileOrDirPath string
	NodeletConfig       config.Config
	LoopInterval        time.Duration
}

func (*RootOptions) Complete

func (o *RootOptions) Complete(cmd *cobra.Command, args []string) error

func (*RootOptions) Flags

func (o *RootOptions) Flags() *pflag.FlagSet

func (*RootOptions) Run

func (o *RootOptions) Run(ctx context.Context) error

func (*RootOptions) Validate

func (o *RootOptions) Validate() error

Jump to

Keyboard shortcuts

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