config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiteServerConfig

type LiteServerConfig struct {
	// lite-server default ca path for kubernetes apiserver
	// CAFile defines the certificate authority
	// that servers use if required to verify a client certificate(e.g. kubelet, kube-proxy).
	// the same with client-ca-file of kube-apiserver
	CAFile string
	// CertFile the tls cert file for lite-apiserver's https server
	CertFile string
	// KeyFile  the tls key file for lite-apiserver's https server
	KeyFile string

	// ApiserverCAFile used to verify kube-apiserver server tls.
	// use CAFile if ApiserverCAFile is not assigned.
	ApiserverCAFile string

	KubeApiserverUrl  string
	KubeApiserverPort int

	// the address list of lite-apiserver listen
	ListenAddress []string
	// Port the https port of lite-apiserver
	Port int

	// BackendTimeout timeout for the request from lite-apiserver to kube-apiserver.
	// if <=0, use default timeout
	BackendTimeout int

	// Profiling pprof for the lite-apiserver.
	// default false
	Profiling bool

	TLSConfig []TLSKeyPair

	ModifyRequestAccept bool

	CacheType         string
	FileCachePath     string
	BadgerCachePath   string
	BoltCacheFile     string
	PebbleCachePath   string
	NetworkInterface  string
	Insecure          bool
	URLMultiplexCache []string
}

type TLSKeyPair

type TLSKeyPair struct {
	CertPath string `json:"cert"`
	KeyPath  string `json:"key"`
}

Jump to

Keyboard shortcuts

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