configs

package
v0.0.0-...-bd520fb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(configFile string, config *EdgeCloudConfig)

func PrintMinConfigAndExitIfRequested

func PrintMinConfigAndExitIfRequested(config interface{})

Types

type AiArtsAuthConfig

type AiArtsAuthConfig struct {
	Key string
}

type AuthConfig

type AuthConfig struct {
	AuthType   string
	AiArtsAuth AiArtsAuthConfig
}

type CloudHubConfig

type CloudHubConfig struct {
	Websocket WebsocketConfig
}

type ClusterConfig

type ClusterConfig struct {
	Id              int64
	Desc            string
	Domain          string
	KubeMaster      string
	KubeConfFile    string
	HarborAddress   string
	HarborProject   string
	HarborUser      string
	HarborPasswd    string
	DownloadAddress string
}

type DbConfig

type DbConfig struct {
	Username     string
	Password     string
	Host         string
	Port         int
	Database     string
	MaxOpenConns int
	MaxIdleConns int
}

type EdgeCloudConfig

type EdgeCloudConfig struct {
	DebugModel     bool
	Portal         PortalConfig
	ContainerImage ImageConfig
	CloudHub       CloudHubConfig
	Log            LogConfig
	Db             DbConfig
	Authentication AuthConfig
	Clusters       []ClusterConfig
}

func NewMinCloudConfig

func NewMinCloudConfig() *EdgeCloudConfig

NewMinCloudCoreConfig returns a min ClusterConfig object

type HttpConfig

type HttpConfig struct {
	Address string
	Port    int
	Enable  bool
}

type ImageConfig

type ImageConfig struct {
	ImageCheckerInterval int32
}

type LogConfig

type LogConfig struct {
	Level     logrus.Level
	WriteFile bool
	FileDir   string
	FileName  string
}

type PortalConfig

type PortalConfig struct {
	NodeCheckerInterval        int32
	ApplicationCheckerInterval int32
	Http                       HttpConfig
}

type WebsocketConfig

type WebsocketConfig struct {
	Address string
	Port    int
	Enable  bool
}

Jump to

Keyboard shortcuts

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