Documentation
¶
Index ¶
- Variables
- func CheckInSlice(compareTo []string, from string) bool
- func CheckViperErr(err error) error
- func InitConfig(yamlAddr *string)
- func LoadConfigFromYaml(configFile string) (*viper.Viper, error)
- type ApplicationSettings
- type BuildInfo
- type Repo
- type Settings
- type Total
- type TriggerInfo
- type WorkspaceSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplicationConfig = new(ApplicationSettings)
View Source
var WorkspaceConfig = new(WorkspaceSettings)
View Source
var YamlConfig = &Total{ Settings: Settings{ Application: ApplicationConfig, Workspace: WorkspaceConfig, }, }
Functions ¶
func CheckInSlice ¶
CheckInSlice check if element is in slice.
func CheckViperErr ¶
CheckViperErr give explanation of error and a bool of whether error exists.
func InitConfig ¶ added in v0.2.2
func InitConfig(yamlAddr *string)
InitConfig loads config from yaml.
Types ¶
type ApplicationSettings ¶
type Settings ¶
type Settings struct { Application *ApplicationSettings `yaml:"application"` Workspace *WorkspaceSettings `yaml:"workspace"` }
type TriggerInfo ¶ added in v0.3.1
type WorkspaceSettings ¶
Click to show internal directories.
Click to hide internal directories.