Documentation ¶
Index ¶
- Constants
- type NameGenerator
- func (gen *NameGenerator) NameInstanceSG(namespace string, ingressName string) string
- func (gen *NameGenerator) NameLB(namespace string, ingressName string) string
- func (gen *NameGenerator) NameLBSG(namespace string, ingressName string) string
- func (gen *NameGenerator) NameTG(namespace string, ingressName string, serviceName, servicePort string, ...) string
- type NameTagGenerator
- type TagGenerator
- func (gen *TagGenerator) TagInstanceSG(namespace string, ingressName string) map[string]string
- func (gen *TagGenerator) TagLB(namespace string, ingressName string) map[string]string
- func (gen *TagGenerator) TagLBSG(namespace string, ingressName string) map[string]string
- func (gen *TagGenerator) TagTG(namespace string, ingressName string, serviceName string, servicePort string) map[string]string
- func (gen *TagGenerator) TagTGGroup(namespace string, ingressName string) map[string]string
Constants ¶
View Source
const ( TagKeyClusterName = "kubernetes.io/cluster-name" TagKeyNamespace = "kubernetes.io/namespace" TagKeyIngressName = "kubernetes.io/ingress-name" TagKeyServiceName = "kubernetes.io/service-name" TagKeyServicePort = "kubernetes.io/service-port" )
Standard tag key names
View Source
const ( V2TagKeyClusterID = "ingress.k8s.aws/cluster" V2TagKeyStackID = "ingress.k8s.aws/stack" V2TagKeyResourceID = "ingress.k8s.aws/resource" V2ResourceIDLoadBalancer = "LoadBalancer" V2ResourceIDManagedLBSecurityGroup = "ManagedLBSecurityGroup" )
Additional Tags used to be forward-compatible with V2 version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameGenerator ¶
type NameGenerator struct {
ALBNamePrefix string
}
func (*NameGenerator) NameInstanceSG ¶
func (gen *NameGenerator) NameInstanceSG(namespace string, ingressName string) string
func (*NameGenerator) NameLB ¶
func (gen *NameGenerator) NameLB(namespace string, ingressName string) string
type NameTagGenerator ¶
type NameTagGenerator struct { NameGenerator TagGenerator }
func NewNameTagGenerator ¶
func NewNameTagGenerator(cfg config.Configuration) *NameTagGenerator
type TagGenerator ¶
func (*TagGenerator) TagInstanceSG ¶
func (gen *TagGenerator) TagInstanceSG(namespace string, ingressName string) map[string]string
func (*TagGenerator) TagLB ¶
func (gen *TagGenerator) TagLB(namespace string, ingressName string) map[string]string
func (*TagGenerator) TagLBSG ¶
func (gen *TagGenerator) TagLBSG(namespace string, ingressName string) map[string]string
func (*TagGenerator) TagTGGroup ¶
func (gen *TagGenerator) TagTGGroup(namespace string, ingressName string) map[string]string
Click to show internal directories.
Click to hide internal directories.