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 ¶
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 ¶
ListAllClusterArns will return a list of all ClusterArns in the region Returns: cluster []*string
func (EcsInt) ListAllServicesArns ¶
ListAllServicesArns will return a list of all services in the cluster. Returns: services []*string
Click to show internal directories.
Click to hide internal directories.