wait

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveState   = resourcemanager.LifecycleState("ACTIVE")
	CreatingState = resourcemanager.LifecycleState("CREATING")
)

Variables

This section is empty.

Functions

func CreateProjectWaitHandler

func CreateProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[resourcemanager.GetProjectResponse]

CreateProjectWaitHandler will wait for project creation

func DeleteProjectWaitHandler

func DeleteProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[struct{}]

DeleteProjectWaitHandler will wait for project deletion

Types

type APIClientInterface

type APIClientInterface interface {
	GetProjectExecute(ctx context.Context, containerId string) (*resourcemanager.GetProjectResponse, error)
}

Interfaces needed for tests

Jump to

Keyboard shortcuts

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