supervisor

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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"
)
View Source
const (
	Enabled  = "enabled"
	Disabled = "disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditInternalPaths added in v0.36.0

type AuditInternalPaths string

func (AuditInternalPaths) Enabled added in v0.36.0

func (l AuditInternalPaths) Enabled() bool

type AuditSpec added in v0.36.0

type AuditSpec struct {
	LogInternalPaths      AuditInternalPaths      `json:"logInternalPaths"`
	LogUsernamesAndGroups AuditUsernamesAndGroups `json:"logUsernamesAndGroups"`
}

type AuditUsernamesAndGroups added in v0.36.0

type AuditUsernamesAndGroups string

func (AuditUsernamesAndGroups) Enabled added in v0.36.0

func (l AuditUsernamesAndGroups) Enabled() bool

type Config

type Config struct {
	APIGroupSuffix          *string           `json:"apiGroupSuffix,omitempty"`
	Labels                  map[string]string `json:"labels"`
	NamesConfig             NamesConfigSpec   `json:"names"`
	Log                     plog.LogSpec      `json:"log"`
	Endpoints               *Endpoints        `json:"endpoints"`
	AggregatedAPIServerPort *int64            `json:"aggregatedAPIServerPort"`
	TLS                     TLSSpec           `json:"tls"`
	Audit                   AuditSpec         `json:"audit"`
}

Config contains knobs to set up an instance of the Pinniped Supervisor.

func FromPath

func FromPath(ctx context.Context, path string, setAllowedCiphers ptls.SetAllowedCiphersFunc) (*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"`
	APIService                  string `json:"apiService"`
}

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

type TLSProtocolSpec added in v0.32.0

type TLSProtocolSpec struct {
	// AllowedCiphers will permit Pinniped to use only the listed ciphers.
	// This affects Pinniped both when it acts as a client and as a server.
	// If empty, Pinniped will use a built-in list of ciphers.
	AllowedCiphers []string `json:"allowedCiphers"`
}

type TLSSpec added in v0.32.0

type TLSSpec struct {
	OneDotTwo TLSProtocolSpec `json:"onedottwo"`
}

Jump to

Keyboard shortcuts

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