controller

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package controller implements Pomerium managed mode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts ...Option) error

Run runs Pomerium is managed mode using the provided token.

Types

type Option

type Option func(*controllerConfig)

Option configures a controller.

func WithAPIToken

func WithAPIToken(token string) Option

WithAPIToken sets the API token to use for authentication.

func WithBootstrapConfigFileName

func WithBootstrapConfigFileName(name string) Option

WithBootstrapConfigFileName sets the name of the file to store the bootstrap config in.

func WithClusterAPIEndpoint

func WithClusterAPIEndpoint(endpoint string) Option

WithClusterAPIEndpoint sets the endpoint to use for the cluster API

func WithConnectAPIEndpoint

func WithConnectAPIEndpoint(endpoint string) Option

WithConnectAPIEndpoint sets the endpoint to use for the connect API

func WithDatabrokerLeaseDuration

func WithDatabrokerLeaseDuration(duration time.Duration) Option

WithDatabrokerLeaseDuration sets the lease duration for the

func WithDatabrokerRequestTimeout

func WithDatabrokerRequestTimeout(timeout time.Duration) Option

WithDatabrokerRequestTimeout sets the timeout for databroker requests.

func WithOTELAPIEndpoint

func WithOTELAPIEndpoint(endpoint string) Option

WithOTELAPIEndpoint sets the endpoint to use for the OTEL API

func WithTmpDir

func WithTmpDir(dir string) Option

WithTmpDir sets the temporary directory to use.

Jump to

Keyboard shortcuts

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