options

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListenerOpts

type ListenerOpts interface {
	AuthTypes() []request.AuthType
	KubernetesControlPlaneURL() *url.URL
	IgnoredGroupNames() []string
	IgnoredImpersonationsGroups() []string
	ImpersonationGroupsRegexp() *regexp.Regexp
	PreferredUsernameClaim() string
	ReverseProxyTransport() (*http.Transport, error)
	BearerTokenFile() string
	BearerToken() string
	SkipImpersonationReview() bool
	TrustedProxyCIDRs() []*net.IPNet
	XFCCHeader() string
	AllowedPaths() []string
}

func NewKube

func NewKube(
	authTypes []request.AuthType,
	ignoredGroups []string,
	claimName string,
	config *rest.Config,
	ignoredImpersonationGroups []string,
	impersonationGroupsString string,
	skipImpersonationReview bool,
	trustedProxyCIDRStrings []string,
	xfcc_header string,
	allowedPaths []string,
) (ListenerOpts, error)

type ServerOptions

type ServerOptions interface {
	IsListeningTLS() bool
	ListeningPort() uint
	TLSCertificatePath() string
	TLSCertificateKeyPath() string
	GetCertificateAuthorityPool() *x509.CertPool
}

func NewServer

func NewServer(isTLS bool, port uint, crtPath string, keyPath string, config *rest.Config) (ServerOptions, error)

Jump to

Keyboard shortcuts

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