Documentation
¶
Overview ¶
Package emlb manages authentication to the Equinix Metal Load Balancer service.
Index ¶
- type EMLB
- func (e *EMLB) DeleteClusterLoadBalancer(ctx context.Context, clusterScope *scope.ClusterScope) error
- func (e *EMLB) DeleteLoadBalancer(ctx context.Context, lbID string) (*http.Response, error)
- func (e *EMLB) DeleteLoadBalancerOrigin(ctx context.Context, machineScope *scope.MachineScope) error
- func (e *EMLB) DeleteLoadBalancerPool(ctx context.Context, poolID string) (*http.Response, error)
- func (e *EMLB) GetLoadBalancerPools(ctx context.Context) (*lbaas.LoadBalancerPoolCollection, *http.Response, error)
- func (e *EMLB) GetLoadBalancers(ctx context.Context) (*lbaas.LoadBalancerCollection, *http.Response, error)
- func (e *EMLB) ReconcileLoadBalancer(ctx context.Context, clusterScope *scope.ClusterScope) error
- func (e *EMLB) ReconcileVIPOrigin(ctx context.Context, machineScope *scope.MachineScope, ...) error
- type Pools
- type Target
- type TokenExchanger
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EMLB ¶
type EMLB struct { TokenExchanger *TokenExchanger // contains filtered or unexported fields }
EMLB is a client object for talking to the Equinix Metal Load Balancer API.
func (*EMLB) DeleteClusterLoadBalancer ¶
func (e *EMLB) DeleteClusterLoadBalancer(ctx context.Context, clusterScope *scope.ClusterScope) error
DeleteClusterLoadBalancer deletes the Equinix Metal Load Balancer associated with a given ClusterScope.
func (*EMLB) DeleteLoadBalancer ¶
DeleteLoadBalancer deletes an Equinix Metal Load Balancer given an ID.
func (*EMLB) DeleteLoadBalancerOrigin ¶
func (e *EMLB) DeleteLoadBalancerOrigin(ctx context.Context, machineScope *scope.MachineScope) error
DeleteLoadBalancerOrigin deletes the Equinix Metal Load Balancer associated with a given ClusterScope.
func (*EMLB) DeleteLoadBalancerPool ¶
DeleteLoadBalancerPool deletes an Equinix Metal Load Balancer Origin Pool given an ID.
func (*EMLB) GetLoadBalancerPools ¶
func (e *EMLB) GetLoadBalancerPools(ctx context.Context) (*lbaas.LoadBalancerPoolCollection, *http.Response, error)
GetLoadBalancerPools returns a Load Balancer Collection of all the Equinix Metal Load Balancers in a project.
func (*EMLB) GetLoadBalancers ¶
func (e *EMLB) GetLoadBalancers(ctx context.Context) (*lbaas.LoadBalancerCollection, *http.Response, error)
GetLoadBalancers returns a Load Balancer Collection of all the Equinix Metal Load Balancers in a project.
func (*EMLB) ReconcileLoadBalancer ¶
ReconcileLoadBalancer creates a new Equinix Metal Load Balancer and associates it with the given ClusterScope.
func (*EMLB) ReconcileVIPOrigin ¶
func (e *EMLB) ReconcileVIPOrigin(ctx context.Context, machineScope *scope.MachineScope, deviceAddr []corev1.NodeAddress) error
ReconcileVIPOrigin adds the external IP of a new device to the EMLB Load balancer origin pool.
type TokenExchanger ¶
type TokenExchanger struct {
// contains filtered or unexported fields
}
TokenExchanger is an client for authenticating to the Load Balancer API.
type TokenResponse ¶
TokenResponse adds ExpiresIn to the OauthResponse struct.