ecs

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
	ECS() *ecs.Client
}

type Cluster

type Cluster struct {
	service.AbstractResource
	types.Cluster
}

func NewCluster

func NewCluster(client AwsClient, cluster types.Cluster) Cluster

func (Cluster) GetName

func (e Cluster) GetName() string

func (Cluster) GetTagValue

func (e Cluster) GetTagValue(tag string) string

func (Cluster) GetTags

func (e Cluster) GetTags() map[string]string

type ClusterList

type ClusterList struct {
	Items []Cluster
}

type EcsRepository

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

func NewEcsRepository

func NewEcsRepository(ctx context.Context, client AwsClient) *EcsRepository

func (*EcsRepository) DescribeServicesByInput

func (r *EcsRepository) DescribeServicesByInput(query *ecs.DescribeServicesInput) ([]Service, error)

func (*EcsRepository) GetRegion

func (r *EcsRepository) GetRegion() ptypes.AwsRegion

func (*EcsRepository) ListClustersAll

func (r *EcsRepository) ListClustersAll() ([]Cluster, error)

func (*EcsRepository) ListClustersByInput

func (r *EcsRepository) ListClustersByInput(query *ecs.ListClustersInput) ([]Cluster, error)

func (*EcsRepository) ListServicesAll

func (r *EcsRepository) ListServicesAll() ([]Service, error)

func (*EcsRepository) ListServicesByCluster

func (r *EcsRepository) ListServicesByCluster(cluster Cluster) ([]Service, error)

func (*EcsRepository) ListServicesByInput

func (r *EcsRepository) ListServicesByInput(query *ecs.ListServicesInput) ([]Service, error)

type Service

type Service struct {
	service.AbstractResource
	types.Service
}

func NewService

func NewService(client AwsClient, svc types.Service) Service

func (Service) GetName

func (e Service) GetName() string

func (Service) GetTagValue

func (e Service) GetTagValue(tag string) string

func (Service) GetTags

func (e Service) GetTags() map[string]string

type ServiceList

type ServiceList struct {
	Items []Service
}

Jump to

Keyboard shortcuts

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