wait

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 11

Documentation

Index

Constants

View Source
const (
	CreateSuccess = "CREATED"
)

Variables

This section is empty.

Functions

func CreateNetworkAreaWaitHandler

func CreateNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, organizationId, areaId string) *wait.AsyncActionHandler[iaas.NetworkArea]

CreateNetworkAreaWaitHandler will wait for network area creation

func CreateNetworkWaitHandler

func CreateNetworkWaitHandler(ctx context.Context, a APIClientInterface, projectId, networkId string) *wait.AsyncActionHandler[iaas.Network]

CreateNetworkWaitHandler will wait for network creation using network id

func DeleteNetworkAreaWaitHandler

func DeleteNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, organizationId, areaId string) *wait.AsyncActionHandler[iaas.NetworkArea]

DeleteNetworkAreaWaitHandler will wait for network area deletion

func DeleteNetworkWaitHandler

func DeleteNetworkWaitHandler(ctx context.Context, a APIClientInterface, projectId, networkId string) *wait.AsyncActionHandler[iaas.Network]

DeleteNetworkWaitHandler will wait for network deletion

func UpdateNetworkAreaWaitHandler

func UpdateNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, organizationId, areaId string) *wait.AsyncActionHandler[iaas.NetworkArea]

UpdateNetworkAreaWaitHandler will wait for network area update

func UpdateNetworkWaitHandler

func UpdateNetworkWaitHandler(ctx context.Context, a APIClientInterface, projectId, networkId string) *wait.AsyncActionHandler[iaas.Network]

UpdateNetworkWaitHandler will wait for network update

Types

type APIClientInterface

type APIClientInterface interface {
	GetNetworkAreaExecute(ctx context.Context, organizationId, areaId string) (*iaas.NetworkArea, error)
	GetProjectRequestExecute(ctx context.Context, projectId string, requestId string) (*iaas.Request, error)
	GetNetworkExecute(ctx context.Context, projectId, networkId string) (*iaas.Network, error)
}

Interfaces needed for tests

Jump to

Keyboard shortcuts

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