config

package
v0.0.0-...-efa7448 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigKey

func GetConfigKey() string

func InitDashboardConfig

func InitDashboardConfig(k8sClient kubernetes.Interface, stopper <-chan struct{})

func InitDashboardConfigFromMountFile

func InitDashboardConfigFromMountFile(mountPath string) error

func UpdateDashboardConfig

func UpdateDashboardConfig(k8sClient kubernetes.Interface, newDashboardConfig DashboardConfig) error

Types

type ChartRegistry

type ChartRegistry struct {
	Name     string `yaml:"name" json:"name"`
	Url      string `yaml:"url" json:"url"`
	User     string `yaml:"user" json:"user"`
	Password string `yaml:"password" json:"password"`
	AddTime  int64  `yaml:"add_time" json:"add_time"`
}

type DashboardConfig

type DashboardConfig struct {
	DockerRegistries []DockerRegistry `yaml:"docker_registries" json:"docker_registries"`
	ChartRegistries  []ChartRegistry  `yaml:"chart_registries" json:"chart_registries"`
	MenuConfigs      []MenuConfig     `yaml:"menu_configs" json:"menu_configs"`
	PathPrefix       string           `yaml:"path_prefix" json:"path_prefix"`
}

func GetDashboardConfig

func GetDashboardConfig() DashboardConfig

type DockerRegistry

type DockerRegistry struct {
	Name     string `yaml:"name" json:"name"`
	Url      string `yaml:"url" json:"url"`
	User     string `yaml:"user" json:"user"`
	Password string `yaml:"password" json:"password"`
	AddTime  int64  `yaml:"add_time" json:"add_time"`
}
type MenuConfig struct {
	Path       string       `yaml:"path" json:"path"`
	Enable     bool         `yaml:"enable" json:"enable"`
	SidebarKey string       `yaml:"sidebar_key" json:"sidebar_key"`
	Children   []MenuConfig `yaml:"children" json:"children,omitempty"`
}

Jump to

Keyboard shortcuts

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