Documentation ¶
Index ¶
- 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 RunTask
- type RunTaskContainerOverride
- type RunningService
- type RunningServiceDeployment
- type RunningServiceEvent
- type RunningTask
- type RunningTaskContainer
- type Service
- func (s *Service) CreateService(dsElement *DynamoServicesElement) error
- func (s *Service) CreateTable() error
- func (s *Service) GetApiVersion() (string, error)
- func (s *Service) GetClusterInfo() (*DynamoCluster, error)
- func (s *Service) GetClusterName() (string, error)
- func (s *Service) GetDeployment(serviceName string, strTime string) (*DynamoDeployment, error)
- func (s *Service) GetDeploys(action string, limit int64) ([]DynamoDeployment, error)
- func (s *Service) GetDeploysForService(serviceName string) ([]DynamoDeployment, error)
- func (s *Service) GetLastDeploy() (*DynamoDeployment, error)
- func (s *Service) GetScalingActivity(clusterName string, startTime time.Time) (string, error)
- func (s *Service) GetServiceVersionsByTags(serviceName, imageName string, tags map[string]string) ([]ServiceVersion, error)
- func (s *Service) GetServices(ds *DynamoServices) error
- func (s *Service) NewDeployment(taskDefinitionArn *string, d *Deploy) (*DynamoDeployment, error)
- func (s *Service) PutClusterInfo(dc DynamoCluster, clusterName string, action string) (*DynamoCluster, error)
- func (s *Service) SetApiVersion(apiVersion string) error
- func (s *Service) SetDeploymentStatus(dd *DynamoDeployment, status string) error
- func (s *Service) SetDeploymentStatusWithReason(dd *DynamoDeployment, status, reason string) error
- func (s *Service) SetManualTasksArn(manualTaskArn string) error
- func (s *Service) SetScalingProperty(desiredCount int64) error
- func (s *Service) UpdateServiceLimits(clusterName, serviceName string, ...) error
- type ServiceVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 Service ¶
type Service struct { ServiceName string ClusterName string Listeners []string // contains filtered or unexported fields }
func NewService ¶
func NewService() *Service
func (*Service) CreateService ¶
func (s *Service) CreateService(dsElement *DynamoServicesElement) error
func (*Service) CreateTable ¶
func (*Service) GetApiVersion ¶
func (*Service) GetClusterInfo ¶
func (s *Service) GetClusterInfo() (*DynamoCluster, error)
func (*Service) GetClusterName ¶
func (*Service) GetDeployment ¶
func (s *Service) GetDeployment(serviceName string, strTime string) (*DynamoDeployment, error)
func (*Service) GetDeploys ¶
func (s *Service) GetDeploys(action string, limit int64) ([]DynamoDeployment, error)
func (*Service) GetDeploysForService ¶
func (s *Service) GetDeploysForService(serviceName string) ([]DynamoDeployment, error)
func (*Service) GetLastDeploy ¶
func (s *Service) GetLastDeploy() (*DynamoDeployment, error)
func (*Service) GetScalingActivity ¶
func (*Service) GetServiceVersionsByTags ¶
func (*Service) GetServices ¶
func (s *Service) GetServices(ds *DynamoServices) error
func (*Service) NewDeployment ¶
func (s *Service) NewDeployment(taskDefinitionArn *string, d *Deploy) (*DynamoDeployment, error)
func (*Service) PutClusterInfo ¶
func (s *Service) PutClusterInfo(dc DynamoCluster, clusterName string, action string) (*DynamoCluster, error)
func (*Service) SetApiVersion ¶
func (*Service) SetDeploymentStatus ¶
func (s *Service) SetDeploymentStatus(dd *DynamoDeployment, status string) error
func (*Service) SetDeploymentStatusWithReason ¶
func (s *Service) SetDeploymentStatusWithReason(dd *DynamoDeployment, status, reason string) error
func (*Service) SetManualTasksArn ¶
func (*Service) SetScalingProperty ¶
Click to show internal directories.
Click to hide internal directories.