ecs

package module
v0.0.0-...-3f46a36 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcsCluster

type EcsCluster struct {
	ClusterArn  string       `json:ClusterArn`
	ClusterName string       `json:ClusterName`
	Status      string       `json:Status`
	Services    []EcsService `json:Services`
}

EcsCluster struct for holding information on an ECS cluster.

type EcsInt

type EcsInt struct {
	Client ecsiface.ECSAPI
}

ecsInt is the ecs interface struct that holds the ECSAPI, used for mocking.

var EcsClient *EcsInt

EcsClient holds the reference to the ECS interface we are using in the package.

func (EcsInt) DescribeEcsClusters

func (e EcsInt) DescribeEcsClusters(cluster string) []EcsCluster

DescribeEcsClusters will take an input of a string and return a list of clusters. Returns: []EcsCluster .

func (EcsInt) DescribeServices

func (e EcsInt) DescribeServices(cluid string, services []string) []EcsService

DescribeServices will return a list of services based on a cluster. Returns: []EcsService

func (EcsInt) ListAllClusterArns

func (e EcsInt) ListAllClusterArns() []*string

ListAllClusterArns will return a list of all ClusterArns in the region Returns: cluster []*string

func (EcsInt) ListAllServicesArns

func (e EcsInt) ListAllServicesArns(cluid string) []*string

ListAllServicesArns will return a list of all services in the cluster. Returns: services []*string

type EcsService

type EcsService struct {
	ServiceName  string `json:ServiceName`
	LaunchType   string `json:LaunchType`
	RunningCount int64  `json:RunningCount`
	DesiredCount int64  `json:DesiredCount`
	PendingCount int64  `json:PendingCount`
}

Jump to

Keyboard shortcuts

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