domain

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeEcsService        = "ecs-service"
	ResourceTypeAutoScalingGroup  = "auto-scaling-group"
	ResourceTypeElbv2LoadBalancer = "elbv2-load-balancer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSTag

type AWSTag struct {
	Name  string `json:"Name"`
	Value string `json:"Value"`
}

AWS Tag

type ActivityFailedError

type ActivityFailedError struct {
	Wrap      error
	Temporary bool
}

An error type to signal the activity has failed and whether or not it can be retried

func (ActivityFailedError) Error

func (e ActivityFailedError) Error() string

func (ActivityFailedError) IsTemporary

func (e ActivityFailedError) IsTemporary() bool

type ConsistentStateResource

type ConsistentStateResource interface {
	Check() (bool, error)
	Save(state.StateManager) error
	Fail([]string) error
	Restore() error
}

A representation of an AWS resource state that can be validated and stored with StateManager

type FaultConfiguration

type FaultConfiguration struct {
	Azs     []string         `json:"azs"`
	Targets []TargetSelector `json:"targets"`
}

AZ Failure Configuration

type InterruptExecutionError

type InterruptExecutionError struct {
	Wrap error
}

An error type to signal the current activity has failed and that the program execution should be interrupted as soon as possible

func (InterruptExecutionError) Error

func (e InterruptExecutionError) Error() string

type TargetSelector

type TargetSelector struct {
	Type   string   `json:"type"`
	Filter string   `json:"filter"`
	Tags   []AWSTag `json:"tags"`
}

A struct to represent the selection of AWS resource targets

func (TargetSelector) Validate

func (t TargetSelector) Validate() error

Validates all required fields for target selector have been provided

Jump to

Keyboard shortcuts

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