Documentation ¶
Index ¶
- Constants
- Variables
- type App
- func (d *App) Create(opt CreateOption) error
- func (d *App) Delete(opt DeleteOption) error
- func (d *App) Deploy(opt DeployOption) error
- func (d *App) DescribeServiceDeployments(ctx context.Context, startedAt time.Time) (int, error)
- func (d *App) DescribeServiceStatus(ctx context.Context, events int) (*ecs.Service, error)
- func (d *App) DescribeServicesInput() *ecs.DescribeServicesInput
- func (d *App) DescribeTask(ctx context.Context, task *ecs.Task) error
- func (d *App) DescribeTasksInput(task *ecs.Task) *ecs.DescribeTasksInput
- func (d *App) FindRollbackTarget(ctx context.Context, taskDefinitionArn string) (string, error)
- func (d *App) GetLogEvents(ctx context.Context, logGroup string, logStream string, startedAt time.Time) (int, error)
- func (d *App) GetLogEventsInput(logGroup string, logStream string, startAt int64) *cloudwatchlogs.GetLogEventsInput
- func (d *App) GetLogInfo(task *ecs.Task, lc *ecs.LogConfiguration) (string, string)
- func (d *App) LoadServiceDefinition(path string) (*ecs.CreateServiceInput, error)
- func (d *App) LoadTaskDefinition(path string) (*ecs.TaskDefinition, error)
- func (d *App) Log(v ...interface{})
- func (d *App) Name() string
- func (d *App) RegisterTaskDefinition(ctx context.Context, td *ecs.TaskDefinition) (*ecs.TaskDefinition, error)
- func (d *App) Rollback(opt RollbackOption) error
- func (d *App) Run(opt RunOption) error
- func (d *App) RunTask(ctx context.Context, tdArn string, sv *ecs.Service) (*ecs.Task, error)
- func (d *App) Start() (context.Context, context.CancelFunc)
- func (d *App) Status(opt StatusOption) error
- func (d *App) UpdateService(ctx context.Context, taskDefinitionArn string, count int64, force bool, ...) error
- func (d *App) WaitRunTask(ctx context.Context, task *ecs.Task, lc *ecs.LogConfiguration, ...) error
- func (d *App) WaitServiceStable(ctx context.Context, startedAt time.Time) error
- type Config
- type CreateOption
- type DeleteOption
- type DeployOption
- type RollbackOption
- type RunOption
- type ServiceDefinition
- type StatusOption
Constants ¶
View Source
const KeepDesiredCount = -1
Variables ¶
View Source
var TerminalWidth = 90
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.0.2
func (*App) Create ¶ added in v0.2.0
func (d *App) Create(opt CreateOption) error
func (*App) Delete ¶ added in v0.4.0
func (d *App) Delete(opt DeleteOption) error
func (*App) Deploy ¶ added in v0.1.0
func (d *App) Deploy(opt DeployOption) error
func (*App) DescribeServiceDeployments ¶ added in v0.0.2
func (*App) DescribeServiceStatus ¶ added in v0.1.0
func (*App) DescribeServicesInput ¶ added in v0.0.2
func (d *App) DescribeServicesInput() *ecs.DescribeServicesInput
func (*App) DescribeTask ¶ added in v0.5.0
func (*App) DescribeTasksInput ¶ added in v0.5.0
func (d *App) DescribeTasksInput(task *ecs.Task) *ecs.DescribeTasksInput
func (*App) FindRollbackTarget ¶ added in v0.1.0
func (*App) GetLogEvents ¶ added in v0.5.0
func (*App) GetLogEventsInput ¶ added in v0.5.0
func (d *App) GetLogEventsInput(logGroup string, logStream string, startAt int64) *cloudwatchlogs.GetLogEventsInput
func (*App) GetLogInfo ¶ added in v0.5.0
func (*App) LoadServiceDefinition ¶ added in v0.2.0
func (d *App) LoadServiceDefinition(path string) (*ecs.CreateServiceInput, error)
func (*App) LoadTaskDefinition ¶ added in v0.0.2
func (d *App) LoadTaskDefinition(path string) (*ecs.TaskDefinition, error)
func (*App) RegisterTaskDefinition ¶ added in v0.0.2
func (d *App) RegisterTaskDefinition(ctx context.Context, td *ecs.TaskDefinition) (*ecs.TaskDefinition, error)
func (*App) Rollback ¶ added in v0.1.0
func (d *App) Rollback(opt RollbackOption) error
func (*App) Status ¶ added in v0.1.0
func (d *App) Status(opt StatusOption) error
func (*App) UpdateService ¶ added in v0.0.2
func (*App) WaitRunTask ¶ added in v0.5.0
type Config ¶ added in v0.0.2
type Config struct { Region string `yaml:"region"` Service string `yaml:"service"` Cluster string `yaml:"cluster"` TaskDefinitionPath string `yaml:"task_definition"` ServiceDefinitionPath string `yaml:"service_definition"` Timeout time.Duration `yaml:"timeout"` }
func NewDefaultConfig ¶ added in v0.1.0
func NewDefaultConfig() *Config
type CreateOption ¶ added in v0.2.0
type DeleteOption ¶ added in v0.4.0
type DeployOption ¶ added in v0.2.0
type RollbackOption ¶ added in v0.2.0
type ServiceDefinition ¶ added in v0.2.0
type ServiceDefinition struct { DeploymentConfiguration *ecs.DeploymentConfiguration `json:"deploymentConfiguration"` LaunchType *string `json:"launchType"` LoadBalancers []*ecs.LoadBalancer `json:"loadBalancers"` NetworkConfiguration *ecs.NetworkConfiguration `json:"networkConfiguration"` PlacementConstraints []*ecs.PlacementConstraint `json:"placementConstraints"` PlacementStrategy []*ecs.PlacementStrategy `json:"placementStrategy"` Role *string `json:"role"` DesiredCount *int64 `json:"desiredCount"` }
type StatusOption ¶ added in v0.2.0
type StatusOption struct {
Events *int
}
Click to show internal directories.
Click to hide internal directories.