Documentation ¶
Index ¶
- func Bool(name string, annotations ...map[string]string) (out bool, err error)
- func Int(name string, annotations ...map[string]string) (out int, err error)
- func ModelBackend(name, defaultNS string, k store.K8s, annotations ...map[string]string) (backend *models.Backend, err error)
- func ModelDefaults(name, defaultNS string, k store.K8s, annotations ...map[string]string) (defaults *models.Defaults, err error)
- func ModelGlobal(name, defaultNS string, k store.K8s, annotations ...map[string]string) (global *models.Global, err error)
- func ModelLog(name, defaultNS string, k store.K8s, annotations ...map[string]string) (log models.LogTargets, err error)
- func Secret(name, defaultNs string, k store.K8s, annotations ...map[string]string) (secret *store.Secret, err error)
- func Service(name, defaultNs string, k store.K8s, annotations ...map[string]string) (service *store.Service, err error)
- func SetDefaultValue(annotation, value string)
- func String(name string, annotations ...map[string]string) string
- func Timeout(name string, annotations ...map[string]string) (out *int64, err error)
- func UpdateBackendCfgSnippet(api api.HAProxyClient, backend string) (updated []string, err error)
- func UpdateFrontendCfgSnippet(api api.HAProxyClient, frontends ...string) (updated []string, err error)
- func UpdateGlobalCfgSnippet(api api.HAProxyClient) (updated []string, err error)
- type Annotation
- func Backend(b *models.Backend, s store.K8s, c *certs.Certificates) []Annotation
- func Defaults(d *models.Defaults) []Annotation
- func Frontend(i *store.Ingress, r *rules.Rules, m maps.MapFiles) []Annotation
- func Global(g *models.Global, l *models.LogTargets) []Annotation
- func GlobalCfgSnipp() []Annotation
- type CfgSnippet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelBackend ¶ added in v1.7.0
func ModelBackend(name, defaultNS string, k store.K8s, annotations ...map[string]string) (backend *models.Backend, err error)
ModelBackend takes an annotation holding the path of a backend cr and returns corresponding Backend model
func ModelDefaults ¶ added in v1.7.0
func ModelDefaults(name, defaultNS string, k store.K8s, annotations ...map[string]string) (defaults *models.Defaults, err error)
ModelDefaults takes an annotation holding the path of a defaults cr and returns corresponding Defaults model
func ModelGlobal ¶ added in v1.7.0
func ModelGlobal(name, defaultNS string, k store.K8s, annotations ...map[string]string) (global *models.Global, err error)
ModelGlobal takes an annotation holding the path of a global cr and returns corresponding Global model
func ModelLog ¶ added in v1.7.0
func ModelLog(name, defaultNS string, k store.K8s, annotations ...map[string]string) (log models.LogTargets, err error)
ModelLog takes an annotation holding the path of a global cr and returns corresponding LogTargerts model
func SetDefaultValue ¶ added in v1.7.0
func SetDefaultValue(annotation, value string)
func UpdateBackendCfgSnippet ¶ added in v1.7.0
func UpdateBackendCfgSnippet(api api.HAProxyClient, backend string) (updated []string, err error)
func UpdateFrontendCfgSnippet ¶ added in v1.7.0
func UpdateFrontendCfgSnippet(api api.HAProxyClient, frontends ...string) (updated []string, err error)
func UpdateGlobalCfgSnippet ¶ added in v1.7.0
func UpdateGlobalCfgSnippet(api api.HAProxyClient) (updated []string, err error)
Types ¶
type Annotation ¶
type Annotation interface { GetName() string Process(k store.K8s, annotations ...map[string]string) error }
func Backend ¶ added in v1.7.0
func Backend(b *models.Backend, s store.K8s, c *certs.Certificates) []Annotation
func Defaults ¶ added in v1.7.0
func Defaults(d *models.Defaults) []Annotation
func Global ¶ added in v1.7.0
func Global(g *models.Global, l *models.LogTargets) []Annotation
func GlobalCfgSnipp ¶ added in v1.7.0
func GlobalCfgSnipp() []Annotation
type CfgSnippet ¶ added in v1.7.0
type CfgSnippet struct {
// contains filtered or unexported fields
}
func NewBackendCfgSnippet ¶
func NewBackendCfgSnippet(n string, b string) *CfgSnippet
func NewFrontendCfgSnippet ¶ added in v1.6.0
func NewFrontendCfgSnippet(n string, f string) *CfgSnippet
func NewGlobalCfgSnippet ¶
func NewGlobalCfgSnippet(n string) *CfgSnippet
func (*CfgSnippet) GetName ¶ added in v1.7.0
func (a *CfgSnippet) GetName() string
Click to show internal directories.
Click to hide internal directories.