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
Click to show internal directories.
Click to hide internal directories.