haproxy

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(clusterName string) (*Manager, error)

func (*Manager) EnsureHAProxy

func (m *Manager) EnsureHAProxy(ctx context.Context, apiPort int) error

EnsureHAProxy creates or updates the HAProxy container for the cluster.

func (*Manager) GetPublishedPort

func (m *Manager) GetPublishedPort(ctx context.Context) (int, error)

GetPublishedPort returns the host port mapped to the HAProxy frontend.

func (*Manager) UpdateConfig

func (m *Manager) UpdateConfig(ctx context.Context) error

UpdateConfig regenerates the HAProxy config from current control-plane nodes by recreating the container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL