Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) AddBackendServers(lb *lbv1.LoadBalancer, servers []pkglb.BackendServer) (bool, error)
- func (m *Manager) DeleteLoadBalancer(lb *lbv1.LoadBalancer) error
- func (m *Manager) EnsureLoadBalancer(lb *lbv1.LoadBalancer) error
- func (m *Manager) GetBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)
- func (m *Manager) RemoveBackendServers(lb *lbv1.LoadBalancer, servers []pkglb.BackendServer) (bool, error)
- type Server
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 ¶
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
Click to show internal directories.
Click to hide internal directories.