Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployWaiter ¶
DeployWaiter controls and waits for life-cycle operations of a component.
func OpDestroy ¶
func OpDestroy(dw ...DeployWaiter) DeployWaiter
OpDestroy creates a DeployWaiter which calls Destroy instead of create and WaitCleanup instead of Wait
type Deployer ¶
type Deployer interface { // Deploy a component. Deploy(ctx context.Context) error // Destroy already deployed component. Destroy(ctx context.Context) error }
Deployer is used to control the life-cycle of a component.
func OpDestroyAndWait ¶
func OpDestroyAndWait(dw ...DeployWaiter) Deployer
OpDestroyAndWait creates a Deployer which calls Destroy instead of create and waits for destruction.
func OpWaiter ¶
func OpWaiter(dw ...DeployWaiter) Deployer
OpWaiter creates a Deployer which calls waits for each operation.
type Waiter ¶
type Waiter interface { // Wait for deployment to finish and component to report ready. Wait(ctx context.Context) error // WaitCleanup for destruction to finish and component to be fully removed. WaitCleanup(ctx context.Context) error }
Waiter waits for life-cycle operations of a component to finish.
Click to show internal directories.
Click to hide internal directories.