Documentation ¶
Index ¶
- type LoadBalancer
- func (l *LoadBalancer) Create(ctx *context.ClusterContext) error
- func (l *LoadBalancer) Delete(ctx *context.ClusterContext) error
- func (l *LoadBalancer) ExternalIP(ctx *context.ClusterContext) (string, error)
- func (l *LoadBalancer) IP(ctx *context.ClusterContext) (string, error)
- func (l *LoadBalancer) IsFound() bool
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 ¶
func (l *LoadBalancer) IP(ctx *context.ClusterContext) (string, error)
IP returns ip address of the load balancer
func (*LoadBalancer) IsFound ¶
func (l *LoadBalancer) IsFound() bool
IsFound checks if load balancer already exists
Click to show internal directories.
Click to hide internal directories.