Documentation ¶
Overview ¶
Package metadata provides load balancer metadata state types
Index ¶
Constants ¶
View Source
const ( LoadBalancerStateCreating LoadBalancerState = "creating" LoadBalancerStateTerminating LoadBalancerState = "terminating" LoadBalancerStateActive LoadBalancerState = "active" LoadBalancerStateDeleted LoadBalancerState = "deleted" LoadBalancerStateUpdating LoadBalancerState = "updating" LoadBalancerStateIPAssigned LoadBalancerState = "ip-address.assigned" LoadBalancerStateIPUnassigned LoadBalancerState = "ip-address.unassigned" LoadBalancerAPISource string = "load-balancer-api" )
load balancer states
Variables ¶
View Source
var ( // ErrStatusNotFound is returned when a status is not found in the payload ErrStatusNotFound = errors.New("status not found") // ErrInvalidStatusData is returned when the status json data is invalid ErrInvalidStatusData = errors.New("invalid status json data") )
Functions ¶
This section is empty.
Types ¶
type LoadBalancerStatus ¶ added in v0.0.35
type LoadBalancerStatus struct {
State LoadBalancerState `json:"state"`
}
LoadBalancerStatus is the status of a load balancer
func GetLoadbalancerStatus ¶ added in v0.0.35
func GetLoadbalancerStatus(metadataStatuses client.MetadataStatuses, statusNamespaceID gidx.PrefixedID, source string) (*LoadBalancerStatus, error)
GetLoadbalancerStatus searches through the list of metadata status for the requested status of a load balancer using namespace and source
Click to show internal directories.
Click to hide internal directories.