Documentation ¶
Index ¶
- Constants
- Variables
- type App
- func (d *App) Create(opt CreateOption) 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) FindRollbackTarget(ctx context.Context, taskDefinitionArn string) (string, error)
- 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) 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) WaitServiceStable(ctx context.Context, startedAt time.Time) error
- type Config
- type CreateOption
- type DeployOption
- type RollbackOption
- 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) 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) FindRollbackTarget ¶ added in v0.1.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
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 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.