metadata

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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