Documentation ¶
Overview ¶
Package metadata provides load balancer metadata state types
Index ¶
Constants ¶
This section is empty.
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 LoadBalancerState ¶
type LoadBalancerState string
LoadBalancerState state of a load balancer
const ( LoadBalancerStateCreating LoadBalancerState = "creating" LoadBalancerStateTerminating LoadBalancerState = "terminating" LoadBalancerStateActive LoadBalancerState = "active" LoadBalancerStateDeleted LoadBalancerState = "deleted" LoadBalancerStateUpdating LoadBalancerState = "updating" )
load balancer states
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) (*LoadBalancerStatus, error)
GetLoadbalancerStatus returns the status of a load balancer
Click to show internal directories.
Click to hide internal directories.