Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Build() *HAProxyController
- func (builder *Builder) WithAnnotations(a annotations.Annotations) *Builder
- func (builder *Builder) WithArgs(osArgs utils.OSArgs) *Builder
- func (builder *Builder) WithClientSet(clientSet *kubernetes.Clientset) *Builder
- func (builder *Builder) WithEventChan(eventChan chan k8s.SyncDataEvent) *Builder
- func (builder *Builder) WithGatewayManager(gatewayManager gateway.GatewayManager) *Builder
- func (builder *Builder) WithHAProxyProcess(process process.Process) *Builder
- func (builder *Builder) WithHAProxyRules(rules rules.Rules) *Builder
- func (builder *Builder) WithHaproxyCfgFile(cfgFile []byte) *Builder
- func (builder *Builder) WithHaproxyClient(haproxyClient api.HAProxyClient) *Builder
- func (builder *Builder) WithHaproxyEnv(env env.Env) *Builder
- func (builder *Builder) WithRestClientSet(restClientSet client.Client) *Builder
- func (builder *Builder) WithStore(store store.K8s) *Builder
- func (builder *Builder) WithUpdateStatusManager(updateStatusManager status.UpdateStatusManager) *Builder
- type HAProxyController
- type UpdateHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) Build ¶
func (builder *Builder) Build() *HAProxyController
func (*Builder) WithAnnotations ¶
func (builder *Builder) WithAnnotations(a annotations.Annotations) *Builder
func (*Builder) WithClientSet ¶
func (builder *Builder) WithClientSet(clientSet *kubernetes.Clientset) *Builder
func (*Builder) WithEventChan ¶
func (builder *Builder) WithEventChan(eventChan chan k8s.SyncDataEvent) *Builder
func (*Builder) WithGatewayManager ¶ added in v1.10.0
func (builder *Builder) WithGatewayManager(gatewayManager gateway.GatewayManager) *Builder
func (*Builder) WithHAProxyProcess ¶
func (*Builder) WithHAProxyRules ¶
func (*Builder) WithHaproxyCfgFile ¶
func (*Builder) WithHaproxyClient ¶
func (builder *Builder) WithHaproxyClient(haproxyClient api.HAProxyClient) *Builder
func (*Builder) WithRestClientSet ¶ added in v1.10.0
func (*Builder) WithUpdateStatusManager ¶ added in v1.10.4
func (builder *Builder) WithUpdateStatusManager(updateStatusManager status.UpdateStatusManager) *Builder
type HAProxyController ¶
type HAProxyController struct {
// contains filtered or unexported fields
}
HAProxyController is ingress controller
func (*HAProxyController) SetGatewayAPIInstalled ¶ added in v1.10.3
func (c *HAProxyController) SetGatewayAPIInstalled(gatewayAPIInstalled bool)
func (*HAProxyController) Start ¶
func (c *HAProxyController) Start()
Start initializes and runs HAProxyController
func (*HAProxyController) Stop ¶
func (c *HAProxyController) Stop()
Stop handles shutting down HAProxyController
func (*HAProxyController) SyncData ¶
func (c *HAProxyController) SyncData()
SyncData gets all kubernetes changes, aggregates them and apply to HAProxy. All the changes must come through this function
type UpdateHandler ¶
type UpdateHandler interface {
Update(k store.K8s, h haproxy.HAProxy, a annotations.Annotations) error
}
Click to show internal directories.
Click to hide internal directories.