config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Set

func Set(conf RpaasConfig)

Types

type ClusterConfig

type ClusterConfig struct {
	Name      string `json:"name"`
	Default   bool   `json:"default"`
	Address   string `json:"address"`
	Token     string `json:"token"`
	TokenFile string `json:"tokenFile"`
}

type RpaasConfig

type RpaasConfig struct {
	WebSocketAllowedOrigins              []string                   `json:"websocket-allowed-origins"`
	Clusters                             []ClusterConfig            `json:"clusters"`
	ConfigDenyPatterns                   []regexp.Regexp            `json:"config-deny-patterns"`
	ServiceName                          string                     `json:"service-name"`
	APIUsername                          string                     `json:"api-username"`
	APIPassword                          string                     `json:"api-password"`
	TLSCertificate                       string                     `json:"tls-certificate"`
	TLSKey                               string                     `json:"tls-key"`
	DefaultAffinity                      *corev1.Affinity           `json:"default-affinity"`
	TeamAffinity                         map[string]corev1.Affinity `json:"team-affinity"`
	SyncInterval                         time.Duration              `json:"sync-interval"`
	DashboardTemplate                    string                     `json:"dashboard-template"`
	DefaultCertManagerIssuer             string                     `json:"default-cert-manager-issuer"`
	LoadBalancerNameLabelKey             string                     `json:"loadbalancer-name-label-key"`
	WebSocketHandshakeTimeout            time.Duration              `json:"websocket-handshake-timeout"`
	WebSocketReadBufferSize              int                        `json:"websocket-read-buffer-size"`
	WebSocketWriteBufferSize             int                        `json:"websocket-write-buffer-size"`
	WebSocketPingInterval                time.Duration              `json:"websocket-ping-interval"`
	WebSocketMaxIdleTime                 time.Duration              `json:"websocket-max-idle-time"`
	WebSocketWriteWait                   time.Duration              `json:"websocket-write-wait"`
	SuppressPrivateKeyOnCertificatesList bool                       `json:"suppress-private-key-on-certificates-list"`
	MultiCluster                         bool                       `json:"multi-cluster"`
	NamespacedInstances                  bool                       `json:"namespaced-instances"`
	EnableCertManager                    bool                       `json:"enable-cert-manager"`
}

func Get

func Get() RpaasConfig

Jump to

Keyboard shortcuts

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