currentconfigstore

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package currentconfigstore provides a utility component for caching the parsed current HAProxy configuration from the HAProxyCfg CRD.

This is a utility component that can be called directly without events. It follows the codebase's utility component pattern for infrastructure concerns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store holds the parsed current HAProxy configuration. This is a utility component that can be called directly without events.

func New

func New(logger *slog.Logger) (*Store, error)

New creates a new CurrentConfigStore.

func (*Store) Get

Get returns the current parsed config (may be nil).

func (*Store) Update

func (s *Store) Update(resource interface{})

Update parses and stores the config from an unstructured HAProxyCfg resource. Pass nil to clear the stored config.

Jump to

Keyboard shortcuts

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