status

package
v0.0.0-...-97cf01e Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveClusters

func RemoveClusters(statusStr string, clustersToRemove []string) (string, error)

RemoveClusters removes the given list of clusters from the given status string. Returns NotFoundError if the given statusStr is not a valid LoadBalancerStatus.

Types

type LoadBalancerStatus

type LoadBalancerStatus struct {
	// Human readable description for this status.
	// If we are using the description field of a GCP resource to store this status,
	// then this description field can be used to store the description about that GCP resource.
	Description string
	// Name of the load balancer which is described by this.
	LoadBalancerName string
	// Name of the clusters across which this load balancer is spread.
	Clusters []string
	// IP Address of this load balancer.
	IPAddress string
}

LoadBalancerStatus describes a multi-cluster load balancer.

func FromString

func FromString(str string) (*LoadBalancerStatus, error)

FromString reads in a string param and converts it to a LoadBalancerStatus.

func (LoadBalancerStatus) ToString

func (s LoadBalancerStatus) ToString() (string, error)

ToString converts a LoadBalancerStatus to a string.

Jump to

Keyboard shortcuts

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