Documentation ¶
Index ¶
- func Bool(name string, annotations ...map[string]string) (out bool, err error)
- func HandleBackendCfgSnippet(api api.HAProxyClient) (reload 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 ParseBool(name string, annotations ...map[string]string) (out string, err error)
- func RemoveBackendCfgSnippet(backend string)
- func Secret(name, defaultNs string, k store.K8s, annotations ...map[string]string) (secret *store.Secret, 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
- type Annotations
- type CfgSnippet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBackendCfgSnippet ¶ added in v1.8.10
func HandleBackendCfgSnippet(api api.HAProxyClient) (reload bool, err error)
func ModelBackend ¶
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 ¶
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 ¶
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 ¶
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 RemoveBackendCfgSnippet ¶
func RemoveBackendCfgSnippet(backend string)
func SetDefaultValue ¶
func SetDefaultValue(annotation, value string)
func UpdateBackendCfgSnippet ¶
func UpdateBackendCfgSnippet(api api.HAProxyClient, backend string) (updated []string, err error)
func UpdateFrontendCfgSnippet ¶
func UpdateFrontendCfgSnippet(api api.HAProxyClient, frontends ...string) (updated []string, err error)
func UpdateGlobalCfgSnippet ¶
func UpdateGlobalCfgSnippet(api api.HAProxyClient) (updated []string, err error)
Types ¶
type Annotation ¶
type Annotations ¶
type Annotations interface { GlobalCfgSnipp() []Annotation Global(g *models.Global, l *models.LogTargets) []Annotation Defaults(d *models.Defaults) []Annotation Backend(b *models.Backend, s store.K8s, c certs.Certificates) []Annotation Frontend(i *store.Ingress, r *rules.List, m maps.Maps) []Annotation Secret(name, defaultNs string, k store.K8s, annotations ...map[string]string) (secret *store.Secret, err error) Timeout(name string, annotations ...map[string]string) (out *int64, err error) String(name string, annotations ...map[string]string) string }
func New ¶
func New() Annotations
type CfgSnippet ¶
type CfgSnippet struct {
// contains filtered or unexported fields
}
func NewBackendCfgSnippet ¶
func NewBackendCfgSnippet(n string, b string) *CfgSnippet
func NewFrontendCfgSnippet ¶
func NewFrontendCfgSnippet(n string, f string) *CfgSnippet
func NewGlobalCfgSnippet ¶
func NewGlobalCfgSnippet(n string) *CfgSnippet
func (*CfgSnippet) GetName ¶
func (a *CfgSnippet) GetName() string
Click to show internal directories.
Click to hide internal directories.