Documentation ¶
Index ¶
- Constants
- func DisableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
- func EnableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
- type APIClientInstanceInterface
Constants ¶
View Source
const ( ServiceStateEnabled = "ENABLED" ServiceStateEnabling = "ENABLING" ServiceStateDisabled = "DISABLED" ServiceStateDisabling = "DISABLING" )
Variables ¶
This section is empty.
Functions ¶
func DisableServiceWaitHandler ¶
func DisableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
func EnableServiceWaitHandler ¶
func EnableServiceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, serviceId string) *wait.AsyncActionHandler[serviceenablement.ServiceStatus]
Types ¶
type APIClientInstanceInterface ¶
type APIClientInstanceInterface interface {
GetServiceStatusExecute(ctx context.Context, projectId, serviceId string) (*serviceenablement.ServiceStatus, error)
}
Interface needed for tests
Click to show internal directories.
Click to hide internal directories.