Documentation ¶
Index ¶
- Constants
- func GetASGName() string
- func GetClusterName() string
- func GetKeyPairName() string
- func GetLatestECSOptimizedAMIID() (string, error)
- func NewClusterState() (facade.ClusterState, error)
- type AutoScalingWrapper
- func (wrapper AutoScalingWrapper) CreateAutoScalingGroup(asg string, configName string, availabilityZones []*string) error
- func (wrapper AutoScalingWrapper) CreateLaunchConfiguration(configName string, clusterName string, instanceProfileName string, ...) error
- func (wrapper AutoScalingWrapper) DeleteAutoScalingGroup(asg string, forceDelete bool) error
- func (wrapper AutoScalingWrapper) DeleteLaunchConfiguration(configName string) error
- func (wrapper AutoScalingWrapper) GetAutoScalingGroupStatus(asg string) (string, error)
- func (wrapper AutoScalingWrapper) SetDesiredCapacity(asg string, count int64) error
- type EC2Wrapper
- type ECSWrapper
- func (ecsWrapper ECSWrapper) CreateCluster(clusterName string) (*string, error)
- func (ecsWrapper ECSWrapper) DeleteCluster(clusterName string) (*string, error)
- func (ecsWrapper ECSWrapper) DeregisterContainerInstances(clusterName *string, instanceARNs []*string) error
- func (ecsWrapper ECSWrapper) DeregisterTaskDefinition(taskDefnARN string) error
- func (ecsWrapper ECSWrapper) DescribeContainerInstance(clusterName string, instanceARN string) (ecs.ContainerInstance, error)
- func (ecsWrapper ECSWrapper) DescribeTaskDefinition(taskDefn string) (string, error)
- func (ecsWrapper ECSWrapper) DescribeTasks(cluster *string, taskArns []*string) ([]*ecs.Task, error)
- func (ecsWrapper ECSWrapper) ListContainerInstances(clusterName string) ([]*string, error)
- func (ecsWrapper ECSWrapper) ListTasks(clusterName string, startedBy *string) ([]*string, error)
- func (ecsWrapper ECSWrapper) RegisterTaskDefinition(taskDefinition string) (string, error)
- func (ecsWrapper ECSWrapper) StopTask(cluster string, task string) error
- type EDSWrapper
- func (eds EDSWrapper) CreateDeployment(ctx context.Context, envName *string, deploymentToken *string) (*models.Deployment, error)
- func (eds EDSWrapper) CreateEnvironment(in *models.CreateEnvironmentRequest) (*models.Environment, error)
- func (eds EDSWrapper) DeleteEnvironment(name *string) error
- func (eds EDSWrapper) GetDeployment(name *string, id *string) (*models.Deployment, error)
- func (eds EDSWrapper) GetEnvironment(name *string) (*models.Environment, error)
- func (eds EDSWrapper) ListDeployments(name *string) ([]*models.Deployment, error)
- func (eds EDSWrapper) ListEnvironments() ([]*models.Environment, error)
- func (eds EDSWrapper) ListEnvironmentsWithClusterFilter(cluster string) ([]*models.Environment, error)
- func (eds EDSWrapper) Ping() error
- func (eds EDSWrapper) TryListEnvironmentsWithInvalidCluster(cluster string) (string, string, error)
- type IAMWrapper
- func (iamWrapper IAMWrapper) AddRoleToInstanceProfile(roleName *string, instanceProfileName *string) error
- func (iamWrapper IAMWrapper) AttachRolePolicy(policyARN *string, roleName *string) error
- func (iamWrapper IAMWrapper) CreateInstanceProfile(instanceProfileName *string) error
- func (iamWrapper IAMWrapper) CreateRole(roleName *string, assumeRolePolicyDocument *string) error
- func (iamWrapper IAMWrapper) DeleteInstanceProfile(instanceProfile *string) error
- func (iamWrapper IAMWrapper) DeleteRole(roleName *string) error
- func (iamWrapper IAMWrapper) DetachRolePolicy(policyARN *string, roleName *string) error
- func (iamWrapper IAMWrapper) GetInstanceProfile(instanceProfileName *string) error
- func (iamWrapper IAMWrapper) GetRole(roleName *string) error
- func (iamWrapper IAMWrapper) RemoveRoleFromInstanceProfile(roleName *string, instanceProfileName *string) error
Constants ¶
View Source
const (
ASGConfigLaunchRetrySleepSecond = 2 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func GetASGName ¶ added in v0.3.0
func GetASGName() string
func GetClusterName ¶ added in v0.3.0
func GetClusterName() string
func GetKeyPairName ¶ added in v0.3.0
func GetKeyPairName() string
func GetLatestECSOptimizedAMIID ¶ added in v0.3.0
func NewClusterState ¶
func NewClusterState() (facade.ClusterState, error)
Types ¶
type AutoScalingWrapper ¶
type AutoScalingWrapper struct {
// contains filtered or unexported fields
}
func NewAutoScalingWrapper ¶
func NewAutoScalingWrapper() AutoScalingWrapper
func (AutoScalingWrapper) CreateAutoScalingGroup ¶ added in v0.3.0
func (wrapper AutoScalingWrapper) CreateAutoScalingGroup(asg string, configName string, availabilityZones []*string) error
func (AutoScalingWrapper) CreateLaunchConfiguration ¶ added in v0.3.0
func (AutoScalingWrapper) DeleteAutoScalingGroup ¶ added in v0.3.0
func (wrapper AutoScalingWrapper) DeleteAutoScalingGroup(asg string, forceDelete bool) error
func (AutoScalingWrapper) DeleteLaunchConfiguration ¶ added in v0.3.0
func (wrapper AutoScalingWrapper) DeleteLaunchConfiguration(configName string) error
func (AutoScalingWrapper) GetAutoScalingGroupStatus ¶ added in v0.3.0
func (wrapper AutoScalingWrapper) GetAutoScalingGroupStatus(asg string) (string, error)
func (AutoScalingWrapper) SetDesiredCapacity ¶
func (wrapper AutoScalingWrapper) SetDesiredCapacity(asg string, count int64) error
type EC2Wrapper ¶ added in v0.3.0
type EC2Wrapper struct {
// contains filtered or unexported fields
}
func NewEC2Wrapper ¶ added in v0.3.0
func NewEC2Wrapper() EC2Wrapper
func (EC2Wrapper) DescribeAvailabilityZones ¶ added in v0.3.0
func (EC2Wrapper EC2Wrapper) DescribeAvailabilityZones() ([]*string, error)
func (EC2Wrapper) TerminateInstances ¶ added in v0.3.0
func (ec2Wrapper EC2Wrapper) TerminateInstances(instanceIDs []*string) error
type ECSWrapper ¶
type ECSWrapper struct {
// contains filtered or unexported fields
}
func NewECSWrapper ¶
func NewECSWrapper() ECSWrapper
func (ECSWrapper) CreateCluster ¶
func (ecsWrapper ECSWrapper) CreateCluster(clusterName string) (*string, error)
func (ECSWrapper) DeleteCluster ¶
func (ecsWrapper ECSWrapper) DeleteCluster(clusterName string) (*string, error)
func (ECSWrapper) DeregisterContainerInstances ¶ added in v0.3.0
func (ecsWrapper ECSWrapper) DeregisterContainerInstances(clusterName *string, instanceARNs []*string) error
func (ECSWrapper) DeregisterTaskDefinition ¶
func (ecsWrapper ECSWrapper) DeregisterTaskDefinition(taskDefnARN string) error
func (ECSWrapper) DescribeContainerInstance ¶
func (ecsWrapper ECSWrapper) DescribeContainerInstance(clusterName string, instanceARN string) (ecs.ContainerInstance, error)
func (ECSWrapper) DescribeTaskDefinition ¶
func (ecsWrapper ECSWrapper) DescribeTaskDefinition(taskDefn string) (string, error)
func (ECSWrapper) DescribeTasks ¶
func (ECSWrapper) ListContainerInstances ¶
func (ecsWrapper ECSWrapper) ListContainerInstances(clusterName string) ([]*string, error)
func (ECSWrapper) ListTasks ¶
func (ecsWrapper ECSWrapper) ListTasks(clusterName string, startedBy *string) ([]*string, error)
func (ECSWrapper) RegisterTaskDefinition ¶
func (ecsWrapper ECSWrapper) RegisterTaskDefinition(taskDefinition string) (string, error)
type EDSWrapper ¶
type EDSWrapper struct {
// contains filtered or unexported fields
}
func NewEDSWrapper ¶
func NewEDSWrapper() EDSWrapper
func (EDSWrapper) CreateDeployment ¶
func (eds EDSWrapper) CreateDeployment(ctx context.Context, envName *string, deploymentToken *string) (*models.Deployment, error)
func (EDSWrapper) CreateEnvironment ¶
func (eds EDSWrapper) CreateEnvironment(in *models.CreateEnvironmentRequest) (*models.Environment, error)
func (EDSWrapper) DeleteEnvironment ¶
func (eds EDSWrapper) DeleteEnvironment(name *string) error
func (EDSWrapper) GetDeployment ¶
func (eds EDSWrapper) GetDeployment(name *string, id *string) (*models.Deployment, error)
func (EDSWrapper) GetEnvironment ¶
func (eds EDSWrapper) GetEnvironment(name *string) (*models.Environment, error)
func (EDSWrapper) ListDeployments ¶
func (eds EDSWrapper) ListDeployments(name *string) ([]*models.Deployment, error)
func (EDSWrapper) ListEnvironments ¶
func (eds EDSWrapper) ListEnvironments() ([]*models.Environment, error)
func (EDSWrapper) ListEnvironmentsWithClusterFilter ¶ added in v0.2.0
func (eds EDSWrapper) ListEnvironmentsWithClusterFilter(cluster string) ([]*models.Environment, error)
func (EDSWrapper) Ping ¶
func (eds EDSWrapper) Ping() error
func (EDSWrapper) TryListEnvironmentsWithInvalidCluster ¶ added in v0.2.0
func (eds EDSWrapper) TryListEnvironmentsWithInvalidCluster(cluster string) (string, string, error)
type IAMWrapper ¶ added in v0.3.0
type IAMWrapper struct {
// contains filtered or unexported fields
}
func NewIAMWrapper ¶ added in v0.3.0
func NewIAMWrapper() IAMWrapper
func (IAMWrapper) AddRoleToInstanceProfile ¶ added in v0.3.0
func (iamWrapper IAMWrapper) AddRoleToInstanceProfile(roleName *string, instanceProfileName *string) error
func (IAMWrapper) AttachRolePolicy ¶ added in v0.3.0
func (iamWrapper IAMWrapper) AttachRolePolicy(policyARN *string, roleName *string) error
func (IAMWrapper) CreateInstanceProfile ¶ added in v0.3.0
func (iamWrapper IAMWrapper) CreateInstanceProfile(instanceProfileName *string) error
func (IAMWrapper) CreateRole ¶ added in v0.3.0
func (iamWrapper IAMWrapper) CreateRole(roleName *string, assumeRolePolicyDocument *string) error
func (IAMWrapper) DeleteInstanceProfile ¶ added in v0.3.0
func (iamWrapper IAMWrapper) DeleteInstanceProfile(instanceProfile *string) error
func (IAMWrapper) DeleteRole ¶ added in v0.3.0
func (iamWrapper IAMWrapper) DeleteRole(roleName *string) error
func (IAMWrapper) DetachRolePolicy ¶ added in v0.3.0
func (iamWrapper IAMWrapper) DetachRolePolicy(policyARN *string, roleName *string) error
func (IAMWrapper) GetInstanceProfile ¶ added in v0.3.0
func (iamWrapper IAMWrapper) GetInstanceProfile(instanceProfileName *string) error
func (IAMWrapper) GetRole ¶ added in v0.3.0
func (iamWrapper IAMWrapper) GetRole(roleName *string) error
func (IAMWrapper) RemoveRoleFromInstanceProfile ¶ added in v0.3.0
func (iamWrapper IAMWrapper) RemoveRoleFromInstanceProfile(roleName *string, instanceProfileName *string) error
Click to show internal directories.
Click to hide internal directories.