configmap

package
v0.0.0-...-004a839 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pipe

func Pipe(f func(ctx *Context, errs []error) []error) reactive.Pipe

Pipe is a pipe which takes the output of a previous Pipe, works with received input and then again produces an output for the next Pipe

func Proxy

func Proxy() reactive.Pipe

func TLS

func TLS() reactive.Pipe

Types

type Context

type Context struct {
	// ACME configuration
	AcmeCA        string `json:"acmeCA,omitempty"`
	AcmeEABKeyId  string `json:"acmeEABKeyId,omitempty"`
	AcmeEABMacKey string `json:"acmeEABMacKey,omitempty"`
	AcmeEmail     string `json:"acmeEmail,omitempty"`

	// OnDemand TLS configuration
	OnDemandTLS               bool           `json:"onDemandTLS,omitempty"`
	OnDemandRateLimitInterval caddy.Duration `json:"onDemandTLSRateLimitInterval,omitempty"`
	OnDemandRateLimitBurst    int            `json:"onDemandTLSRateLimitBurst,omitempty"`
	OnDemandAsk               string         `json:"onDemandTLSAsk,omitempty"`
	OnDemandInternalAsk       bool           `json:"onDemandTLSInternalAsk,omitempty"`

	// Enable PROXY protocol support
	ProxyProtocol           bool     `json:"proxyProtocol,omitempty"`
	ProxyProtocolAllowedIPs []string `json:"proxyProtocolAllowedIPs,omitempty"`

	// General TLS Configuration
	OCSPCheckInterval caddy.Duration `json:"ocspCheckInterval,omitempty"`
}

func ParseConfigMap

func ParseConfigMap(cm *v1.ConfigMap) (*Context, error)

Jump to

Keyboard shortcuts

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