rootcmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	IP   string `validate:"required"`
	Port string
	User string `validate:"required"`
	Pass string `validate:"required"`
}

type Config

type Config struct {
	Auth
	Timeout  int
	Protocol string
	JSON     bool
	AppName  string
	Log      logr.Logger
}

func New

func New() (*ffcli.Command, *Config)

func (*Config) Exec

func (c *Config) Exec(context.Context, []string) error

Exec function for this command.

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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