ecs

package
v0.0.0-...-78ba6d8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcsServiceFaultFromConfig

func NewEcsServiceFaultFromConfig(selector domain.TargetSelector, provider awsapis.AWSProvider) ([]domain.ConsistentStateResource, error)

func RestoreEcsServicesFromState

func RestoreEcsServicesFromState(stateData []byte, provider awsapis.AWSProvider) error

Types

type ECSService

type ECSService struct {
	Provider    awsapis.AWSProvider
	ClusterArn  string
	ServiceName string
	// contains filtered or unexported fields
}

A struct to represent an ECS service resource

func (*ECSService) Check

func (svc *ECSService) Check() (bool, error)

func (*ECSService) Fail

func (svc *ECSService) Fail(azs []string) error

func (*ECSService) Restore

func (svc *ECSService) Restore() error

func (*ECSService) Save

func (svc *ECSService) Save(stateManager state.StateManager) error

type ECSServiceState

type ECSServiceState struct {
	ServiceName string   `json:"service"`
	ClusterArn  string   `json:"cluster"`
	Subnets     []string `json:"subnets"`
}

A struct to represent the current state of an ECS service before AZ failure is applied

Jump to

Keyboard shortcuts

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