kusciaconfig

package
v0.0.0-...-fb0e841 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIServerConfig

func CheckAPIServerConfig(config *APIServerConfig) error

func CheckMasterConfig

func CheckMasterConfig(config *MasterConfig) error

func CheckServiceConfig

func CheckServiceConfig(config *ServiceConfig, name string) error

func CheckTLSConfig

func CheckTLSConfig(config *TLSConfig, name string) error

Types

type APIServerConfig

type APIServerConfig struct {
	KubeConfig string `yaml:"kubeconfig,omitempty"`
	Endpoint   string `yaml:"endpoint,omitempty"`
}

type MasterConfig

type MasterConfig struct {
	ServiceConfig     `yaml:",inline"`
	DatastoreEndpoint string           `yaml:"datastoreEndpoint,omitempty"`
	ClusterToken      string           `yaml:"clusterToken"`
	APIServer         *APIServerConfig `yaml:"apiserver,omitempty"`
	KusciaStorage     *ServiceConfig   `yaml:"kusciaStorage,omitempty"`
	KusciaAPI         *ServiceConfig   `yaml:"kusciaAPI,omitempty"`
	APIWhitelist      []string         `yaml:"apiWhitelist,omitempty"`
}

func (*MasterConfig) IsMaster

func (m *MasterConfig) IsMaster() bool

type ServiceConfig

type ServiceConfig struct {
	Endpoint  string     `yaml:"endpoint,omitempty"`
	TLSConfig *TLSConfig `yaml:"tls,omitempty"`
}

type TLSConfig

type TLSConfig struct {
	EnableTLS bool   `yaml:"enableTLS,omitempty"`
	CertFile  string `yaml:"certFile,omitempty"`
	CertData  string `yaml:"certData,omitempty"`
	KeyFile   string `yaml:"keyFile,omitempty"`
	KeyData   string `yaml:"keyData,omitempty"`
	CAData    string `yaml:"caData,omitempty"`
	CAFile    string `yaml:"caFile,omitempty"`
}

Jump to

Keyboard shortcuts

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