pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandsTypes = []CommandType{
		CommandProject,
		CommandCluster,
		CommandComponent,
	}
	CommandsTypesLabels = []string{
		CommandProject.String(),
		CommandCluster.String(),
		CommandComponent.String(),
	}
)

Functions

This section is empty.

Types

type Command

type Command interface {
	Create(args ...interface{}) error
	Edit(mode string, args ...interface{}) error
	Delete(id interface{}) error
	Add(mode string, args ...string) error
	Install() error
}

func GetCommand

func GetCommand(Cmd CommandType, logger log.Logger) (Command, error)

type CommandType

type CommandType string
const (
	CommandProject   CommandType = "project"
	CommandCluster   CommandType = "cluster"
	CommandComponent CommandType = "component"
)

func (CommandType) IsValid

func (c CommandType) IsValid() bool

func (CommandType) String

func (c CommandType) String() string

Jump to

Keyboard shortcuts

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