wait

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourcePoolStatePending  = "pending"
	ResourcePoolStateCreating = "creating"
	ResourcePoolStateCreated  = "created"
	ResourcePoolStateUpdating = "updating"
	ResourcePoolStateError    = "error"
	ResourcePoolStateDeleting = "deleting"
)
View Source
const (
	ShareStatePending  = "pending"
	ShareStateCreating = "creating"
	ShareStateCreated  = "created"
	ShareStateError    = "error"
	ShareStateDeleting = "deleting"
)

Variables

This section is empty.

Functions

func CreateResourcePoolWaitHandler

func CreateResourcePoolWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId string) *wait.AsyncActionHandler[sfs.GetResourcePoolResponse]

func CreateShareWaitHandler

func CreateShareWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId, shareId string) *wait.AsyncActionHandler[sfs.GetShareResponse]

func DeleteResourcePoolWaitHandler

func DeleteResourcePoolWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId string) *wait.AsyncActionHandler[sfs.GetResourcePoolResponse]

func DeleteShareWaitHandler

func DeleteShareWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId, shareId string) *wait.AsyncActionHandler[sfs.GetShareResponse]

func UpdateResourcePoolWaitHandler

func UpdateResourcePoolWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId string) *wait.AsyncActionHandler[sfs.GetResourcePoolResponse]

func UpdateShareWaitHandler

func UpdateShareWaitHandler(ctx context.Context, api APIClientInterface, projectId, region, resourcePoolId, shareId string) *wait.AsyncActionHandler[sfs.GetShareResponse]

Types

type APIClientInterface

type APIClientInterface interface {
	GetResourcePoolExecute(ctx context.Context, projectId string, region string, resourcePoolId string) (*sfs.GetResourcePoolResponse, error)
	GetShareExecute(ctx context.Context, projectId string, region string, resourcePoolId string, shareId string) (*sfs.GetShareResponse, error)
}

Interfaces needed for tests

Jump to

Keyboard shortcuts

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