Versions in this module Expand all Collapse all v0 v0.0.2 Feb 12, 2018 Changes in this version + type ALB struct + DnsName string + Domain string + Listeners []*elbv2.Listener + Rules map[string][]*elbv2.Rule + VpcId string + func NewALB(loadBalancerName string) (*ALB, error) + func NewALBAndCreate(loadBalancerName, ipAddressType string, scheme string, securityGroups []string, ...) (*ALB, error) + func (a *ALB) CreateListener(protocol string, port int64, targetGroupArn string) error + func (a *ALB) CreateRule(ruleType string, listenerArn string, targetGroupArn string, rules []string, ...) error + func (a *ALB) CreateRuleForAllListeners(ruleType string, targetGroupArn string, rules []string, priority int64) ([]string, error) + func (a *ALB) CreateRuleForListeners(ruleType string, listeners []string, targetGroupArn string, rules []string, ...) ([]string, error) + func (a *ALB) CreateTargetGroup(serviceName string, d service.Deploy) (*string, error) + func (a *ALB) DeleteListener(listenerArn string) error + func (a *ALB) DeleteLoadBalancer() error + func (a *ALB) DeleteTargetGroup(targetGroupArn string) error + func (a *ALB) FindRule(listener string, targetGroupArn string, conditionField []string, ...) (*string, *string, error) + func (a *ALB) GetDomain() string + func (a *ALB) GetDomainUsingCertificate() error + func (a *ALB) GetHighestRule() (int64, error) + func (a *ALB) GetListeners() error + func (a *ALB) GetRulesForAllListeners() error + func (a *ALB) GetTargetGroupArn(serviceName string) (*string, error) + func (a *ALB) ModifyTargetGroupAttributes(targetGroupArn string, d service.Deploy) error + func (a *ALB) UpdateHealthCheck(targetGroupArn string, healthCheck service.DeployHealthCheck) error + type AutoScaling struct + func (a *AutoScaling) CompleteLifecycleAction(...) error + func (a *AutoScaling) CompletePendingLifecycleAction(autoScalingGroupName, instanceId, action, lifecycleHookName string) error + func (a *AutoScaling) CreateAutoScalingGroup(clusterName string, desiredCapacity int64, maxSize int64, minSize int64, ...) error + func (a *AutoScaling) CreateLaunchConfiguration(clusterName string, keyName string, instanceType string, ...) error + func (a *AutoScaling) DeleteAutoScalingGroup(clusterName string, forceDelete bool) error + func (a *AutoScaling) DeleteLaunchConfiguration(clusterName string) error + func (a *AutoScaling) GetAutoScalingGroupByTag(clusterName string) (string, error) + func (a *AutoScaling) GetClusterNodeDesiredCount(autoScalingGroupName string) (int64, int64, int64, error) + func (a *AutoScaling) GetLifecycleHookNames(autoScalingGroupName, lifecycleHookType string) ([]string, error) + func (a *AutoScaling) ScaleClusterNodes(autoScalingGroupName string, change int64) error + func (a *AutoScaling) WaitForAutoScalingGroupInService(clusterName string) error + func (a *AutoScaling) WaitForAutoScalingGroupNotExists(clusterName string) error + type CloudWatch struct + func (cloudwatch *CloudWatch) CreateLogGroup(clusterName, logGroup string) error + func (cloudwatch *CloudWatch) DeleteLogGroup(logGroup string) error + func (cloudwatch *CloudWatch) GetLogEventsByTime(logGroup, logStream string, startTime, endTime time.Time, nextToken string) (CloudWatchLog, error) + type CloudWatchLog struct + LogEvents []CloudWatchLogEvent + NextBackwardToken string + NextForwardToken string + type CloudWatchLogEvent struct + IngestionTime time.Time + Message string + Timestamp time.Time + type ContainerDefinition struct + Essential bool + Name string + type ContainerInstance struct + AvailabilityZone string + ContainerInstanceArn string + Ec2InstanceId string + PendingTasksCount int64 + RegisteredAt time.Time + RegisteredResources []ContainerInstanceResource + RemainingResources []ContainerInstanceResource + RunningTasksCount int64 + Status string + Version int64 + type ContainerInstanceResource struct + DoubleValue float64 + IntegerValue int64 + Name string + StringSetValue []string + Type string + type ECR struct + RepositoryName string + RepositoryURI string + func (e *ECR) CreateRepository() error + func (e *ECR) ListImagesWithTag(repositoryName string) (map[string]string, error) + type ECS struct + ClusterName string + IamRoleArn string + ServiceName string + TargetGroupArn *string + TaskDefArn *string + TaskDefinition *ecs.RegisterTaskDefinitionInput + func (e *ECS) ConvertResourceToFir(cir []ContainerInstanceResource) (FreeInstanceResource, error) + func (e *ECS) ConvertResourceToRir(cir []ContainerInstanceResource) (RegisteredInstanceResource, error) + func (e *ECS) CreateCluster(clusterName string) (*string, error) + func (e *ECS) CreateService(d service.Deploy) error + func (e *ECS) CreateTaskDefinition(d service.Deploy) (*string, error) + func (e *ECS) DeleteCluster(clusterName string) error + func (e *ECS) DeleteKeyPair(keyName string) error + func (e *ECS) DeleteService(clusterName, serviceName string) error + func (e *ECS) DescribeContainerInstances(clusterName string, containerInstances []string) ([]ContainerInstance, error) + func (e *ECS) DescribeService(clusterName string, serviceName string, showEvents bool, showTasks bool, ...) (service.RunningService, error) + func (e *ECS) DescribeServices(clusterName string, serviceNames []*string, showEvents bool, showTasks bool, ...) ([]service.RunningService, error) + func (e *ECS) DescribeTaskDefinition(taskDefinitionNameOrArn string) (TaskDefinition, error) + func (e *ECS) DescribeTasks(clusterName string, tasks []*string) ([]service.RunningTask, error) + func (e *ECS) DrainNode(clusterName, instance string) error + func (e *ECS) GetClusterNameByInstanceId(instance string) (string, error) + func (e *ECS) GetContainerInstanceArnByInstanceId(clusterName, instanceId string) (string, error) + func (e *ECS) GetContainerLimits(d service.Deploy) (int64, int64, int64, int64) + func (e *ECS) GetECSAMI() (string, error) + func (e *ECS) GetFreeResources(clusterName string) ([]FreeInstanceResource, error) + func (e *ECS) GetPubKeyFromPrivateKey(privateKey string) ([]byte, error) + func (e *ECS) GetTaskDefinition(clusterName, serviceName string) (string, error) + func (e *ECS) ImportKeyPair(keyName string, publicKey []byte) error + func (e *ECS) IsEqualContainerLimits(d1 service.Deploy, d2 service.Deploy) bool + func (e *ECS) LaunchWaitForDrainedNode(...) error + func (e *ECS) LaunchWaitUntilServicesStable(dd *service.DynamoDeployment) error + func (e *ECS) ListContainerInstances(clusterName string) ([]string, error) + func (e *ECS) ListServices(clusterName string) ([]*string, error) + func (e *ECS) ListTasks(clusterName, name, desiredStatus, filterBy string) ([]*string, error) + func (e *ECS) ManualScaleService(clusterName, serviceName string, desiredCount int64) error + func (e *ECS) Rollback(clusterName, serviceName string) error + func (e *ECS) RunTask(clusterName, taskDefinition string, runTask service.RunTask) (string, error) + func (e *ECS) ServiceExists(serviceName string) (bool, error) + func (e *ECS) UpdateService(serviceName string, taskDefArn *string, d service.Deploy) (*string, error) + func (e *ECS) WaitUntilServicesInactive(clusterName, serviceName string) error + func (e *ECS) WaitUntilServicesStable(clusterName, serviceName string, maxWaitMinutes int) error + type EcsVersionInfo struct + AgentHash string + AgentVersion string + DockerVersion string + type FreeInstanceResource struct + AvailabilityZone string + FreeCpu int64 + FreeMemory int64 + InstanceId string + Status string + type IAM struct + AccountId string + func (e *IAM) AddRoleToInstanceProfile(instanceProfileName, roleName string) error + func (e *IAM) AssumeRole(roleArn, roleSessionName, prevCreds string) (*credentials.Credentials, string, error) + func (e *IAM) AttachRolePolicy(roleName, policyArn string) error + func (e *IAM) CreateInstanceProfile(instanceProfileName string) error + func (e *IAM) CreateRole(roleName, assumePolicyDocument string) (*string, error) + func (e *IAM) DeleteInstanceProfile(instanceProfileName string) error + func (e *IAM) DeleteRole(roleName string) error + func (e *IAM) DeleteRolePolicy(roleName, policyName string) error + func (e *IAM) GetAccountId() error + func (e *IAM) GetEC2IAMTrust() string + func (e *IAM) GetEcsServiceIAMTrust() string + func (e *IAM) GetEcsServicePolicy() string + func (e *IAM) GetEcsTaskIAMTrust() string + func (e *IAM) PutRolePolicy(roleName, policyName, policy string) error + func (e *IAM) RemoveRoleFromInstanceProfile(instanceProfileName, roleName string) error + func (e *IAM) RoleExists(roleName string) (*string, error) + func (e *IAM) WaitUntilInstanceProfileExists(instanceProfileName string) error + type Parameter struct + Name string + Type string + Value string + Version int64 + type Paramstore struct + Parameters map[string]Parameter + SsmAssumingRole *ssm.SSM + func (p *Paramstore) AssumeRole(roleArn, roleSessionName, prevCreds string) (string, error) + func (p *Paramstore) Bootstrap(serviceName, prefix string, environment string, ...) error + func (p *Paramstore) DeleteParameter(serviceName, parameter string) error + func (p *Paramstore) GetParameterValue(name string) (*string, error) + func (p *Paramstore) GetParameters(prefix string, withDecryption bool) error + func (p *Paramstore) GetParamstoreIAMPolicy(serviceName string) string + func (p *Paramstore) GetPrefix() string + func (p *Paramstore) GetPrefixForService(serviceName string) string + func (p *Paramstore) IsEnabled() bool + func (p *Paramstore) PutParameter(serviceName string, parameter service.DeployServiceParameter) (*int64, error) + func (p *Paramstore) RetrieveKeys() error + type RegisteredInstanceResource struct + InstanceId string + RegisteredCpu int64 + RegisteredMemory int64 + type SNSPayload struct + Message string + MessageId string + Signature string + SignatureVersion string + SigningCertURL string + Subject string + SubscribeURL string + Timestamp string + Token string + TopicArn string + Type string + UnsubscribeURL string + type SNSPayloadEcs struct + Account string + Detail SNSPayloadEcsDetail + DetailType string + Id string + Region string + Resources []string + Source string + Time string + Version string + type SNSPayloadEcsDetail struct + Attributes []SNSPayloadEcsDetailAttributes + ClusterArn string + ContainerInstanceArn string + Ec2InstanceId string + RegisteredAt string + RegisteredResources []ContainerInstanceResource + RemainingResources []ContainerInstanceResource + Status string + UpdatedAt string + Version int64 + VersionInfo EcsVersionInfo + type SNSPayloadEcsDetailAttributes struct + Name string + Value string + type SNSPayloadGeneric struct + DetailType string + Id string + Version string + type SNSPayloadLifecycle struct + Account string + Detail SNSPayloadLifecycleDetail + DetailType string + Id string + Region string + Resources []string + Source string + Time string + Version string + type SNSPayloadLifecycleDetail struct + AutoScalingGroupName string + EC2InstanceId string + LifecycleActionToken string + LifecycleHookName string + LifecycleTransition string + type TaskDefinition struct + ContainerDefinitions []ContainerDefinition + ExecutionRoleArn string + Family string + Revision int64