types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerInstanceStatusActive   = ecs.ContainerInstanceStatusActive
	ContainerInstanceStatusInactive = "INACTIVE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ECSCluster

type ECSCluster struct {
	ID   string // Cluster ARN
	Name string // Name of the service
}

ECSCluster reprensens a cluster on ECS

type ECSContainerInstance added in v1.1.0

type ECSContainerInstance struct {
	ID            string // Container instance ARN
	InstanceID    string // EC2 instance ID
	InstanceAMIID string
	AgentConn     bool // The state of container instnace agent
	Active        bool // The state of the container instance
	Status        string
	PendingT      int64 // The number of tasks in the container instance with pending state
}

ECSContainerInstance represents a cluster container instance

type ECSService

type ECSService struct {
	ID                           string // Service ARN
	Name                         string // Name of the service
	DesiredT, PendingT, RunningT int64  // Service task information
	Deployments                  []*ECSServiceDeployment
}

ECSService represents a service on an ECS cluster

type ECSServiceDeployment added in v1.3.0

type ECSServiceDeployment struct {
	ID           string
	RolloutState string
	DesiredCount int64
	PendingCount int64
	RunningCount int64
	FailedTasks  int64
}

func (ECSServiceDeployment) IsRolloutStateCompleted added in v1.3.0

func (d ECSServiceDeployment) IsRolloutStateCompleted() int

func (ECSServiceDeployment) IsRolloutStateFailed added in v1.3.0

func (d ECSServiceDeployment) IsRolloutStateFailed() int

func (ECSServiceDeployment) IsRolloutStateInProgress added in v1.3.0

func (d ECSServiceDeployment) IsRolloutStateInProgress() int

Jump to

Keyboard shortcuts

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