waitfor

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForDelete

func WaitForDelete(c *core2.CommandConfig, interrogator InterrogateDeletionFunc, resourceId string) error

func WaitForRequest

func WaitForRequest(c *core2.CommandConfig, interrogator InterrogateRequestFunc, requestId string) error

WaitForRequest waits for Request to be executed

func WaitForState

func WaitForState(c *core2.CommandConfig, interrogator InterrogateStateFunc, resourceId string) error

func WatchDeletionProgress

func WatchDeletionProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateDeletionFunc, resourceId string) (<-chan int, <-chan error)

WatchDeletionProgress watches the deletion progress of a Resource until it completes with success: returning 404 http response status code.

func WatchRequestProgress

func WatchRequestProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateRequestFunc, requestId string) (<-chan int, <-chan error)

WatchRequestProgress watches the status progress of a Request until it completes with success: meaning DONE or error.

func WatchStateProgress

func WatchStateProgress(ctx context.Context, c *core.CommandConfig, interrogator InterrogateStateFunc, resourceId string) (<-chan int, <-chan error)

WatchStateProgress watches the state progress of a Resource until it completes with success: meaning ACTIVE or AVAILABLE or error.

Types

type InterrogateDeletionFunc

type InterrogateDeletionFunc func(c *core2.CommandConfig, resourceId string) (*int, error)

type InterrogateRequestFunc

type InterrogateRequestFunc func(c *core2.CommandConfig, requestId string) (status *string, message *string, err error)

type InterrogateStateFunc

type InterrogateStateFunc func(c *core2.CommandConfig, resourceId string) (*string, error)

Jump to

Keyboard shortcuts

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