async

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 11 Imported by: 0

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
	// 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