wait

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceStatusUnspecified = "STATUS_UNSPECIFIED"
	InstanceStatusPending     = "STATUS_PENDING"
	InstanceStatusReady       = "STATUS_READY"
	InstanceStatusError       = "STATUS_ERROR"
	InstanceStatusTerminating = "STATUS_TERMINATING"
)

Load balancer instance status

Variables

This section is empty.

Functions

func CreateLoadBalancerWaitHandler

func CreateLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, region, instanceName string) *wait.AsyncActionHandler[loadbalancer.LoadBalancer]

CreateLoadBalancerWaitHandler will wait for load balancer creation

func DeleteLoadBalancerWaitHandler

func DeleteLoadBalancerWaitHandler(ctx context.Context, a APIClientInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[struct{}]

DeleteLoadBalancerWaitHandler will wait for load balancer deletion

Types

type APIClientInterface

type APIClientInterface interface {
	GetLoadBalancerExecute(ctx context.Context, projectId, region, name string) (*loadbalancer.LoadBalancer, error)
}

Interface needed for tests

Jump to

Keyboard shortcuts

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