Documentation
¶
Index ¶
- Constants
- func CreateDatabaseWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.GetDatabaseResponse]
- func CreateInstanceWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
- func CreateUserWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.GetUserResponse]
- func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
- func DeleteUserWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[struct{}]
- func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
- func WaitForUserWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[v3alpha1api.ListUserResponse]
- type APIClientInterface
- type APIClientUserInterface
Constants ¶
View Source
const ( InstanceStateEmpty = "" InstanceStateSuccess = "READY" InstanceStatePending = "PENDING" InstanceStateProcessing = "PROGRESSING" InstanceStateFailed = "FAILURE" InstanceStateUnknown = "UNKNOWN" InstanceStateTerminating = "TERMINATING" )
READY, PENDING, PROGRESSING, FAILURE, UNKNOWN,
Variables ¶
This section is empty.
Functions ¶
func CreateDatabaseWaitHandler ¶
func CreateDatabaseWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region, databaseName string, ) *wait.AsyncActionHandler[v3alpha1api.GetDatabaseResponse]
CreateDatabaseWaitHandler will wait for instance creation
func CreateInstanceWaitHandler ¶
func CreateInstanceWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region string, ) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
CreateInstanceWaitHandler will wait for instance creation
func CreateUserWaitHandler ¶
func CreateUserWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region string, userId int64, ) *wait.AsyncActionHandler[v3alpha1api.GetUserResponse]
CreateUserWaitHandler will wait for instance creation
func DeleteInstanceWaitHandler ¶
func DeleteInstanceWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region string, ) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
DeleteInstanceWaitHandler will wait for instance deletion
func DeleteUserWaitHandler ¶
func DeleteUserWaitHandler( ctx context.Context, a APIClientInterface, projectId, region, instanceId string, userId int64, ) *wait.AsyncActionHandler[struct{}]
DeleteUserWaitHandler will wait for instance deletion
func UpdateInstanceWaitHandler ¶
func UpdateInstanceWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region string, ) *wait.AsyncActionHandler[v3alpha1api.GetInstanceResponse]
UpdateInstanceWaitHandler will wait for instance update
func WaitForUserWaitHandler ¶
func WaitForUserWaitHandler( ctx context.Context, a APIClientInterface, projectId, instanceId, region, userName string, ) *wait.AsyncActionHandler[v3alpha1api.ListUserResponse]
WaitForUserWaitHandler will wait for instance creation
Types ¶
type APIClientInterface ¶
type APIClientInterface interface {
GetInstanceRequest(
ctx context.Context,
projectId, region, instanceId string,
) v3alpha1api.ApiGetInstanceRequestRequest
GetDatabaseRequest(
ctx context.Context,
projectId string,
region string,
instanceId string,
databaseName string,
) v3alpha1api.ApiGetDatabaseRequestRequest
GetUserRequest(
ctx context.Context,
projectId string,
region string,
instanceId string,
userId int64,
) v3alpha1api.ApiGetUserRequestRequest
ListRolesRequest(
ctx context.Context,
projectId string,
region string,
instanceId string,
) v3alpha1api.ApiListRolesRequestRequest
ListUsersRequest(
ctx context.Context,
projectId string,
region string,
instanceId string,
) v3alpha1api.ApiListUsersRequestRequest
}
APIClientInterface Interface needed for tests
Click to show internal directories.
Click to hide internal directories.