pkg/

directory
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0

Directories

Path Synopsis
apis
haproxytemplate/v1alpha1
Package v1alpha1 contains API Schema definitions for the haproxytemplate v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the haproxytemplate v1alpha1 API group.
Package compression provides zstd compression utilities for large configurations.
Package compression provides zstd compression utilities for large configurations.
Package controller provides the main controller orchestration for the HAProxy template ingress controller.
Package controller provides the main controller orchestration for the HAProxy template ingress controller.
buffers
Package buffers provides fixed buffer sizes for event subscriptions.
Package buffers provides fixed buffer sizes for event subscriptions.
coalesce
Package coalesce provides utilities for event coalescing in controller components.
Package coalesce provides utilities for event coalescing in controller components.
commentator
Package commentator provides the Event Commentator pattern for domain-aware logging.
Package commentator provides the Event Commentator pattern for domain-aware logging.
component
Package component provides a shared event-loop scaffold for controller components that subscribe on construction and dispatch one event at a time.
Package component provides a shared event-loop scaffold for controller components that subscribe on construction and dispatch one event at a time.
configtest
Package configtest runs a HAProxyTemplateConfig's embedded validationTests against an already-built engine, bounded by a timeout.
Package configtest runs a HAProxyTemplateConfig's embedded validationTests against an already-built engine, bounded by a timeout.
crdwatch
Package crdwatch reinitializes the controller when the CustomResourceDefinitions backing watched resources change.
Package crdwatch reinitializes the controller when the CustomResourceDefinitions backing watched resources change.
currentconfigstore
Package currentconfigstore provides a utility component for caching the parsed current HAProxy configuration from the HAProxyCfg CRD.
Package currentconfigstore provides a utility component for caching the parsed current HAProxy configuration from the HAProxyCfg CRD.
debug
Package debug provides controller-specific debug variable implementations.
Package debug provides controller-specific debug variable implementations.
deployer
Package deployer implements the Deployer component that deploys validated HAProxy configurations to discovered HAProxy pod endpoints.
Package deployer implements the Deployer component that deploys validated HAProxy configurations to discovered HAProxy pod endpoints.
discovery
Package discovery provides the Discovery event adapter component.
Package discovery provides the Discovery event adapter component.
dryrunvalidator
Package dryrunvalidator implements the DryRunValidator that performs dry-run reconciliation for webhook validation.
Package dryrunvalidator implements the DryRunValidator that performs dry-run reconciliation for webhook validation.
events
Package events contains all domain event type definitions for the HAPTIC controller.
Package events contains all domain event type definitions for the HAPTIC controller.
helpers
Package helpers provides shared utility functions for the controller layer.
Package helpers provides shared utility functions for the controller layer.
httpstore
Package httpstore provides the event adapter for HTTP resource fetching.
Package httpstore provides the event adapter for HTTP resource fetching.
indextracker
Package indextracker provides the IndexSynchronizationTracker that monitors resource watcher synchronization and publishes an event when all are synced.
Package indextracker provides the IndexSynchronizationTracker that monitors resource watcher synchronization and publishes an event when all are synced.
leadership
Package leadership provides utilities for handling leadership transitions in event-driven components.
Package leadership provides utilities for handling leadership transitions in event-driven components.
names
Package names provides well-known string constants used across the controller layer.
Package names provides well-known string constants used across the controller layer.
pipeline
Package pipeline provides the render-validate pipeline for HAProxy configuration.
Package pipeline provides the render-validate pipeline for HAProxy configuration.
pluggablevalidator
Package pluggablevalidator implements the controller-side client for the pluggable-validator-sidecar wire protocol.
Package pluggablevalidator implements the controller-side client for the pluggable-validator-sidecar wire protocol.
pluggablevalidator/testutil
Package testutil provides a fixture unix-socket server for exercising the pluggablevalidator client without spinning up a real haproxy-spoa-hub sidecar.
Package testutil provides a fixture unix-socket server for exercising the pluggablevalidator client without spinning up a real haproxy-spoa-hub sidecar.
proposalvalidator
Package proposalvalidator provides validation of hypothetical configuration changes.
Package proposalvalidator provides validation of hypothetical configuration changes.
reconciler
Package reconciler implements the Reconciler component that triggers reconciliation events on resource changes.
Package reconciler implements the Reconciler component that triggers reconciliation events on resource changes.
rendercontext
Package rendercontext provides a centralized builder for template rendering contexts.
Package rendercontext provides a centralized builder for template rendering contexts.
resourceapplier
Package resourceapplier reconciles template-declared Kubernetes resources via Server-Side Apply (SSA).
Package resourceapplier reconciles template-declared Kubernetes resources via Server-Side Apply (SSA).
resourceloader
Package resourceloader provides shared event loop infrastructure for loader components that watch a single resource type and parse/transform its data.
Package resourceloader provides shared event loop infrastructure for loader components that watch a single resource type and parse/transform its data.
resourcewatcher
Package resourcewatcher provides the ResourceWatcherComponent that creates and manages watchers for all Kubernetes resources defined in the controller configuration.
Package resourcewatcher provides the ResourceWatcherComponent that creates and manages watchers for all Kubernetes resources defined in the controller configuration.
statusapplier
Package statusapplier applies template-driven status patches to Kubernetes resources.
Package statusapplier applies template-driven status patches to Kubernetes resources.
testrunner
Package testrunner implements validation test execution for HAProxyTemplateConfig.
Package testrunner implements validation test execution for HAProxyTemplateConfig.
testutil
Package testutil provides shared test helpers for controller package tests.
Package testutil provides shared test helpers for controller package tests.
throttle
Package throttle provides leading-edge refractory throttle helpers used by controller components that bound their write rate to slow downstream systems (e.g.
Package throttle provides leading-edge refractory throttle helpers used by controller components that bound their write rate to slow downstream systems (e.g.
timeouts
Package timeouts provides shared timeout constants used across controller sub-packages.
Package timeouts provides shared timeout constants used across controller sub-packages.
timers
Package timers provides safe timer management for event-driven controller components.
Package timers provides safe timer management for event-driven controller components.
typebootstrap
Package typebootstrap orchestrates the typed-watched-resources pipeline at controller startup.
Package typebootstrap orchestrates the typed-watched-resources pipeline at controller startup.
validation
Package validation provides pure validation services for HAProxy configuration.
Package validation provides pure validation services for HAProxy configuration.
webhook
Package webhook provides the webhook adapter component that bridges the pure webhook library to the event-driven controller architecture.
Package webhook provides the webhook adapter component that bridges the pure webhook library to the event-driven controller architecture.
core
config
Package config provides configuration loading and validation.
Package config provides configuration loading and validation.
logging
Package logging provides structured logging setup using Go's standard library log/slog package.
Package logging provides structured logging setup using Go's standard library log/slog package.
Package dataplane provides a simple, high-level API for synchronizing HAProxy configurations via the Dataplane API.
Package dataplane provides a simple, high-level API for synchronizing HAProxy configurations via the Dataplane API.
auxiliaryfiles
Package auxiliaryfiles provides functionality for synchronizing auxiliary files (general files, SSL certificates, map files, crt-lists) with the HAProxy Dataplane API.
Package auxiliaryfiles provides functionality for synchronizing auxiliary files (general files, SSL certificates, map files, crt-lists) with the HAProxy Dataplane API.
client
Package client provides a high-level wrapper around the generated HAProxy Dataplane API client.
Package client provides a high-level wrapper around the generated HAProxy Dataplane API client.
comparator
Package comparator provides comparison functions for HAProxy Enterprise Edition sections.
Package comparator provides comparison functions for HAProxy Enterprise Edition sections.
comparator/sections
Package sections provides factory functions for creating HAProxy configuration operations.
Package sections provides factory functions for creating HAProxy configuration operations.
dataplanetest
Package dataplanetest provides test doubles for pkg/dataplane.
Package dataplanetest provides test doubles for pkg/dataplane.
parser
Package parser provides HAProxy configuration parsing using client-native library.
Package parser provides HAProxy configuration parsing using client-native library.
parser/enterprise
Package enterprise provides HAProxy Enterprise Edition configuration parsing.
Package enterprise provides HAProxy Enterprise Edition configuration parsing.
parser/enterprise/parsers
Package parsers provides wrapper parsers for HAProxy Enterprise Edition directives.
Package parsers provides wrapper parsers for HAProxy Enterprise Edition directives.
parser/parserconfig
Package parserconfig provides canonical configuration types for HAProxy parsing.
Package parserconfig provides canonical configuration types for HAProxy parsing.
parser/sectionextract
Package sectionextract extracts standard (Community Edition) HAProxy sections from a client-native config-parser into a parserconfig.StructuredConfig.
Package sectionextract extracts standard (Community Edition) HAProxy sections from a client-native config-parser into a parserconfig.StructuredConfig.
validators
Package validators provides zero-allocation OpenAPI validation for HAProxy models.
Package validators provides zero-allocation OpenAPI validation for HAProxy models.
Package events provides an event bus for component coordination in the HAPTIC controller.
Package events provides an event bus for component coordination in the HAPTIC controller.
ringbuffer
Package ringbuffer provides a thread-safe generic ring buffer implementation.
Package ringbuffer provides a thread-safe generic ring buffer implementation.
generated
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/haproxytemplate/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/haproxytemplate/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
dataplaneapi/v30
Package v30 provides primitives to interact with the openapi HTTP API.
Package v30 provides primitives to interact with the openapi HTTP API.
dataplaneapi/v30ee
Package v30ee provides primitives to interact with the openapi HTTP API.
Package v30ee provides primitives to interact with the openapi HTTP API.
dataplaneapi/v31
Package v31 provides primitives to interact with the openapi HTTP API.
Package v31 provides primitives to interact with the openapi HTTP API.
dataplaneapi/v31ee
Package v31ee provides primitives to interact with the openapi HTTP API.
Package v31ee provides primitives to interact with the openapi HTTP API.
dataplaneapi/v32
Package v32 provides primitives to interact with the openapi HTTP API.
Package v32 provides primitives to interact with the openapi HTTP API.
dataplaneapi/v32ee
Package v32ee provides primitives to interact with the openapi HTTP API.
Package v32ee provides primitives to interact with the openapi HTTP API.
dataplaneapi/v33
Package v33 provides primitives to interact with the openapi HTTP API.
Package v33 provides primitives to interact with the openapi HTTP API.
validators
Package genvalidators holds the machine-generated zero-allocation OpenAPI validators and hashers for every supported HAProxy DataPlane API version.
Package genvalidators holds the machine-generated zero-allocation OpenAPI validators and hashers for every supported HAProxy DataPlane API version.
Package httpstore provides HTTP resource fetching with caching and validation.
Package httpstore provides HTTP resource fetching with caching and validation.
Package introspection provides a generic debug variable registry and HTTP server for exposing application internal state over HTTP.
Package introspection provides a generic debug variable registry and HTTP server for exposing application internal state over HTTP.
k8s
client
Package client provides a wrapper around the Kubernetes client-go library.
Package client provides a wrapper around the Kubernetes client-go library.
indexer
Package indexer provides functionality for extracting index keys from Kubernetes resources and filtering fields based on JSONPath expressions.
Package indexer provides functionality for extracting index keys from Kubernetes resources and filtering fields based on JSONPath expressions.
schemafetcher
Package schemafetcher fetches OpenAPI v3 schemas for each watched Kubernetes resource and hands them to pkg/k8s/typegen for runtime type generation.
Package schemafetcher fetches OpenAPI v3 schemas for each watched Kubernetes resource and hands them to pkg/k8s/typegen for runtime type generation.
store
Package store provides storage implementations for indexed Kubernetes resources.
Package store provides storage implementations for indexed Kubernetes resources.
typegen
Package typegen translates OpenAPI v3 schemas into runtime reflect.Type values that Scriggo templates can consume with full compile-time field safety.
Package typegen translates OpenAPI v3 schemas into runtime reflect.Type values that Scriggo templates can consume with full compile-time field safety.
types
Package types defines core interfaces and types for the k8s package.
Package types defines core interfaces and types for the k8s package.
watcher
Package watcher provides Kubernetes resource watching with indexing, field filtering, and debounced callbacks.
Package watcher provides Kubernetes resource watching with indexing, field filtering, and debounced callbacks.
Package lifecycle provides component lifecycle management for the controller.
Package lifecycle provides component lifecycle management for the controller.
Package stores provides abstractions for accessing and composing resource stores.
Package stores provides abstractions for accessing and composing resource stores.
storetest
Package storetest provides shared mock implementations of stores.Store for testing.
Package storetest provides shared mock implementations of stores.Store for testing.
Package templating provides template rendering capabilities using the Scriggo template engine.
Package templating provides template rendering capabilities using the Scriggo template engine.
Package webhook provides a pure library for Kubernetes admission webhooks.
Package webhook provides a pure library for Kubernetes admission webhooks.

Jump to

Keyboard shortcuts

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