ecs

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p client.ConfigProvider, opts ...*aws.Config) api.Endpoint

New implements api.ServiceFunc

Types

type API

type API interface {
	ListClustersPagesWithContext(context.Context, *ecs.ListClustersInput, func(*ecs.ListClustersOutput, bool) bool, ...request.Option) error
	ListContainerInstancesPagesWithContext(context.Context, *ecs.ListContainerInstancesInput, func(*ecs.ListContainerInstancesOutput, bool) bool, ...request.Option) error
	ListServicesPagesWithContext(context.Context, *ecs.ListServicesInput, func(*ecs.ListServicesOutput, bool) bool, ...request.Option) error
	ListTasksPagesWithContext(context.Context, *ecs.ListTasksInput, func(*ecs.ListTasksOutput, bool) bool, ...request.Option) error
	DescribeClustersWithContext(context.Context, *ecs.DescribeClustersInput, ...request.Option) (*ecs.DescribeClustersOutput, error)
	DescribeContainerInstancesWithContext(context.Context, *ecs.DescribeContainerInstancesInput, ...request.Option) (*ecs.DescribeContainerInstancesOutput, error)
	DescribeServicesWithContext(context.Context, *ecs.DescribeServicesInput, ...request.Option) (*ecs.DescribeServicesOutput, error)
	DescribeTasksWithContext(context.Context, *ecs.DescribeTasksInput, ...request.Option) (*ecs.DescribeTasksOutput, error)
}

API documents the subset of AWS API we actually call

type DescribeClusters

type DescribeClusters struct {
	API
}

func (*DescribeClusters) New

func (fn *DescribeClusters) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type DescribeClustersOutput

type DescribeClustersOutput struct {
	*ecs.DescribeClustersOutput
}

func (*DescribeClustersOutput) Records

func (o *DescribeClustersOutput) Records() (records []*api.Record)

type DescribeContainerInstances

type DescribeContainerInstances struct {
	API
}

func (*DescribeContainerInstances) New

func (fn *DescribeContainerInstances) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type DescribeContainerInstancesOutput

type DescribeContainerInstancesOutput struct {
	*ecs.DescribeContainerInstancesOutput
}

func (*DescribeContainerInstancesOutput) Records

func (o *DescribeContainerInstancesOutput) Records() (records []*api.Record)

type DescribeServices

type DescribeServices struct {
	API
}

func (*DescribeServices) New

func (fn *DescribeServices) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type DescribeServicesOutput

type DescribeServicesOutput struct {
	*ecs.DescribeServicesOutput
}

func (*DescribeServicesOutput) Records

func (o *DescribeServicesOutput) Records() (records []*api.Record)

type DescribeTasks

type DescribeTasks struct {
	API
}

func (*DescribeTasks) New

func (fn *DescribeTasks) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type DescribeTasksOutput

type DescribeTasksOutput struct {
	*ecs.DescribeTasksOutput
}

func (*DescribeTasksOutput) Records

func (o *DescribeTasksOutput) Records() (records []*api.Record)

Jump to

Keyboard shortcuts

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