v3ctl

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCommandeerRegistrySingleton = registry.NewRegistry("createCommandeer")

create creates a "create" commandeer

View Source
var DeleteCommandeerRegistrySingleton = registry.NewRegistry("deleteCommandeer")

delete deletes a "delete" commandeer

View Source
var GetCommandeerRegistrySingleton = registry.NewRegistry("getCommandeer")

get gets a "get" commandeer

Functions

This section is empty.

Types

type CreateCommandeer

type CreateCommandeer struct {
	Cmd            *cobra.Command
	RootCommandeer *RootCommandeer
}

func (*CreateCommandeer) Initialize

func (c *CreateCommandeer) Initialize() error

type DeleteCommandeer

type DeleteCommandeer struct {
	Cmd            *cobra.Command
	RootCommandeer *RootCommandeer
}

func (*DeleteCommandeer) Initialize

func (c *DeleteCommandeer) Initialize() error

type GetCommandeer

type GetCommandeer struct {
	Cmd            *cobra.Command
	RootCommandeer *RootCommandeer
}

func (*GetCommandeer) Initialize

func (c *GetCommandeer) Initialize() error

type RootCommandeer

type RootCommandeer struct {
	Logger        logger.Logger
	WebapiURL     string
	ControlURL    string
	ContainerName string

	Username            string
	Password            string
	AccessKey           string
	ControlPlaneSession v3ioc.Session
	DataPlaneContext    v3io.Context
	Container           v3io.Container
	Output              string
	// contains filtered or unexported fields
}

func NewRootCommandeer

func NewRootCommandeer() (*RootCommandeer, error)

func (*RootCommandeer) Execute

func (c *RootCommandeer) Execute() error

Execute uses os.Args to execute the command

func (*RootCommandeer) GetControlPlaneSession

func (c *RootCommandeer) GetControlPlaneSession() (v3ioc.Session, error)

func (*RootCommandeer) Initialize

func (c *RootCommandeer) Initialize() error

func (*RootCommandeer) Render

func (c *RootCommandeer) Render(info interface{}, columns []string, records [][]string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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