config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSWaitDefaultMaxAttempts    = 100
	AWSWaitDefaultTimeoutSeconds = 6
)
View Source
const (
	AWSWaitTaskHealthDefaultRetries       = 3
	AWSWaitTaskHealthDefaultCheckInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fargate

type Fargate struct {
	Cluster         string
	EnablePublicIP  bool
	UsePublicIP     bool
	PlatformVersion string
	Region          string
	Subnet          string
	SecurityGroup   string
	TaskDefinition  string
	// PropagateTags indicates whether to propagate the tags from the task definition to the running task
	PropagateTags bool
	// EvaluateTaskHealth indicates whether to wait for the task to be healthy before attempting to run commands
	EvaluateTaskHealth   bool
	TaskWaitConfig       TaskWaitConfig
	TaskHealthWaitConfig TaskHealthWaitConfig
	// EnableExecuteCommand indidcates whether ECS Exec is enabled
	EnableExecuteCommand bool
}

func (*Fargate) SecurityGroups added in v0.3.0

func (f *Fargate) SecurityGroups() []*string

func (*Fargate) Subnets added in v0.3.0

func (f *Fargate) Subnets() []*string

type Global

type Global struct {
	LogLevel  string
	LogFile   string
	LogFormat string

	STSConfiguration STSConfiguration
	Fargate          Fargate
	TaskMetadata     TaskMetadata
	SSH              SSH
}

func LoadFromFile

func LoadFromFile(file string) (Global, error)

func (*Global) AssertRequiredConfig added in v0.3.0

func (g *Global) AssertRequiredConfig(logger logging.Logger) error

type SSH

type SSH struct {
	Username string
	Port     int
}

type STSConfiguration added in v0.4.0

type STSConfiguration struct {
	RoleARN     string
	SessionVars string
}

type TaskHealthWaitConfig added in v0.4.0

type TaskHealthWaitConfig struct {
	Retries       int
	CheckInterval time.Duration
}

type TaskMetadata

type TaskMetadata struct {
	Directory string
}

type TaskWaitConfig added in v0.3.0

type TaskWaitConfig struct {
	MaxAttempts int
	WaitTimeout int
}

Jump to

Keyboard shortcuts

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