ecs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cluster, service, file, profile string)

Types

type AWSClient

type AWSClient struct {
	// contains filtered or unexported fields
}

AWSClient encapsulates serveral helper method to retrive data from AWS cloud

func NewAWSClient

func NewAWSClient(profile string) (*AWSClient, error)

NewAWSClient returns a new AWSClient

func (*AWSClient) GetECSClusters

func (a *AWSClient) GetECSClusters() ([]string, error)

GetECSClusters returns a list of ecs clusters in a region

func (*AWSClient) GetECSServices

func (a *AWSClient) GetECSServices(cluster string) ([]string, error)

GetECSServices returns a list of ecs services for a cluster in a region

func (*AWSClient) GetECSTaskDef

func (a *AWSClient) GetECSTaskDef(cluster, service string) (string, error)

GetECSTaskDef returns the current task definition for a given cluster and service

func (*AWSClient) GetENVsFromECSTaskDef

func (a *AWSClient) GetENVsFromECSTaskDef(taskDef string) (map[string]string, error)

GetENVsFromECSTaskDef returns enviroment variable in a task definition

Jump to

Keyboard shortcuts

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