extecs

package
v2.4.38 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 31 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const LogType = "ECS_SERVICE_EVENTS"

Variables

This section is empty.

Functions

func GetAllEcsServices

func GetAllEcsServices(account *utils.AwsAccess, ecsServiceApi ecsServiceDiscoveryApi, ctx context.Context) ([]discovery_kit_api.Target, error)

func GetAllEcsTasks

func GetAllEcsTasks(ctx context.Context, ecsApi EcsTasksApi, ec2Util taskDiscoveryEc2Util, account *utils.AwsAccess) ([]discovery_kit_api.Target, error)

func NewEcsServiceScaleAction

func NewEcsServiceScaleAction() action_kit_sdk.Action[ServiceScaleState]

func NewEcsTaskFillDiskAction

func NewEcsTaskFillDiskAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskNetworkBlockholePortAction added in v2.4.5

func NewEcsTaskNetworkBlockholePortAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskNetworkDelayAction added in v2.4.5

func NewEcsTaskNetworkDelayAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskNetworkDnsAction added in v2.4.5

func NewEcsTaskNetworkDnsAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskNetworkLossAction added in v2.4.5

func NewEcsTaskNetworkLossAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskStopAction

func NewEcsTaskStopAction() action_kit_sdk.Action[TaskStopState]

func NewEcsTaskStopProcessAction added in v2.4.5

func NewEcsTaskStopProcessAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskStressCpuAction

func NewEcsTaskStressCpuAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskStressIoAction

func NewEcsTaskStressIoAction() action_kit_sdk.Action[TaskSsmActionState]

func NewEcsTaskStressMemoryAction

func NewEcsTaskStressMemoryAction() action_kit_sdk.Action[TaskSsmActionState]

Types

type EcsServiceDescriptionPoller

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

func NewServiceDescriptionPoller

func NewServiceDescriptionPoller() *EcsServiceDescriptionPoller

func (EcsServiceDescriptionPoller) AwaitLatest

func (p EcsServiceDescriptionPoller) AwaitLatest(account string, region string, role *string, cluster string, service string) *PollService

func (EcsServiceDescriptionPoller) Latest

func (p EcsServiceDescriptionPoller) Latest(account string, region string, role *string, cluster string, service string) *PollService

func (EcsServiceDescriptionPoller) Register

func (p EcsServiceDescriptionPoller) Register(account string, region string, role *string, cluster string, service string)

func (EcsServiceDescriptionPoller) Start

func (EcsServiceDescriptionPoller) Unregister

func (p EcsServiceDescriptionPoller) Unregister(account string, region string, role *string, cluster string, service string)

type EcsServiceEventLogAction

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

func (EcsServiceEventLogAction) Describe

func (EcsServiceEventLogAction) NewEmptyState

func (EcsServiceEventLogAction) Start

func (EcsServiceEventLogAction) Status

func (EcsServiceEventLogAction) Stop

type EcsServiceEventLogState

type EcsServiceEventLogState struct {
	LatestEventTimestamp time.Time
	ServiceArn           string
	ClusterArn           string
	AwsAccount           string
	Region               string
	DiscoveredByRole     *string
}

type EcsServiceTaskCountCheckAction

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

func (EcsServiceTaskCountCheckAction) Describe

func (EcsServiceTaskCountCheckAction) NewEmptyState

func (EcsServiceTaskCountCheckAction) Start

func (EcsServiceTaskCountCheckAction) Status

func (EcsServiceTaskCountCheckAction) Stop

type EcsServiceTaskCountCheckConfig

type EcsServiceTaskCountCheckConfig struct {
	Duration              int
	RunningCountCheckMode string
}

type EcsServiceTaskCountCheckState

type EcsServiceTaskCountCheckState struct {
	Timeout               time.Time
	RunningCountCheckMode string
	ServiceArn            string
	ClusterArn            string
	AwsAccount            string
	Region                string
	DiscoveredByRole      *string
	InitialRunningCount   int
}

type HeartbeatConfig added in v2.4.6

type HeartbeatConfig struct {
	Duration time.Duration
	Timeout  time.Duration
}

type PollService

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

type ServiceDescriptionPoller

type ServiceDescriptionPoller interface {
	Start(ctx context.Context)
	Register(account string, region string, role *string, cluster string, service string)
	Unregister(account string, region string, role *string, cluster string, service string)
	Latest(account string, region string, role *string, cluster string, service string) *PollService
	AwaitLatest(account string, region string, role *string, cluster string, service string) *PollService
}

type ServiceScaleState

type ServiceScaleState struct {
	Account             string
	Region              string
	DiscoveredByRole    *string
	ServiceName         string
	ClusterArn          string
	DesiredCount        int32
	InitialDesiredCount int32
}

type TaskSsmActionState

type TaskSsmActionState struct {
	ExecutionId       uuid.UUID
	Duration          time.Duration
	Account           string
	Region            string
	DiscoveredByRole  *string
	TaskArn           string
	ManagedInstanceId string
	CommandId         string
	Parameters        map[string][]string
	Comment           string
	CommandEnded      bool
}

type TaskStopState

type TaskStopState struct {
	Account          string
	Region           string
	DiscoveredByRole *string
	TaskArn          string
	ClusterArn       string
}

Jump to

Keyboard shortcuts

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