Documentation
¶
Overview ¶
Package loadbalancer provides a portable load balancer API with cross-cutting concerns.
Index ¶
- type LB
- func (lb *LB) CreateListener(ctx context.Context, config driver.ListenerConfig) (*driver.ListenerInfo, error)
- func (lb *LB) CreateLoadBalancer(ctx context.Context, config driver.LBConfig) (*driver.LBInfo, error)
- func (lb *LB) CreateRule(ctx context.Context, config driver.RuleConfig) (*driver.RuleInfo, error)
- func (lb *LB) CreateTargetGroup(ctx context.Context, config driver.TargetGroupConfig) (*driver.TargetGroupInfo, error)
- func (lb *LB) DeleteListener(ctx context.Context, arn string) error
- func (lb *LB) DeleteLoadBalancer(ctx context.Context, arn string) error
- func (lb *LB) DeleteRule(ctx context.Context, ruleARN string) error
- func (lb *LB) DeleteTargetGroup(ctx context.Context, arn string) error
- func (lb *LB) DeregisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error
- func (lb *LB) DescribeListeners(ctx context.Context, lbARN string) ([]driver.ListenerInfo, error)
- func (lb *LB) DescribeLoadBalancers(ctx context.Context, arns []string) ([]driver.LBInfo, error)
- func (lb *LB) DescribeRules(ctx context.Context, listenerARN string) ([]driver.RuleInfo, error)
- func (lb *LB) DescribeTargetGroups(ctx context.Context, arns []string) ([]driver.TargetGroupInfo, error)
- func (lb *LB) DescribeTargetHealth(ctx context.Context, tgARN string) ([]driver.TargetHealth, error)
- func (lb *LB) GetLBAttributes(ctx context.Context, lbARN string) (*driver.LBAttributes, error)
- func (lb *LB) ModifyListener(ctx context.Context, input driver.ModifyListenerInput) error
- func (lb *LB) PutLBAttributes(ctx context.Context, lbARN string, attrs driver.LBAttributes) error
- func (lb *LB) RegisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error
- func (lb *LB) SetTargetHealth(ctx context.Context, tgARN, targetID, state string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LB ¶
type LB struct {
// contains filtered or unexported fields
}
func (*LB) CreateListener ¶
func (lb *LB) CreateListener(ctx context.Context, config driver.ListenerConfig) (*driver.ListenerInfo, error)
func (*LB) CreateLoadBalancer ¶
func (*LB) CreateRule ¶ added in v1.3.1
func (*LB) CreateTargetGroup ¶
func (lb *LB) CreateTargetGroup(ctx context.Context, config driver.TargetGroupConfig) (*driver.TargetGroupInfo, error)
func (*LB) DeleteLoadBalancer ¶
func (*LB) DeleteRule ¶ added in v1.3.1
func (*LB) DeleteTargetGroup ¶
func (*LB) DeregisterTargets ¶
func (*LB) DescribeListeners ¶
func (*LB) DescribeLoadBalancers ¶
func (*LB) DescribeRules ¶ added in v1.3.1
func (*LB) DescribeTargetGroups ¶
func (*LB) DescribeTargetHealth ¶
func (*LB) GetLBAttributes ¶ added in v1.3.1
func (*LB) ModifyListener ¶ added in v1.3.1
func (*LB) PutLBAttributes ¶ added in v1.3.1
func (*LB) RegisterTargets ¶
type Option ¶
type Option func(*LB)
func WithErrorInjection ¶
func WithLatency ¶
func WithMetrics ¶
func WithRateLimiter ¶
func WithRecorder ¶
Click to show internal directories.
Click to hide internal directories.