config

package
v0.0.0-...-d0eea72 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultKubeConfigPath

func GetDefaultKubeConfigPath() string

Types

type Config

type Config struct {
	InCluster             bool   `koanf:"in-cluster"`
	DevMode               bool   `koanf:"dev"`
	InsecureSsl           bool   `koanf:"insecure-ssl"`
	EnableHelm            bool   `koanf:"enable-helm"`
	EnableDynamicClusters bool   `koanf:"enable-dynamic-clusters"`
	Port                  uint   `koanf:"port"`
	KubeConfigPath        string `koanf:"kubeconfig"`
	StaticDir             string `koanf:"html-static-dir"`
	PluginsDir            string `koanf:"plugins-dir"`
	BaseURL               string `koanf:"base-url"`
	ProxyURLs             string `koanf:"proxy-urls"`
	OidcClientID          string `koanf:"oidc-client-id"`
	OidcClientSecret      string `koanf:"oidc-client-secret"`
	OidcIdpIssuerURL      string `koanf:"oidc-idp-issuer-url"`
	OidcScopes            string `koanf:"oidc-scopes"`
}

func Parse

func Parse(args []string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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