Help us shape the future of Go! Take the 2026 Go Developer Survey

gateway

package
v0.33.6 Latest Latest
Warning

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

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

Documentation

Overview

Package gateway contains controllers for Gateway API objects.

Index

Constants

View Source
const DefaultClassControllerName = "pomerium.io/gateway-controller"

DefaultClassControllerName is the default GatewayClass ControllerName.

Variables

This section is empty.

Functions

func NewControllers

func NewControllers(
	ctx context.Context,
	mgr ctrl.Manager,
	pgr pomerium.GatewayReconciler,
	config ControllerConfig,
) error

NewControllers sets up GatewayClass and Gateway controllers.

func NewGatewayClassController

func NewGatewayClassController(
	mgr ctrl.Manager,
	controllerName string,
) error

NewGatewayClassController creates and registers a new controller for GatewayClass objects. This controller does just one thing: it sets the "Accepted" status condition.

func NewGatewayController

func NewGatewayController(
	ctx context.Context,
	mgr ctrl.Manager,
	pgr pomerium.GatewayReconciler,
	config ControllerConfig,
) error

NewGatewayController creates and registers a new controller for Gateway objects.

Types

type ControllerConfig

type ControllerConfig struct {
	// ControllerName associates this controller with a GatewayClass.
	ControllerName string
	// Gateway addresses are determined from this service.
	ServiceName types.NamespacedName
}

ControllerConfig contains configuration options for the Gateway controller.

Jump to

Keyboard shortcuts

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