ecs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(session *session.Session, db *gorm.DB, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

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

func (*Client) Clusters

func (c *Client) Clusters(gConfig interface{}) error

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

type Cluster

type Cluster struct {
	ID                                uint `gorm:"primarykey"`
	AccountID                         string
	Region                            string
	ActiveServicesCount               *int64
	AttachmentsStatus                 *string
	CapacityProviders                 *string
	ClusterArn                        *string
	ClusterName                       *string
	DefaultCapacityProviderStrategy   []*ClusterCapacityProviderStrategyItem `gorm:"constraint:OnDelete:CASCADE;"`
	PendingTasksCount                 *int64
	RegisteredContainerInstancesCount *int64
	RunningTasksCount                 *int64
	Settings                          []*ClusterSetting      `gorm:"constraint:OnDelete:CASCADE;"`
	Statistics                        []*ClusterKeyValuePair `gorm:"constraint:OnDelete:CASCADE;"`
	Status                            *string
	Tags                              []*ClusterTag `gorm:"constraint:OnDelete:CASCADE;"`
}

type ClusterCapacityProviderStrategyItem

type ClusterCapacityProviderStrategyItem struct {
	ID               uint `gorm:"primarykey"`
	ClusterID        uint
	Base             *int64
	CapacityProvider *string
	Weight           *int64
}

type ClusterKeyValuePair

type ClusterKeyValuePair struct {
	ID        uint `gorm:"primarykey"`
	ClusterID uint
	Name      *string
	Value     *string
}

type ClusterSetting

type ClusterSetting struct {
	ID        uint `gorm:"primarykey"`
	ClusterID uint
	Name      *string
	Value     *string
}

type ClusterTag

type ClusterTag struct {
	ID        uint `gorm:"primarykey"`
	ClusterID uint
	Key       *string
	Value     *string
}

Jump to

Keyboard shortcuts

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