aws

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeClusterServices

func DescribeClusterServices(c *ecs.Cluster) ([]*ecs.Service, error)

Return a slice of the services in the given ECS cluster

func DescribeClusterTasks

func DescribeClusterTasks(c *ecs.Cluster) ([]*ecs.Task, error)

Return a slice of the tasks in the given ECS cluster

func DescribeClusters

func DescribeClusters() ([]*ecs.Cluster, error)

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

func GetLatestECSAgentVersion() (*string, error)

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

func ShortenTaskDefArn(taskDefinitionArn *string) string

Return a short version of the task definition arn

Types

type EcsCluster

type EcsCluster struct {
	*ecs.Cluster
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL