config

package
v0.0.0-...-0de2bea Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobnetesConfig *_JobnetesConfig

Functions

func InitConfig

func InitConfig()

Types

type DbConfig

type DbConfig struct {
	User     string
	Password string
	Host     string
	Port     int
}

func LoadDbConfig

func LoadDbConfig() *DbConfig

type JobApiConfig

type JobApiConfig struct {
	Port     uint
	Username string
	Password string
}

func LoadJobApiConfig

func LoadJobApiConfig() *JobApiConfig

type KubernetesConfig

type KubernetesConfig struct {
	InCluster    bool
	ConfigPath   string
	MasterUrl    string
	JobNamespace string
}

func LoadKubernetesConfig

func LoadKubernetesConfig() *KubernetesConfig

type LogConfig

type LogConfig struct {
	LogLevel logrus.Level
}

func LoadLogConfig

func LoadLogConfig() *LogConfig

type WebAdminConfig

type WebAdminConfig struct {
	Port     uint
	Username string
	Password string
}

func LoadWebAdminConfig

func LoadWebAdminConfig() *WebAdminConfig

Jump to

Keyboard shortcuts

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