congo

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsEC2Connect

func AwsEC2Connect(creds *AwsCredentials, id string) error

func AwsECSConnect

func AwsECSConnect(creds *AwsCredentials, task_id string, cluster_id string, container string) error

func AwsListInstances

func AwsListInstances(creds *AwsCredentials) (*[]Ec2Data, error)

func GetClusters

func GetClusters(ecsClient *ecs.Client) ([]string, error)

func GetContainers

func GetContainers(task EcsTaskData) ([]string, error)

func GetServices

func GetServices(ecsClient *ecs.Client, clusterName string) ([]string, error)

func NewECSClient

func NewECSClient(creds *AwsCredentials) *ecs.Client

Types

type AwsCredentials

type AwsCredentials struct {
	Config  aws.Config
	Ctx     context.Context
	Account string
	Sts_arn string
	Region  string
}

func NewAwsCredentials

func NewAwsCredentials() *AwsCredentials

func (*AwsCredentials) GetLoginInfo

func (cred *AwsCredentials) GetLoginInfo() error

func (*AwsCredentials) LoginWithEnvProfile

func (cred *AwsCredentials) LoginWithEnvProfile() error

type Ec2Data

type Ec2Data struct {
	Name      string
	Id        string
	PrivateIp string
	Vpc       string
	Type      string
	Platform  string
}

type EcsTaskData

type EcsTaskData struct {
	Id         string
	StartedAt  string
	Containers []string
}

func GetTasks

func GetTasks(ecsClient *ecs.Client, clusterName string, serviceName string) ([]EcsTaskData, error)

Jump to

Keyboard shortcuts

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