Documentation
¶
Index ¶
- func Run(service, cluster, path string, timeout time.Duration) error
- type Deployment
- func (d *Deployment) LoadTaskDefinition(path string) error
- func (d *Deployment) Log(v ...interface{})
- func (d *Deployment) Name() string
- func (d *Deployment) RegisterTaskDefinition(ctx context.Context) error
- func (d *Deployment) UpdateService(ctx context.Context) error
- func (d *Deployment) WaitServiceStable(ctx context.Context) error
- type TaskDefinition
- type TaskDefinitionContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deployment ¶
type Deployment struct {
Service string
Cluster string
TaskDefinition *TaskDefinition
Registered *TaskDefinition
}
func (*Deployment) LoadTaskDefinition ¶
func (d *Deployment) LoadTaskDefinition(path string) error
func (*Deployment) Log ¶
func (d *Deployment) Log(v ...interface{})
func (*Deployment) Name ¶
func (d *Deployment) Name() string
func (*Deployment) RegisterTaskDefinition ¶
func (d *Deployment) RegisterTaskDefinition(ctx context.Context) error
func (*Deployment) UpdateService ¶
func (d *Deployment) UpdateService(ctx context.Context) error
func (*Deployment) WaitServiceStable ¶
func (d *Deployment) WaitServiceStable(ctx context.Context) error
type TaskDefinition ¶
type TaskDefinition struct {
ContainerDefinitions []map[string]interface{} `yaml:"containerDefinitions" json:"containerDefinitions"`
Family string `yaml:"family" json:"family"`
NetworkMode string `yaml:"networkMode" json:"networkMode"`
PlacementConstraints []map[string]string `yaml:"placementConstraints" json:"placementConstraints"`
RequiresAttributes []map[string]string `yaml:"requiresAttributes" json:"requiresAttributes"`
Revision int `yaml:"revision" json:"revision"`
Status string `yaml:"status" json:"status"`
TaskRoleArn string `yaml:"taskRoleArn" json:"taskRoleArn"`
Volumes []map[string]interface{} `yaml:"volumes" yaml:"json"`
}
func (*TaskDefinition) Name ¶
func (t *TaskDefinition) Name() string
type TaskDefinitionContainer ¶
type TaskDefinitionContainer struct {
TaskDefinition TaskDefinition `yaml:"taskDefinition" json:"taskDefinition"`
}
Click to show internal directories.
Click to hide internal directories.