Documentation ¶
Index ¶
- Constants
- func CreateProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[resourcemanager.GetProjectResponse]
- func DeleteProjectWaitHandler(ctx context.Context, a APIClientInterface, containerId string) *wait.AsyncActionHandler[struct{}]
- type APIClientInterface
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
Click to show internal directories.
Click to hide internal directories.