loadbalancer

package
v0.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	// contains filtered or unexported fields
}

LoadBalancer manages the load balancer for a specific KubeVirt cluster.

func NewLoadBalancer

func NewLoadBalancer(ctx *context.ClusterContext, client runtimeclient.Client, namespace string) (*LoadBalancer, error)

NewLoadBalancer returns a new helper for managing a mock load-balancer (using service).

func (*LoadBalancer) Create

func (l *LoadBalancer) Create(ctx *context.ClusterContext) error

Create creates a service of ClusterIP type to serve as a load-balancer for the cluster.

func (*LoadBalancer) Delete

func (l *LoadBalancer) Delete(ctx *context.ClusterContext) error

Delete deletes load-balancer service.

func (*LoadBalancer) ExternalIP

func (l *LoadBalancer) ExternalIP(ctx *context.ClusterContext) (string, error)

ExternalIP returns external ip address of the load balancer

func (*LoadBalancer) IP

IP returns ip address of the load balancer

func (*LoadBalancer) IsFound

func (l *LoadBalancer) IsFound() bool

IsFound checks if load balancer already exists

Jump to

Keyboard shortcuts

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