cmd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidCpuAndMemoryCombination = fmt.Errorf(`Invalid CPU and Memory settings

CPU (CPU Units)    Memory (MiB)
---------------    ------------
256                512, 1024, or 2048
512                1024 through 4096 in 1GiB increments
1024               2048 through 8192 in 1GiB increments
2048               4096 through 16384 in 1GiB increments
4096               8192 through 30720 in 1GiB increments
`)

Functions

func Execute

func Execute()

func GetLogs

func GetLogs(operation *GetLogsOperation)

Types

type CertificateDestroyOperation

type CertificateDestroyOperation struct {
	DomainName string
}

type CertificateImportOperation

type CertificateImportOperation struct {
	CertificateFile      string
	PrivateKeyFile       string
	CertificateChainFile string
}

func (*CertificateImportOperation) Validate

func (o *CertificateImportOperation) Validate()

type CertificateInfoOperation

type CertificateInfoOperation struct {
	DomainName string
}

type CertificateRequestOperation

type CertificateRequestOperation struct {
	DomainName string
	Aliases    []string
}

func (*CertificateRequestOperation) Validate

func (o *CertificateRequestOperation) Validate()

type CertificateValidateOperation

type CertificateValidateOperation struct {
	DomainName string
}

func (*CertificateValidateOperation) Validate

func (o *CertificateValidateOperation) Validate()

type Empty

type Empty struct{}

type GetLogsOperation

type GetLogsOperation struct {
	LogGroupName    string
	Namespace       string
	EndTime         time.Time
	Filter          string
	Follow          bool
	LogStreamColors map[string]int
	LogStreamNames  []string
	StartTime       time.Time
	EventCache      *lru.Cache
}

func (*GetLogsOperation) AddEndTime

func (o *GetLogsOperation) AddEndTime(rawEndTime string)

func (*GetLogsOperation) AddStartTime

func (o *GetLogsOperation) AddStartTime(rawStartTime string)

func (*GetLogsOperation) AddTasks

func (o *GetLogsOperation) AddTasks(tasks []string)

func (*GetLogsOperation) GetStreamColor

func (o *GetLogsOperation) GetStreamColor(logStreamName string) int

func (*GetLogsOperation) SeenEvent

func (o *GetLogsOperation) SeenEvent(eventId string) bool

func (*GetLogsOperation) Validate

func (o *GetLogsOperation) Validate()

type LbAliasOperation

type LbAliasOperation struct {
	LoadBalancerName string
	AliasDomain      string
}

type LbCreateOperation

type LbCreateOperation struct {
	LoadBalancerName string
	CertificateArns  []string
	Ports            []Port
	Type             string
	SecurityGroupIds []string
	SubnetIds        []string
}

func (*LbCreateOperation) SetCertificateArns

func (o *LbCreateOperation) SetCertificateArns(certificateDomainNames []string)

func (*LbCreateOperation) SetPorts

func (o *LbCreateOperation) SetPorts(inputPorts []string)

func (*LbCreateOperation) SetSecurityGroupIds added in v0.2.0

func (o *LbCreateOperation) SetSecurityGroupIds(securityGroupIds []string)

func (*LbCreateOperation) SetSubnetIds added in v0.2.0

func (o *LbCreateOperation) SetSubnetIds(subnetIds []string)

func (*LbCreateOperation) SetTypeFromPorts

func (o *LbCreateOperation) SetTypeFromPorts()

type LbInfoOperation

type LbInfoOperation struct {
	LoadBalancerName string
}

type LoadBalancerDestroyOperation

type LoadBalancerDestroyOperation struct {
	LoadBalancerName string
}

type Port

type Port struct {
	Port     int64
	Protocol string
}

func (*Port) Empty added in v0.2.1

func (p *Port) Empty() bool

func (*Port) String added in v0.2.1

func (p *Port) String() string

type ScaleServiceOperation

