Documentation
¶
Index ¶
- type ALB
- type API
- type AutoScaling
- type CloudWatch
- type CloudWatchLog
- type CloudWatchLogEvent
- type ContainerDefinition
- type ContainerInstance
- type ContainerInstanceResource
- type Controller
- type Deploy
- type DeployContainer
- type DeployHealthCheck
- type DeployNetworkConfiguration
- type DeployPlacementConstraint
- type DeployResult
- type DeployRuleConditions
- type DeployServiceParameter
- type DeployServices
- type DeployStickiness
- type DynamoCluster
- type DynamoClusterContainerInstance
- type DynamoClusterScalingOperation
- type DynamoDeployment
- type DynamoDeploymentScaling
- type DynamoServices
- type DynamoServicesElement
- type ECR
- type ECS
- type EcsVersionInfo
- type Export
- type ExportedApps
- type Flags
- type FreeInstanceResource
- type IAM
- type ListenerRule
- type ListenerRuleCondition
- type ListenerRuleExport
- type Migration
- type Parameter
- type Paramstore
- type RegisteredInstanceResource
- type RulePriority
- type RunTask
- type RunTaskContainerOverride
- type RunningService
- type RunningServiceDeployment
- type RunningServiceEvent
- type RunningTask
- type RunningTaskContainer
- type SAML
- type SNSPayload
- type SNSPayloadEcs
- type SNSPayloadEcsDetail
- type SNSPayloadGeneric
- type SNSPayloadLifecycle
- type SNSPayloadLifecycleDetail
- type Service
- type ServiceVersion
- type TaskDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudWatch ¶
type CloudWatch struct{}
type CloudWatchLog ¶
type CloudWatchLog struct {
NextBackwardToken string `json:"nextBackwardToken"`
NextForwardToken string `json:"nextForwardToken"`
LogEvents []CloudWatchLogEvent `json:"logEvents"`
}
type CloudWatchLogEvent ¶
type ContainerDefinition ¶
type ContainerInstance ¶
type ContainerInstance struct {
ContainerInstanceArn string
Ec2InstanceId string
PendingTasksCount int64
RegisteredAt time.Time
RegisteredResources []ContainerInstanceResource
RemainingResources []ContainerInstanceResource
RunningTasksCount int64
Status string
Version int64
}
containerInstance
type Controller ¶
type Controller struct {
}
Controller struct
func (*Controller) Bootstrap ¶
func (c *Controller) Bootstrap(b *Flags) error
func (*Controller) DeleteCluster ¶
func (c *Controller) DeleteCluster(b *Flags) error
func (*Controller) Resume ¶
func (c *Controller) Resume() error
func (*Controller) SetDeployDefaults ¶
func (c *Controller) SetDeployDefaults(d *Deploy)
type Deploy ¶
type Deploy struct {
Cluster string `json:"cluster" binding:"required"`
ServiceName string `json:"serviceName"`
ServicePort int64 `json:"servicePort"`
ServiceProtocol string `json:"serviceProtocol" binding:"required"`
DesiredCount int64 `json:"desiredCount" binding:"required"`
MinimumHealthyPercent int64 `json:"minimumHealthyPercent"`
MaximumPercent int64 `json:"maximumPercent"`
Containers []*DeployContainer `json:"containers" binding:"required,dive"`
HealthCheck DeployHealthCheck `json:"healthCheck"`
RuleConditions []*DeployRuleConditions `json:"ruleConditions`
NetworkMode string `json:"networkMode"`
NetworkConfiguration DeployNetworkConfiguration `json:"networkConfiguration"`
PlacementConstraints []DeployPlacementConstraint `json:"placementConstraints"`
LaunchType string `json:"launchType"`
DeregistrationDelay int64 `json:"deregistrationDelay"`
Stickiness DeployStickiness `json:"stickiness"`
}
type DeployContainer ¶
type DeployContainer struct {
ContainerName string `json:"containerName" binding:"required"`
ContainerTag string `json:"containerTag" binding:"required"`
ContainerPort int64 `json:"containerPort"`
ContainerCommand []*string `json:"containerCommand"`
ContainerImage string `json:"containerImage`
ContainerURI string `json:"containerURI"`
Essential bool `json:"essential"`
Memory int64 `json:"memory"`
MemoryReservation int64 `json:"memoryReservation"`
CPU int64 `json:"cpu"`
CPUReservation int64 `json:"cpuReservation"`
}
type DeployHealthCheck ¶
type DeployHealthCheck struct {
HealthyThreshold int64 `json:"healthyThreshold"`
UnhealthyThreshold int64 `json:"unhealthyThreshold"`
Path string `json:"path"`
Port string `json:"port"`
Protocol string `json:"protocol"`
Interval int64 `json:"interval"`
Matcher string `json:"matcher"`
Timeout int64 `json:"timeout"`
GracePeriodSeconds int64 `json:"gracePeriodSeconds"`
}
type DeployResult ¶
type DeployRuleConditions ¶
type DeployServiceParameter ¶
type DeployServices ¶
type DeployServices struct {
Services []Deploy `json:"services" binding:"required"`
}
deploy binding from JSON
type DeployStickiness ¶
type DynamoCluster ¶
type DynamoCluster struct {
Identifier string `dynamo:"ServiceName,hash"`
Time time.Time `dynamo:"Time,range"`
ContainerInstances []DynamoClusterContainerInstance
ScalingOperation DynamoClusterScalingOperation
ExpirationTime time.Time
}
dynamo cluster struct
type DynamoDeployment ¶
type DynamoDeployment struct {
ServiceName string `dynamo:"ServiceName,hash"`
Time time.Time `dynamo:"Time,range" index:"DayIndex,range" index:"MonthIndex,range"`
Day string `index:"DayIndex,hash"`
Month string `index:"MonthIndex,hash"`
Status string
DeployError string
Tag string
Scaling DynamoDeploymentScaling
ManualTasksArns []string
TaskDefinitionArn *string
DeployData *Deploy
Version int64
}
type DynamoDeploymentScaling ¶
type DynamoDeploymentScaling struct {
DesiredCount int64
}
type DynamoServices ¶
type DynamoServices struct {
ServiceName string `dynamo:"ServiceName,hash"`
Services []*DynamoServicesElement
Time string `dynamo:"Time,range"`
Version int64
ApiVersion string
}
dynamo services struct
type DynamoServicesElement ¶
type EcsVersionInfo ¶
type EcsVersionInfo struct {
AgentHash string `json:"agentHash"`
AgentVersion string `json:"agentVersion"`
DockerVersion string `json:"dockerVersion"`
}
version info
type ExportedApps ¶
type Flags ¶
type Flags struct {
Bootstrap bool
DisableEcsDeploy bool
Profile string
Region string
ClusterName string
Environment string
AlbSecurityGroups string
EcsSubnets string
CloudwatchLogsPrefix string
CloudwatchLogsEnabled bool
KeyName string
InstanceType string
EcsSecurityGroups string
EcsMinSize string
EcsMaxSize string
EcsDesiredSize string
ParamstoreEnabled bool
ParamstoreKmsArn string
ParamstorePrefix string
LoadbalancerDomain string
Server bool
DeleteCluster string
}
type FreeInstanceResource ¶
free instance resource
type ListenerRule ¶
type ListenerRule struct {
ListenerRuleArn string `json:"listenerRuleArn"`
TargetGroupArn string `json:"targetGroupArn" binding:"dive"`
Conditions []ListenerRuleCondition `json:"conditions" binding:"dive"`
}
type ListenerRuleCondition ¶
type ListenerRuleExport ¶
type ListenerRuleExport struct {
RuleKeys RulePriority `json:"ruleKeys" binding:"dive"`
Rules map[int64]ListenerRule `json:"rules" binding:"dive"`
}
type Parameter ¶
type Parameter struct {
Name string `json:"name"`
Type string `json:"type"`
Value string `json:"value"`
Version int64 `json:"version"`
}
parameter type
type Paramstore ¶
type Paramstore struct {
// contains filtered or unexported fields
}
Paramstore struct
func (*Paramstore) RetrieveKeys ¶
func (p *Paramstore) RetrieveKeys() error
type RegisteredInstanceResource ¶
type RegisteredInstanceResource struct {
InstanceId string
RegisteredMemory int64
RegisteredCpu int64
}
registered instance resource
type RulePriority ¶
type RulePriority []int64
func (RulePriority) Len ¶
func (a RulePriority) Len() int
func (RulePriority) Less ¶
func (a RulePriority) Less(i, j int) bool
func (RulePriority) Swap ¶
func (a RulePriority) Swap(i, j int)
type RunTask ¶
type RunTask struct {
StartedBy string `json:"startedBy"`
ContainerOverrides []RunTaskContainerOverride `json:"containerOverrides"`
}
"Run ad-hoc task" type
type RunningService ¶
type RunningService struct {
ServiceName string `json:"serviceName"`
ClusterName string `json:"clusterName"`
RunningCount int64 `json:"runningCount"`
PendingCount int64 `json:"pendingCount"`
DesiredCount int64 `json:"desiredCount"`
Status string `json:"status"`
Events []RunningServiceEvent `json:"events"`
Deployments []RunningServiceDeployment `json:"deployments"`
Tasks []RunningTask `json:"tasks"`
}
type RunningServiceDeployment ¶
type RunningServiceDeployment struct {
Status string `json:"status"`
RunningCount int64 `json:"runningCount"`
PendingCount int64 `json:"pendingCount"`
DesiredCount int64 `json:"desiredCount"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
TaskDefinition string `json:"taskDefinition"`
}
type RunningServiceEvent ¶
type RunningTask ¶
type RunningTask struct {
ContainerInstanceArn string `json:"containerInstanceArn"`
Containers []RunningTaskContainer `json:"containers"`
Cpu string `json:"cpu"`
CreatedAt time.Time `json:"createdAt"`
DesiredStatus string `json:"desiredStatus"`
ExecutionStoppedAt time.Time `json:"executionStoppedAt"`
Group string `json:"group"`
LastStatus string `json:"lastStatus"`
LaunchType string `json:"launchType"`
Memory string `json:"memory"`
PullStartedAt time.Time `json:"pullStartedAt"`
PullStoppedAt time.Time `json:"pullStoppedAt"`
StartedAt time.Time `json:"startedAt"`
StartedBy string `json:"startedBy"`
StoppedAt time.Time `json:"stoppedAt"`
StoppedReason string `json:"stoppedReason"`
StoppingAt time.Time `json:"stoppingAt"`
TaskArn string `json:"taskArn"`
TaskDefinitionArn string `json:"taskDefinitionArn"`
Version int64 `json:"version"`
}
type RunningTaskContainer ¶
type SNSPayload ¶
type SNSPayload struct {
Message string `json:"Message"`
MessageId string `json:"MessageId"`
Signature string `json:"Signature"`
SignatureVersion string `json:"SignatureVersion"`
SigningCertURL string `json:"SigningCertURL"`
SubscribeURL string `json:"SubscribeURL"`
Subject string `json:"Subject"`
Timestamp string `json:"Timestamp"`
Token string `json:"Token"`
TopicArn string `json:"TopicArn"`
Type string `json:"Type" binding:"required"`
UnsubscribeURL string `json:"UnsubscribeURL"`
}
SNS payload
type SNSPayloadEcs ¶
type SNSPayloadEcs struct {
Version string `json:"version"`
Id string `json:"id"`
DetailType string `json:"detail-type" binding:"required"`
Source string `json:"source"`
Account string `json:"account"`
Time string `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail SNSPayloadEcsDetail `json:"detail"`
}
ECS SNS Event
type SNSPayloadEcsDetail ¶
type SNSPayloadEcsDetail struct {
ClusterArn string `json:"clusterArn"`
ContainerInstanceArn string `json:"containerInstanceArn"`
Ec2InstanceId string `json:"ec2InstanceId"`
RegisteredResources []ContainerInstanceResource `json:"registeredResources"`
RemainingResources []ContainerInstanceResource `json:"remainingResources"`
Status string `json:"status"`
Version int64 `json:"version"`
VersionInfo EcsVersionInfo `json:"versionInfo"`
UpdatedAt string `json:"updatedAt"`
RegisteredAt string `json:"registeredAt"`
}
type SNSPayloadGeneric ¶
type SNSPayloadGeneric struct {
Version string `json:"version"`
Id string `json:"id"`
DetailType string `json:"detail-type" binding:"required"`
}
generic payload (to check detail type)
type SNSPayloadLifecycle ¶
type SNSPayloadLifecycle struct {
Version string `json:"version"`
Id string `json:"id"`
DetailType string `json:"detail-type" binding:"required"`
Source string `json:"source"`
Account string `json:"account"`
Time string `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail SNSPayloadLifecycleDetail `json:"detail"`
}
lifecycle event
type SNSPayloadLifecycleDetail ¶
type SNSPayloadLifecycleDetail struct {
LifecycleActionToken string `json:"LifecycleActionToken"`
AutoScalingGroupName string `json:"AutoScalingGroupName"`
LifecycleHookName string `json:"LifecycleHookName"`
EC2InstanceId string `json:"EC2InstanceId"`
LifecycleTransition string `json:"LifecycleTransition"`
}
type ServiceVersion ¶
type TaskDefinition ¶
type TaskDefinition struct {
Family string `json:"family"`
Revision int64 `json:"revision"`
ExecutionRoleArn string `json:"executionRole"`
ContainerDefinitions []ContainerDefinition `json:"containerDefinitions"`
}
Task definition and Container definition