Documentation
¶
Index ¶
- Constants
- func CreateLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceName string) *wait.AsyncActionHandler[loadbalancer.LoadBalancer]
- func DeleteLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[struct{}]
- func EnableServiceWaitHandler(ctx context.Context, a APIClientInterface, projectId string) *wait.AsyncActionHandler[loadbalancer.GetServiceStatusResponse]
- type APIClientInterface
Constants ¶
View Source
const ( InstanceStatusUnspecified = "STATUS_UNSPECIFIED" InstanceStatusPending = "STATUS_PENDING" InstanceStatusReady = "STATUS_READY" InstanceStatusError = "STATUS_ERROR" InstanceStatusTerminating = "STATUS_TERMINATING" )
Load balancer instance status
View Source
const ( FunctionalityStatusUnspecified = "STATUS_UNSPECIFIED" FunctionalityStatusReady = "STATUS_READY" FunctionalityStatusFailed = "STATUS_FAILED" FunctionalityStatusUpdating = "STATUS_UPDATING" FunctionalityStatusDeleting = "STATUS_DELETING" FunctionalityStatusDisabled = "STATUS_DISABLED" )
Load balancing functionality status
Variables ¶
This section is empty.
Functions ¶
func CreateLoadBalancerWaitHandler ¶
func CreateLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceName string) *wait.AsyncActionHandler[loadbalancer.LoadBalancer]
CreateLoadBalancerWaitHandler will wait for load balancer creation
func DeleteLoadBalancerWaitHandler ¶
func DeleteLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, instanceId string) *wait.AsyncActionHandler[struct{}]
DeleteLoadBalancerWaitHandler will wait for load balancer deletion
func EnableServiceWaitHandler ¶
func EnableServiceWaitHandler(ctx context.Context, a APIClientInterface, projectId string) *wait.AsyncActionHandler[loadbalancer.GetServiceStatusResponse]
EnableServiceWaitHandler will wait for functionality to be enabled
Types ¶
type APIClientInterface ¶
type APIClientInterface interface {
GetLoadBalancerExecute(ctx context.Context, projectId, name string) (*loadbalancer.LoadBalancer, error)
GetServiceStatusExecute(ctx context.Context, projectId string) (*loadbalancer.GetServiceStatusResponse, error)
}
Interface needed for tests
Click to show internal directories.
Click to hide internal directories.