type ScaleServiceOperation struct {
	ServiceName  string
	DesiredCount int64
}

func (*ScaleServiceOperation) SetScale

func (o *ScaleServiceOperation) SetScale(scaleExpression string)

type ServiceCreateOperation

type ServiceCreateOperation struct {
	Cpu              string
	EnvVars          []ECS.EnvVar
	Image            string
	LoadBalancerArn  string
	LoadBalancerName string
	Memory           string
	Num              int64
	Port             Port
	Rules            []ELBV2.Rule
	SecurityGroupIds []string
	ServiceName      string
	SubnetIds        []string
	TaskRole         string
}

func (*ServiceCreateOperation) SetEnvVars

func (o *ServiceCreateOperation) SetEnvVars(inputEnvVars []string)

func (*ServiceCreateOperation) SetLoadBalancer

func (o *ServiceCreateOperation) SetLoadBalancer(lb string)

func (*ServiceCreateOperation) SetPort

func (o *ServiceCreateOperation) SetPort(inputPort string)

func (*ServiceCreateOperation) SetRules

func (o *ServiceCreateOperation) SetRules(inputRules []string)

func (*ServiceCreateOperation) SetSecurityGroupIds added in v0.2.0

func (o *ServiceCreateOperation) SetSecurityGroupIds(securityGroupIds []string)

func (*ServiceCreateOperation) Validate

func (o *ServiceCreateOperation) Validate()

type ServiceDeployOperation

type ServiceDeployOperation struct {
	ServiceName string
	Image       string
}

type ServiceDestroyOperation

type ServiceDestroyOperation struct {
	ServiceName string
}

type ServiceEnvListOperation

type ServiceEnvListOperation struct {
	ServiceName string
}

type ServiceEnvSetOperation

type ServiceEnvSetOperation struct {
	ServiceName string
	EnvVars     []ECS.EnvVar
}

func (*ServiceEnvSetOperation) SetEnvVars

func (o *ServiceEnvSetOperation) SetEnvVars(inputEnvVars []string)

func (*ServiceEnvSetOperation) Validate

func (o *ServiceEnvSetOperation) Validate()

type ServiceEnvUnsetOperation

type ServiceEnvUnsetOperation struct {
	ServiceName string
	Keys        []string
}

func (*ServiceEnvUnsetOperation) SetKeys

func (o *ServiceEnvUnsetOperation) SetKeys(keys []string)

func (*ServiceEnvUnsetOperation) Validate

func (o *ServiceEnvUnsetOperation) Validate()

type ServiceInfoOperation

type ServiceInfoOperation struct {
	ServiceName string
}

type ServiceProcessListOperation

type ServiceProcessListOperation struct {
	ServiceName string
}

type ServiceRestartOperation

type ServiceRestartOperation struct {
	ServiceName string
}

type ServiceUpdateOperation

type ServiceUpdateOperation struct {
	ServiceName string
	Cpu         string
	Memory      string
	Service     ECS.Service
}

func (*ServiceUpdateOperation) Validate

func (o *ServiceUpdateOperation) Validate()

type TaskInfoOperation

type TaskInfoOperation struct {
	TaskGroupName string
	TaskIds       []string
}

type TaskProcessListOperation

type TaskProcessListOperation struct {
	TaskName string
}

type TaskRunOperation

type TaskRunOperation struct {
	Cpu              string
	EnvVars          []ECS.EnvVar
	Image            string
	Memory           string
	Num              int64
	SecurityGroupIds []string
	SubnetIds        []string
	TaskName         string
	TaskRole         string
}

func (*TaskRunOperation) SetEnvVars

func (o *TaskRunOperation) SetEnvVars(inputEnvVars []string)

func (*TaskRunOperation) Validate

func (o *TaskRunOperation) Validate()

type TaskStopOperation

type TaskStopOperation struct {
	TaskGroupName string
	TaskIds       []string
}

Jump to

Keyboard shortcuts

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