metadata

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 LoadBalancerState

type LoadBalancerState string

LoadBalancerState state of a load balancer

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

Jump to

Keyboard shortcuts

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