cmds

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpCommand = "help"
	ExecCommand = "exec"
	ListCommand = "list"
)

Variables

This section is empty.

Functions

func IsCommandNameValid

func IsCommandNameValid(cmdName string) bool

Types

type BaseCmd

type BaseCmd struct {
	// contains filtered or unexported fields
}

type Cluster

type Cluster struct {
	ARN      string
	Name     string
	Tasks    []*Task
	Services []*Service
}

type Container

type Container struct {
	ARN  string
	Name string
}

type Exec

type Exec BaseCmd

func NewExecCommand

func NewExecCommand(args []string) *Exec

func (*Exec) Execute

func (cmd *Exec) Execute()

type Help

type Help BaseCmd

func NewHelpCommand

func NewHelpCommand(args []string) *Help

func (*Help) Execute

func (d *Help) Execute()

type ICommand

type ICommand interface {
	Execute()
}

func GetCommandInstance

func GetCommandInstance(cmdName string, args []string) ICommand

type List

type List BaseCmd

func NewListCommand

func NewListCommand(args []string) *List

func (*List) Execute

func (d *List) Execute()

type Service

type Service struct {
	ARN   string
	Name  string
	Tasks []*Task
}

type Task

type Task struct {
	ARN        string
	FamilyName string
	Containers []*Container
}

type Tree

type Tree struct {
	Clusters []*Cluster
}

func GenerateTree

func GenerateTree(ctx context.Context) *Tree

Jump to

Keyboard shortcuts

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