Documentation
¶
Index ¶
- Variables
- func GetMapPath(name string) string
- type Certificates
- type Maps
- type Rule
- type RuleID
- type RuleStatus
- type RuleType
- type Rules
- func (r Rules) AddRule(rule Rule, ingressName *string, frontends ...string) error
- func (r Rules) Clean(frontends ...string)
- func (r Rules) EnableSSLPassThrough(passThroughFtd, offloadFtd string)
- func (r Rules) PopIngressRuleIDs(ingress string) (ruleIDs []RuleID)
- func (r Rules) Refresh(client api.HAProxyClient) (reload bool)
- type SecretCtx
- type SecretType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCertNotFound = errors.New("notFound")
Functions ¶
func GetMapPath ¶ added in v1.5.0
Types ¶
type Certificates ¶ added in v1.5.0
type Certificates struct {
// contains filtered or unexported fields
}
func NewCertificates ¶ added in v1.5.0
func NewCertificates(caDir, ftDir, bdDir string) *Certificates
func (*Certificates) Clean ¶ added in v1.5.0
func (c *Certificates) Clean()
func (*Certificates) FrontendCertsEnabled ¶ added in v1.5.0
func (c *Certificates) FrontendCertsEnabled() bool
func (*Certificates) HandleTLSSecret ¶ added in v1.5.0
func (*Certificates) Refresh ¶ added in v1.5.0
func (c *Certificates) Refresh()
Refresh removes unused certs from HAProxyCertDir Certificates will remain in HAProxy memory until next Reload
type Maps ¶
type Maps map[string]*mapFile
func NewMapFiles ¶
func (Maps) SetPreserve ¶ added in v1.5.0
SetPreserve sets the preserve flag on a mapFile
type Rule ¶ added in v1.5.0
type Rule interface { GetID() uint32 GetType() RuleType Create(client api.HAProxyClient, frontend *models.Frontend) error }
type RuleStatus ¶ added in v1.5.0
type RuleStatus int
RuleStatus describing Rule creation
const ( TO_DELETE RuleStatus = iota TO_CREATE CREATED )
nolint
type RuleType ¶ added in v1.5.0
type RuleType int
Order matters ! Rules will be evaluated by HAProxy in the defined order.
type Rules ¶ added in v1.5.0
type Rules struct {
// contains filtered or unexported fields
}
func (Rules) EnableSSLPassThrough ¶ added in v1.5.0
func (Rules) PopIngressRuleIDs ¶
type SecretCtx ¶ added in v1.5.0
type SecretCtx struct { DefaultNS string SecretPath string SecretType SecretType }
type SecretType ¶ added in v1.5.0
type SecretType int
const ( NONE_CERT SecretType = iota FT_CERT FT_DEFAULT_CERT BD_CERT CA_CERT )
nolint
Click to show internal directories.
Click to hide internal directories.