wait

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWait

func ExecuteWait(ctx context.Context, profile, region string, uri *awsutil.ResourceURI) error

ExecuteWait is the shared wait implementation used by both the top-level `asc wait` command and per-service `asc <service> wait` commands.

func NewWaitCmd

func NewWaitCmd() *cobra.Command

NewWaitCmd creates the top-level wait command.

func RegisterHandler

func RegisterHandler(key string, handler WaitHandler)

RegisterHandler registers a wait handler for a service/resourceType combination. key format: "service/resourceType" (e.g. "ec2/instance", "rds/cluster").

Types

type WaitHandler

type WaitHandler func(ctx context.Context, profile, region string, uri *awsutil.ResourceURI) (
	statusFunc func(ctx context.Context) (string, error),
	isTerminal func(status string) bool,
	err error,
)

WaitHandler returns a status function and terminal check for a given resource. The status function polls the resource's current state. The terminal function returns true when the state is stable (no longer processing).

Jump to

Keyboard shortcuts

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