certificate

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultControllerName = "pomerium-certificate"

DefaultControllerName is the default controller name.

Functions

func GetInClusterNamespace

func GetInClusterNamespace() (string, error)

GetInClusterNamespace returns the namespace of the pod the process is running in, as exposed by the kubernetes service account token volume.

func NewCertificateController

func NewCertificateController(
	mgr controllerruntime.Manager,
	dataBrokerClient databrokerpb.DataBrokerServiceClient,
	options ...Option,
)

NewCertificateController creates a new certificate controller.

Types

type Operation

type Operation interface {
	// Active returns true if the operation is currently active.
	Active() bool
	// Error returns any current error.
	Error() error
	// Reset resets the state of the operation. If there is an operation running
	// it will be stopped immediately.
	Reset()
	// Run runs the given function and waits for the result.
	Run(fn func(ctx context.Context) error) error
	// Start starts an operation in a goroutine. If there is already an operation
	// running it will be stopped immediately.
	Start(fn func(ctx context.Context) error)
	// Stop stops an operation and waits for the result.
	Stop() error
	// StopNow stops the operation immediately.
	StopNow()
	// Wait waits for the result of the operation.
	Wait() error
}

An Operation represents a long-running operation that can be stopped, monitored and restarted.

func NewOperation

func NewOperation() Operation

NewOperation creates a new Operation.

type Option

type Option func(cfg *controllerConfig)

An Option customizes the config.

func WithControllerName

func WithControllerName(controllerName string) Option

WithControllerName sets the controller name in the config.

func WithGlobalSettingsName

func WithGlobalSettingsName(globalSettingsName types.NamespacedName) Option

WithGlobalSettingsName sets the global settings name in the config.

func WithNamespace

func WithNamespace(namespace string) Option

WithNamespace sets the namespace option in the config.

Jump to

Keyboard shortcuts

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