alb

package
v0.0.1-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRuleNotFound = errors.New("rule not found")

Functions

func AddListenerStaticRule

func AddListenerStaticRule(ctx context.Context, listenerArn string, ruleCond RuleCondition, value string) error

func AddListenerTriggerTargetGroupRule

func AddListenerTriggerTargetGroupRule(ctx context.Context, listenerArn string, ruleCond RuleCondition, targetArn string) error

func DeleteListenerPathRule

func DeleteListenerPathRule(ctx context.Context, listenerArn string, target RuleCondition) error

func GetAlbCerts

func GetAlbCerts(ctx context.Context, albArn string) ([]string, error)

func GetAllRules

func GetAllRules(ctx context.Context, listenerArn string) ([]types.Rule, error)

func GetLambdaTargetGroup

func GetLambdaTargetGroup(ctx context.Context, lambdaArn string) (string, error)

func GetListener

func GetListener(ctx context.Context, albArn string, protocol types.ProtocolEnum, port int32) (*types.Listener, error)

func GetNextAvailablePriority

func GetNextAvailablePriority(ctx context.Context, listenerArn string) (int32, error)

func GetTargetGroupAlb

func GetTargetGroupAlb(ctx context.Context, targetGroupArn string) (string, error)

func RuleConditionMatches

func RuleConditionMatches(rule types.Rule, target RuleCondition) bool

TODO: Add unit test

Types

type RuleCondition

type RuleCondition struct {
	PathPattern []string
	HostHeader  []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL