Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteWait ¶
ExecuteWait is the shared wait implementation used by both the top-level `asc wait` command and per-service `asc <service> wait` commands.
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).
Click to show internal directories.
Click to hide internal directories.