Documentation ¶
Index ¶
- func DescribeClusterServices(c *ecs.Cluster) ([]*ecs.Service, error)
- func DescribeClusterTasks(c *ecs.Cluster) ([]*ecs.Task, error)
- func DescribeClusters() ([]*ecs.Cluster, error)
- func DescribeContainerInstances(c *ecs.Cluster) ([]*ecs.ContainerInstance, error)
- func GetLatestECSAgentVersion() (*string, error)
- func GetTaskDefinitions(tasks []*ecs.Task) ([]*ecs.TaskDefinition, error)
- func ShortenTaskDefArn(taskDefinitionArn *string) string
- type EcsCluster
- type EcsContainer
- type EcsContainerStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeClusterServices ¶
Return a slice of the services in the given ECS cluster
func DescribeClusterTasks ¶
Return a slice of the tasks in the given ECS cluster
func DescribeClusters ¶
Return a slice of the ECS clusters in the current AWS account
func DescribeContainerInstances ¶
func DescribeContainerInstances(c *ecs.Cluster) ([]*ecs.ContainerInstance, error)
Return a slice of the container instances in the given ECS cluster
func GetLatestECSAgentVersion ¶
Read the latest released ECS Agent from Github
func GetTaskDefinitions ¶
func GetTaskDefinitions(tasks []*ecs.Task) ([]*ecs.TaskDefinition, error)
Return a slice of the task definitions in the given ECS tasks
func ShortenTaskDefArn ¶
Return a short version of the task definition arn
Types ¶
type EcsCluster ¶
Adds helpful functions to an ecs.Cluster
func NewEcsCluster ¶
func NewEcsCluster(cluster *ecs.Cluster) *EcsCluster
func NewEcsClusters ¶
func NewEcsClusters(clusters []*ecs.Cluster) []*EcsCluster
func (*EcsCluster) GetClusterType ¶
func (c *EcsCluster) GetClusterType() string
type EcsContainer ¶
type EcsContainer struct {
*ecs.ContainerInstance
}
Adds helpful functions to an ecs.ContainerInstance
func NewEcsContainer ¶
func NewEcsContainer(instance *ecs.ContainerInstance) *EcsContainer
func NewEcsContainers ¶
func NewEcsContainers(containers []*ecs.ContainerInstance) []*EcsContainer
func (*EcsContainer) GetAttribute ¶
func (i *EcsContainer) GetAttribute(name string) *string
func (*EcsContainer) GetRegisteredResourceValue ¶
func (i *EcsContainer) GetRegisteredResourceValue(resourceName string) *int64
func (*EcsContainer) GetRemainingResourceValue ¶
func (i *EcsContainer) GetRemainingResourceValue(resourceName string) *int64
func (*EcsContainer) GetStats ¶
func (i *EcsContainer) GetStats() *EcsContainerStats
type EcsContainerStats ¶
type EcsContainerStats struct {
CpuUsed, CpuTotal, MemoryUsed, MemoryTotal int64
}
func (*EcsContainerStats) Add ¶
func (s *EcsContainerStats) Add(s1 *EcsContainerStats)
Click to show internal directories.
Click to hide internal directories.