aws

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeClusters

func DescribeClusters(client *ecs.Client, clusters []string) []ecs.Cluster

DescribeClusters describes ECS clusters to fetch detailed information

func DescribeServices

func DescribeServices(client *ecs.Client, clusterName string, services []string) []ecs.Service

DescribeServices describes a list of services running in the ECS cluster

func DetailedInstanceOutput

func DetailedInstanceOutput(containerInstance *ecs.ContainerInstance)

DetailedInstanceOutput prints a container instance's attributes and capabilities

func FindAttribute

func FindAttribute(attributes []ecs.Attribute, name string) ecs.Attribute

FindAttribute finds a specific attribute in a list of ecs.Attribute

func FindResource

func FindResource(resources []ecs.Resource, name string) ecs.Resource

FindResource finds a specific resource in a list of ecs.Resource

func FindService

func FindService(client *ecs.Client, cluster, service string) (ecs.Service, error)

FindService checks that a service is actually running in an ECS cluster

func FindTag

func FindTag(tags []ec2.Tag, name string) ec2.Tag

FindTag finds a specific tag in a list of EC2 tags

func ListClusters

func ListClusters(client *ecs.Client, filter string) []string

ListClusters returns the list of clusters sorted by name

func ListServices

func ListServices(client *ecs.Client, clusterName, serviceFilter, serviceType string) []ecs.Service

ListServices describes services running in the ECS cluster filtered by cluster name, service name ans service type

func ListTasks

func ListTasks(client *ecs.Client, clusterName, taskFilter string) []ecs.Task

ListTasks gives a short list of ECS tasks

func LoadAWSConfig

func LoadAWSConfig(region string) aws.Config

LoadAWSConfig loads the AWS SDK configuration

func PrintServiceDetails

func PrintServiceDetails(client *ecs.Client, service *ecs.Service, longOutput bool)

PrintServiceDetails describes an ECS service to fetch detailed information

func PrintTaskDetails

func PrintTaskDetails(client *ecs.Client, task *ecs.Task, longOutput bool)

PrintTaskDetails prints detailed information about an ECS task

func ServiceOk

func ServiceOk(service *ecs.Service) bool

ServiceOk checks that an ECS service is OK (running and steady) or not

func ServiceTaskDefinition

func ServiceTaskDefinition(client *ecs.Client, taskDefinition string) ecs.TaskDefinition

ServiceTaskDefinition returns a full task definition from its ARN

Types

type EventsByCreatedAt

type EventsByCreatedAt []ecs.ServiceEvent

EventsByCreatedAt is a list of ECS events sorted by date (created at)

func (EventsByCreatedAt) Len

func (c EventsByCreatedAt) Len() int

func (EventsByCreatedAt) Less

func (c EventsByCreatedAt) Less(i, j int) bool

func (EventsByCreatedAt) Swap

func (c EventsByCreatedAt) Swap(i, j int)

Jump to

Keyboard shortcuts

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