loadbalancer

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIPToInterface added in v0.1.0

func AddIPToInterface(ifaceName string, ip string) error

func NewServer

func NewServer() cloudprovider.LoadBalancer

func NewTunnel added in v0.1.0

func NewTunnel(localIP, localPort, remoteIP, remotePort string) *tunnel

func NewTunnelManager added in v0.1.0

func NewTunnelManager() *tunnelManager

func RemoveIPToInterface added in v0.1.0

func RemoveIPToInterface(ifaceName string, ip string) error

func ServiceFromLoadBalancerSimpleName added in v0.1.0

func ServiceFromLoadBalancerSimpleName(s string) (clusterName string, service *v1.Service)

Types

type Server

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

func (*Server) EnsureLoadBalancer

func (s *Server) EnsureLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)

func (*Server) EnsureLoadBalancerDeleted

func (s *Server) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *v1.Service) error

func (*Server) GetLoadBalancer

func (s *Server) GetLoadBalancer(ctx context.Context, clusterName string, service *v1.Service) (*v1.LoadBalancerStatus, bool, error)

func (*Server) GetLoadBalancerName

func (s *Server) GetLoadBalancerName(ctx context.Context, clusterName string, service *v1.Service) string

func (*Server) UpdateLoadBalancer

func (s *Server) UpdateLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) error

Jump to

Keyboard shortcuts

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