Documentation ¶
Index ¶
- type LbCacheObj
- type LoadBalancerClient
- func (lbc *LoadBalancerClient) CreateBackendSet(ctx context.Context, lbID string, backendSetName string, policy string, ...) error
- func (lbc *LoadBalancerClient) CreateListener(ctx context.Context, lbID string, listenerPort int, listenerProtocol string, ...) error
- func (lbc *LoadBalancerClient) CreateLoadBalancer(ctx context.Context, req loadbalancer.CreateLoadBalancerRequest) (*loadbalancer.LoadBalancer, error)
- func (lbc *LoadBalancerClient) DeleteBackendSet(ctx context.Context, lbID string, backendSetName string) error
- func (lbc *LoadBalancerClient) DeleteListener(ctx context.Context, lbID string, listenerName string) error
- func (lbc *LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, lbID string) error
- func (lbc *LoadBalancerClient) DeleteRoutingPolicy(ctx context.Context, lbID string, policyName string) error
- func (lbc *LoadBalancerClient) EnsureRoutingPolicy(ctx context.Context, lbID string, listenerName string, ...) error
- func (lbc *LoadBalancerClient) GetBackendSetHealth(ctx context.Context, lbID string, backendSetName string) (*loadbalancer.BackendSetHealth, error)
- func (lbc *LoadBalancerClient) GetLoadBalancer(ctx context.Context, lbID string) (*loadbalancer.LoadBalancer, string, error)
- func (lbc *LoadBalancerClient) UpdateBackendSet(ctx context.Context, lbID string, etag string, backendSetName string, ...) error
- func (lbc *LoadBalancerClient) UpdateBackendSetDetails(ctx context.Context, lbID string, etag string, ...) error
- func (lbc *LoadBalancerClient) UpdateBackends(ctx context.Context, lbID string, backendSetName string, ...) error
- func (lbc *LoadBalancerClient) UpdateListener(ctx context.Context, lbId *string, etag string, l loadbalancer.Listener, ...) error
- func (lbc *LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, lbId string, displayName string, ...) (*loadbalancer.LoadBalancer, error)
- func (lbc *LoadBalancerClient) UpdateLoadBalancerShape(ctx context.Context, req loadbalancer.UpdateLoadBalancerShapeRequest) (response loadbalancer.UpdateLoadBalancerShapeResponse, err error)
- func (lbc *LoadBalancerClient) UpdateNetworkSecurityGroups(ctx context.Context, lbId string, nsgIds []string) (loadbalancer.UpdateNetworkSecurityGroupsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LbCacheObj ¶ added in v1.1.0
type LbCacheObj struct { LB *loadbalancer.LoadBalancer Age time.Time ETag string }
type LoadBalancerClient ¶
type LoadBalancerClient struct { LbClient client.LoadBalancerInterface Mu sync.Mutex Cache map[string]*LbCacheObj }
func New ¶
func New(lbClient *loadbalancer.LoadBalancerClient) *LoadBalancerClient
func (*LoadBalancerClient) CreateBackendSet ¶
func (lbc *LoadBalancerClient) CreateBackendSet( ctx context.Context, lbID string, backendSetName string, policy string, healthChecker *loadbalancer.HealthCheckerDetails, sslConfig *loadbalancer.SslConfigurationDetails) error
func (*LoadBalancerClient) CreateListener ¶
func (lbc *LoadBalancerClient) CreateListener(ctx context.Context, lbID string, listenerPort int, listenerProtocol string, defaultBackendSet string, sslConfig *loadbalancer.SslConfigurationDetails) error
func (*LoadBalancerClient) CreateLoadBalancer ¶
func (lbc *LoadBalancerClient) CreateLoadBalancer(ctx context.Context, req loadbalancer.CreateLoadBalancerRequest) (*loadbalancer.LoadBalancer, error)
func (*LoadBalancerClient) DeleteBackendSet ¶
func (*LoadBalancerClient) DeleteListener ¶
func (*LoadBalancerClient) DeleteLoadBalancer ¶
func (lbc *LoadBalancerClient) DeleteLoadBalancer(ctx context.Context, lbID string) error
func (*LoadBalancerClient) DeleteRoutingPolicy ¶
func (*LoadBalancerClient) EnsureRoutingPolicy ¶
func (lbc *LoadBalancerClient) EnsureRoutingPolicy( ctx context.Context, lbID string, listenerName string, rules []loadbalancer.RoutingRule) error
func (*LoadBalancerClient) GetBackendSetHealth ¶
func (lbc *LoadBalancerClient) GetBackendSetHealth(ctx context.Context, lbID string, backendSetName string) (*loadbalancer.BackendSetHealth, error)
func (*LoadBalancerClient) GetLoadBalancer ¶
func (lbc *LoadBalancerClient) GetLoadBalancer(ctx context.Context, lbID string) (*loadbalancer.LoadBalancer, string, error)
func (*LoadBalancerClient) UpdateBackendSet ¶
func (lbc *LoadBalancerClient) UpdateBackendSet(ctx context.Context, lbID string, etag string, backendSetName string, policy string, healthCheckerDetails *loadbalancer.HealthCheckerDetails, sslConfig *loadbalancer.SslConfigurationDetails, backends []loadbalancer.BackendDetails) error
func (*LoadBalancerClient) UpdateBackendSetDetails ¶ added in v1.4.0
func (lbc *LoadBalancerClient) UpdateBackendSetDetails(ctx context.Context, lbID string, etag string, backendSet *loadbalancer.BackendSet, sslConfig *loadbalancer.SslConfigurationDetails, healthCheckerDetails *loadbalancer.HealthCheckerDetails, policy string) error
UpdateBackendSetDetails updates sslConfig, policy, and healthChecker details for backendSet, while preserving individual backends
func (*LoadBalancerClient) UpdateBackends ¶
func (lbc *LoadBalancerClient) UpdateBackends(ctx context.Context, lbID string, backendSetName string, backends []loadbalancer.BackendDetails) error
UpdateBackends updates Backends for backendSetName, while preserving sslConfig, policy, and healthChecker details
func (*LoadBalancerClient) UpdateListener ¶
func (lbc *LoadBalancerClient) UpdateListener(ctx context.Context, lbId *string, etag string, l loadbalancer.Listener, routingPolicyName *string, sslConfigurationDetails *loadbalancer.SslConfigurationDetails, protocol *string, defaultBackendSet *string) error
func (*LoadBalancerClient) UpdateLoadBalancer ¶ added in v1.1.0
func (lbc *LoadBalancerClient) UpdateLoadBalancer(ctx context.Context, lbId string, displayName string, definedTags map[string]map[string]interface{}, freeformTags map[string]string) (*loadbalancer.LoadBalancer, error)
func (*LoadBalancerClient) UpdateLoadBalancerShape ¶ added in v1.1.0
func (lbc *LoadBalancerClient) UpdateLoadBalancerShape(ctx context.Context, req loadbalancer.UpdateLoadBalancerShapeRequest) (response loadbalancer.UpdateLoadBalancerShapeResponse, err error)
func (*LoadBalancerClient) UpdateNetworkSecurityGroups ¶ added in v1.4.0
func (lbc *LoadBalancerClient) UpdateNetworkSecurityGroups(ctx context.Context, lbId string, nsgIds []string) (loadbalancer.UpdateNetworkSecurityGroupsResponse, error)
Click to show internal directories.
Click to hide internal directories.