supervisor

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package supervisor contains functionality to load/store Config's from/to some source.

Index

Constants

View Source
const (
	NetworkDisabled = "disabled"
	NetworkUnix     = "unix"
	NetworkTCP      = "tcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIGroupSuffix *string           `json:"apiGroupSuffix,omitempty"`
	Labels         map[string]string `json:"labels"`
	NamesConfig    NamesConfigSpec   `json:"names"`
	// Deprecated: use log.level instead
	LogLevel          *plog.LogLevel     `json:"logLevel"`
	Log               plog.LogSpec       `json:"log"`
	Endpoints         *Endpoints         `json:"endpoints"`
	AllowExternalHTTP stringOrBoolAsBool `json:"insecureAcceptExternalUnencryptedHttpRequests"`
}

Config contains knobs to setup an instance of the Pinniped Supervisor.

func FromPath

func FromPath(ctx context.Context, path string) (*Config, error)

FromPath loads an Config from a provided local file path, inserts any defaults (from the Config documentation), and verifies that the config is valid (Config documentation).

type Endpoint added in v0.13.0

type Endpoint struct {
	Network string `json:"network"`
	Address string `json:"address"`
}

type Endpoints added in v0.13.0

type Endpoints struct {
	HTTPS *Endpoint `json:"https,omitempty"`
	HTTP  *Endpoint `json:"http,omitempty"`
}

type NamesConfigSpec

type NamesConfigSpec struct {
	DefaultTLSCertificateSecret string `json:"defaultTLSCertificateSecret"`
}

NamesConfigSpec configures the names of some Kubernetes resources for the Supervisor.

Jump to

Keyboard shortcuts

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