Documentation
¶
Index ¶
- type APIConfig
- type ApplyDeployRequest
- type ApplyDeployResponse
- type Certificate
- type Container
- type ContainerOverride
- type CreateDeployRequest
- type CreateEnvironmentLinkRequest
- type CreateEnvironmentRequest
- type CreateLoadBalancerRequest
- type CreateServiceRequest
- type CreateTaskRequest
- type Deploy
- type DeploySummary
- type Deployment
- type Dockerrun
- type EntitiesWithTags
- type EntityWithTags
- type Environment
- type EnvironmentSummary
- type HealthCheck
- type Job
- type LoadBalancer
- type LoadBalancerSummary
- type LogFile
- type Port
- type ResourceConsumer
- type ResourceProvider
- type SQLVersion
- type ScaleServiceRequest
- type ScalerRunInfo
- type ServerError
- type Service
- type ServiceSummary
- type Tag
- type Tags
- func (t Tags) Any(f filter) bool
- func (t Tags) First() (Tag, bool)
- func (t Tags) GroupByEntity() EntitiesWithTags
- func (t Tags) RemoveIf(f filter) Tags
- func (t Tags) WithID(entityID string) Tags
- func (t Tags) WithKey(key string) Tags
- func (t Tags) WithType(entityType string) Tags
- func (t Tags) WithValue(value string) Tags
- type Task
- type TaskCopy
- type TaskDetail
- type TaskSummary
- type UpdateEnvironmentRequest
- type UpdateLoadBalancerCrossZoneRequest
- type UpdateLoadBalancerHealthCheckRequest
- type UpdateLoadBalancerIdleTimeoutRequest
- type UpdateLoadBalancerPortsRequest
- type UpdateServiceRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyDeployRequest ¶
type ApplyDeployResponse ¶
type Certificate ¶
type Container ¶
type Container struct {
ID string `json:"id"`
Command string `json:"command"`
Created int64 `json:"created"`
Image string `json:"image"`
ImageID string `json:"image_id"`
Labels map[string]string `json:"labels"`
Names []string `json:"names"`
Ports []Port `json:"ports"`
SizeRootFS int64 `json:"size_root_fs"`
SizeRW int64 `json:"size_rw"`
State string `json:"state"`
Status string `json:"status"`
}
type ContainerOverride ¶
type CreateDeployRequest ¶
type CreateEnvironmentLinkRequest ¶
type CreateEnvironmentLinkRequest struct {
EnvironmentID string `json:"environment_id"`
}
type CreateEnvironmentRequest ¶
type CreateEnvironmentRequest struct {
EnvironmentName string `json:"environment_name"`
InstanceSize string `json:"instance_size"`
UserDataTemplate []byte `json:"user_data_template"`
MinClusterCount int `json:"min_cluster_count"`
OperatingSystem string `json:"operating_system"`
AMIID string `json:"ami_id"`
}
type CreateLoadBalancerRequest ¶
type CreateLoadBalancerRequest struct {
LoadBalancerName string `json:"load_balancer_name"`
EnvironmentID string `json:"environment_id"`
IsPublic bool `json:"is_public"`
Ports []Port `json:"ports"`
HealthCheck HealthCheck `json:"health_check"`
IdleTimeout int `json:"idle_timeout"`
CrossZone bool `json:"cross_zone"`
}
type CreateServiceRequest ¶
type CreateTaskRequest ¶
type CreateTaskRequest struct {
ContainerOverrides []ContainerOverride `json:"container_overrides"`
DeployID string `json:"deploy_id"`
EnvironmentID string `json:"environment_id"`
TaskName string `json:"task_name"`
}
type DeploySummary ¶
type Deployment ¶
type Deployment struct {
Created time.Time `json:"created"`
DeployID string `json:"deploy_id"`
DeployName string `json:"deploy_name"`
DeployVersion string `json:"deploy_version"`
DesiredCount int64 `json:"desired_count"`
PendingCount int64 `json:"pending_count"`
RunningCount int64 `json:"running_count"`
Status string `json:"status"`
Updated time.Time `json:"updated"`
DeploymentID string `json:"deployment_id"`
}
type Dockerrun ¶ added in v0.10.3
type Dockerrun struct {
ContainerDefinitions []*ecs.ContainerDefinition `json:"containerDefinitions,omitempty"`
Volumes []*ecs.Volume `json:"volumes,omitempty"`
Family string `json:"family,omitempty"`
NetworkMode string `json:"networkMode,omitempty"`
TaskRoleARN string `json:"taskRoleArn,omitempty"`
PlacementConstraints []*ecs.PlacementConstraint `json:"placementConstraints,omitempty"`
}
type EntitiesWithTags ¶
type EntitiesWithTags []*EntityWithTags
func (EntitiesWithTags) RemoveIf ¶
func (e EntitiesWithTags) RemoveIf(f ewtFilter) EntitiesWithTags
func (EntitiesWithTags) WithKey ¶
func (e EntitiesWithTags) WithKey(key string) EntitiesWithTags
removes each EntityWithTags object from e if e.Tags does not contain at least one tag with the specified key
func (EntitiesWithTags) WithValue ¶
func (e EntitiesWithTags) WithValue(value string) EntitiesWithTags
removes each EntityWithTags object from e if e.Tags does not contain at least one tag with the specified value
type EntityWithTags ¶
type Environment ¶
type Environment struct {
EnvironmentID string `json:"environment_id"`
EnvironmentName string `json:"environment_name"`
ClusterCount int `json:"cluster_count"`
InstanceSize string `json:"instance_size"`
SecurityGroupID string `json:"security_group_id"`
OperatingSystem string `json:"operating_system"`
AMIID string `json:"ami_id"`
Links []string `json:"links"`
}
type EnvironmentSummary ¶
type HealthCheck ¶
type Job ¶
type Job struct {
JobID string `json:"job_id"`
TaskID string `json:"task_id"`
JobStatus int64 `json:"job_status"`
JobType int64 `json:"job_type"`
Request string `json:"request"`
TimeCreated time.Time `json:"time_created"`
TimeToExist int64 `json:"time_to_exist"`
Meta map[string]string `json:"meta"`
}
type LoadBalancer ¶
type LoadBalancer struct {
CrossZone bool `json:"cross_zone"`
EnvironmentID string `json:"environment_id"`
EnvironmentName string `json:"environment_name"`
HealthCheck HealthCheck `json:"health_check"`
IdleTimeout int `json:"idle_timeout"`
IsPublic bool `json:"is_public"`
LoadBalancerID string `json:"load_balancer_id"`
LoadBalancerName string `json:"load_balancer_name"`
Ports []Port `json:"ports"`
ServiceID string `json:"service_id"`
ServiceName string `json:"service_name"`
URL string `json:"url"`
}
type LoadBalancerSummary ¶
type ResourceConsumer ¶
type ResourceProvider ¶
type SQLVersion ¶
type ScaleServiceRequest ¶
type ScaleServiceRequest struct {
DesiredCount int64 `json:"desired_count"`
}
type ScalerRunInfo ¶
type ScalerRunInfo struct {
EnvironmentID string `json:"environment_id"`
ScaleBeforeRun int `json:"scale_before_run"`
DesiredScaleAfterRun int `json:"desired_scale_after_run"`
ActualScaleAfterRun int `json:"actual_scale_after_run"`
UnusedResourceProviders int `json:"unused_resource_providers"`
PendingResources []ResourceConsumer `json:"pending_resources"`
ResourceProviders []ResourceProvider `json:"resource_providers"`
}
type ServerError ¶
type Service ¶
type Service struct {
Deployments []Deployment `json:"deployments"`
DesiredCount int64 `json:"desired_count"`
EnvironmentID string `json:"environment_id"`
EnvironmentName string `json:"environment_name"`
LoadBalancerID string `json:"load_balancer_id"`
LoadBalancerName string `json:"load_balancer_name"`
PendingCount int64 `json:"pending_count"`
RunningCount int64 `json:"running_count"`
ServiceID string `json:"service_id"`
ServiceName string `json:"service_name"`
}
type ServiceSummary ¶
type Tags ¶
type Tags []Tag
func (Tags) GroupByEntity ¶
func (t Tags) GroupByEntity() EntitiesWithTags
type Task ¶
type Task struct {
Copies []TaskCopy `json:"copies"`
DeployID string `json:"deploy_id"`
DeployName string `json:"deploy_name"`
DeployVersion string `json:"deploy_version"`
EnvironmentID string `json:"environment_id"`
EnvironmentName string `json:"environment_name"`
PendingCount int64 `json:"pending_count"`
RunningCount int64 `json:"running_count"`
TaskID string `json:"task_id"`
TaskName string `json:"task_name"`
}
type TaskCopy ¶
type TaskCopy struct {
Details []TaskDetail `json:"details"`
Reason string `json:"reason"`
TaskCopyID string `json:"task_copy_id"`
}
type TaskDetail ¶
type TaskSummary ¶
type UpdateEnvironmentRequest ¶
type UpdateEnvironmentRequest struct {
MinClusterCount int `json:"min_cluster_count"`
}
type UpdateLoadBalancerCrossZoneRequest ¶ added in v0.11.0
type UpdateLoadBalancerCrossZoneRequest struct {
CrossZone bool `json:"cross_zone"`
}
type UpdateLoadBalancerHealthCheckRequest ¶
type UpdateLoadBalancerHealthCheckRequest struct {
HealthCheck HealthCheck `json:"health_check"`
}
type UpdateLoadBalancerIdleTimeoutRequest ¶ added in v0.10.7
type UpdateLoadBalancerIdleTimeoutRequest struct {
IdleTimeout int `json:"health_check"`
}
type UpdateLoadBalancerPortsRequest ¶
type UpdateLoadBalancerPortsRequest struct {
Ports []Port `json:"ports"`
}
type UpdateServiceRequest ¶
type UpdateServiceRequest struct {
DeployID string `json:"deploy_id"`
}
Source Files
¶
- Dockerrun.go
- api_config.go
- apply_deploy_request.go
- apply_deploy_response.go
- certificate.go
- container.go
- container_override.go
- create_deploy_request.go
- create_environment_link_request.go
- create_environment_request.go
- create_load_balancer_request.go
- create_service_request.go
- create_task_request.go
- deploy.go
- deploy_summary.go
- deployment.go
- entities_with_tags.go
- entity_with_tags.go
- environment.go
- environment_summary.go
- health_check.go
- job.go
- load_balancer.go
- load_balancer_summary.go
- log_file.go
- port.go
- resource_consumer.go
- resource_provider.go
- scale_service_request.go
- scaler_run_info.go
- server_error.go
- service.go
- service_summary.go
- sql_version.go
- tag.go
- tags.go
- task.go
- task_copy.go
- task_detail.go
- task_summary.go
- update_environment_request.go
- update_load_balancer_cross_zone_request.go
- update_load_balancer_health_check_request.go
- update_load_balancer_idle_timeout_request.go
- update_load_balancer_ports_request.go
- update_service_request.go
Click to show internal directories.
Click to hide internal directories.