servicelb

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyLabel       = loadbalancer.GroupName + "/servicelb"
	KeyServiceName = "kubernetes.io/service-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*prober.Manager
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, serviceClient ctlCorev1.ServiceClient, serviceCache ctlCorev1.ServiceCache,
	endpointSliceClient ctldiscoveryv1.EndpointSliceClient, endpointSliceCache ctldiscoveryv1.EndpointSliceCache,
	vmiCache ctlkubevirtv1.VirtualMachineInstanceCache) *Manager

func (*Manager) AddBackendServers added in v0.2.0

func (m *Manager) AddBackendServers(lb *lbv1.LoadBalancer, servers []pkglb.BackendServer) (bool, error)

func (*Manager) DeleteLoadBalancer

func (m *Manager) DeleteLoadBalancer(lb *lbv1.LoadBalancer) error

func (*Manager) EnsureLoadBalancer

func (m *Manager) EnsureLoadBalancer(lb *lbv1.LoadBalancer) error

func (*Manager) GetBackendServers added in v0.2.0

func (m *Manager) GetBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)

func (*Manager) RemoveBackendServers added in v0.2.0

func (m *Manager) RemoveBackendServers(lb *lbv1.LoadBalancer, servers []pkglb.BackendServer) (bool, error)

type Server added in v0.2.0

type Server struct {
	*kubevirtv1.VirtualMachineInstance
}

func (*Server) GetAddress added in v0.2.0

func (s *Server) GetAddress() (string, bool)

Jump to

Keyboard shortcuts

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