Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultControllerName = "pomerium-certificate"
DefaultControllerName is the default controller name.
Functions ¶
func GetInClusterNamespace ¶
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.
type Option ¶
type Option func(cfg *controllerConfig)
An Option customizes the config.
func WithControllerName ¶
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 ¶
WithNamespace sets the namespace option in the config.
Click to show internal directories.
Click to hide internal directories.