config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Annotations = []Annotation{

	{
		Name:        "ssl-redirect",
		Description: fromNginx + "#server-side-https-enforcement-through-redirect)",
		// contains filtered or unexported fields
	},
	{
		Name:        "secure-backends",
		Description: "Make TLS connections to the upstream instead of plain HTTP. Initialy from ingress-nginx but removed from it, we still support it.",
		// contains filtered or unexported fields
	},
	{
		Name:        "whitelist-source-range",
		Description: fromNginx + "#whitelist-source-range)",
		// contains filtered or unexported fields
	},
}
View Source
var (
	Current = &Config{}
)

Functions

func Lock

func Lock()

func NotifyChanged

func NotifyChanged(callback NewConfigFunc)

func Unlock

func Unlock()

Types

type Annotation added in v1.1.4

type Annotation struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

type Backend

type Backend struct {
	IngressRef string
	Prefix     string
	Targets    []string

	Options BackendOptions
}

func NewBackend

func NewBackend(ingressRef, prefix string, targets ...string) *Backend

func (*Backend) HandlesPath

func (b *Backend) HandlesPath(path string) bool

func (*Backend) Target

func (b *Backend) Target() string

type BackendOptions

type BackendOptions struct {
	SSLRedirect          bool
	SecureBackends       bool
	WhitelistSourceRange []*net.IPNet
}

func (*BackendOptions) Get added in v1.2.1

func (o *BackendOptions) Get() map[string]interface{}

func (*BackendOptions) Set

func (o *BackendOptions) Set(key, value string) (bool, error)

type Backends

type Backends map[string][]*Backend

type Certificates

type Certificates map[string]*tls.Certificate

type Config

type Config struct {
	Errors       []string
	HostBackends Backends
	HostCerts    Certificates
	DefaultCert  *tls.Certificate
}

type NewConfigFunc

type NewConfigFunc func() Config

Jump to

Keyboard shortcuts

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