async

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 11 Imported by: ? modules, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller interface {
	HandleCreateAsyncOperationResponse(ctx context.Context, response RespWithAsyncOp, err error) error
	HandleUpdateOperation(ctx context.Context, response RespWithAsyncOp, err error) error
	HandleDeleteOperation(ctx context.Context, response RespWithAsyncOp, err error) error
	// HandleIdempotentOperation surfaces an operation the server already treats as
	// idempotent: there is no "already in the desired state" rejection to translate,
	// and the --idempotent flag has no effect.
	HandleIdempotentOperation(ctx context.Context, response RespWithAsyncOp, err error) error
	// AwaitAsyncOperation blocks until the operation with the given ID reaches a terminal state,
	// then prints the final operation details. Use this when you already have an operation ID
	// and just need to wait for it to complete.
	AwaitAsyncOperation(ctx context.Context, asyncOpID string) error
}

func NewPoller

func NewPoller(
	cloudService cloudservice.CloudServiceClient,
	printer *printer.Printer,
	idempotent bool,
	async bool,
	pollInterval time.Duration,
) Poller

type RespWithAsyncOp

type RespWithAsyncOp interface {
	GetAsyncOperation() *operation.AsyncOperation
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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