config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Global  GlobalConfig   `json:"global"`
	Folders []FolderConfig `json:"folders"`
}

Config ...

func LoadConfig

func LoadConfig(configPath string) (Config, error)

LoadConfig ...

type FolderConfig

type FolderConfig struct {
	LocalRoot  string   `json:"local-root"`
	RemoteRoot string   `json:"remote-root"`
	Apps       []string `json:"apps"`
}

FolderConfig ...

type GlobalConfig

type GlobalConfig struct {
	EventListenInterval   float64 `json:"event-listen-iterval"`
	NameSpace             string  `json:"namespace"`
	KubectlPath           string  `json:"kubectl-path"`
	UpdatePodListInterval int     `json:"update-pod-list-interval"`
	AllowProduction       bool    `json:"allow-production"`
	DieIfError            bool    `json:"die-if-error"`
}

GlobalConfig ...

Jump to

Keyboard shortcuts

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