Documentation ¶
Index ¶
- type LbClient
- type Service
- func (s *Service) DeleteLoadBalancer(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
- func (s *Service) DeleteLoadBalancerMember(openStackCluster *infrav1.OpenStackCluster, machine *clusterv1.Machine, ...) error
- func (s *Service) ReconcileLoadBalancer(openStackCluster *infrav1.OpenStackCluster, clusterName string, ...) error
- func (s *Service) ReconcileLoadBalancerMember(openStackCluster *infrav1.OpenStackCluster, machine *clusterv1.Machine, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LbClient ¶ added in v0.5.1
type LbClient interface { CreateLoadBalancer(opts loadbalancers.CreateOptsBuilder) (*loadbalancers.LoadBalancer, error) ListLoadBalancers(opts loadbalancers.ListOptsBuilder) ([]loadbalancers.LoadBalancer, error) GetLoadBalancer(id string) (*loadbalancers.LoadBalancer, error) DeleteLoadBalancer(id string, opts loadbalancers.DeleteOptsBuilder) error CreateListener(opts listeners.CreateOptsBuilder) (*listeners.Listener, error) ListListeners(opts listeners.ListOptsBuilder) ([]listeners.Listener, error) GetListener(id string) (*listeners.Listener, error) DeleteListener(id string) error CreatePool(opts pools.CreateOptsBuilder) (*pools.Pool, error) ListPools(opts pools.ListOptsBuilder) ([]pools.Pool, error) GetPool(id string) (*pools.Pool, error) DeletePool(id string) error CreatePoolMember(poolID string, opts pools.CreateMemberOptsBuilder) (*pools.Member, error) ListPoolMember(poolID string, opts pools.ListMembersOptsBuilder) ([]pools.Member, error) DeletePoolMember(poolID string, lbMemberID string) error CreateMonitor(opts monitors.CreateOptsBuilder) (*monitors.Monitor, error) ListMonitors(opts monitors.ListOptsBuilder) ([]monitors.Monitor, error) DeleteMonitor(id string) error ListLoadBalancerProviders() ([]providers.Provider, error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service interfaces with the OpenStack Neutron LBaaS v2 API.
func NewLoadBalancerTestService ¶ added in v0.5.1
func NewLoadBalancerTestService(projectID string, lbClient LbClient, client *networking.Service, logger logr.Logger) *Service
NewLoadBalancerTestService returns a Service with no initialization. It should only be used by tests. It helps to mock the load balancer service in other packages.
func NewService ¶
NewService returns an instance of the loadbalancer service.
func (*Service) DeleteLoadBalancer ¶
func (s *Service) DeleteLoadBalancer(openStackCluster *infrav1.OpenStackCluster, clusterName string) error
func (*Service) DeleteLoadBalancerMember ¶
func (s *Service) DeleteLoadBalancerMember(openStackCluster *infrav1.OpenStackCluster, machine *clusterv1.Machine, openStackMachine *infrav1.OpenStackMachine, clusterName string) error
func (*Service) ReconcileLoadBalancer ¶
func (*Service) ReconcileLoadBalancerMember ¶
func (s *Service) ReconcileLoadBalancerMember(openStackCluster *infrav1.OpenStackCluster, machine *clusterv1.Machine, openStackMachine *infrav1.OpenStackMachine, clusterName, ip string) error
Directories ¶
Path | Synopsis |
---|---|
Package mock_loadbalancer is a generated GoMock package.
|
Package mock_loadbalancer is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.