Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllConfigTypes = map[ConfigType]bool{COMPONENT: true, ENVIRONMENT: true}
Functions ¶
Types ¶
type Coco ¶
type Coco struct { Type ConfigType `yaml:"type" doc:"msg=type of the configuration file,req,o=environment,o=component"` Values []string `yaml:"values" doc:"msg=list relative paths to config files, req=for environments only"` Name string `yaml:"name" doc:"msg=name of component or environment,req"` Dependencies []string `yaml:"dependencies" doc:"msg=list of components that this component depends on, req=for components only"` }
Coco struct contains keys for both components and environments. Unused fields are set nil by the unmarshal function
func Load ¶
Receives a file path and reads the byte content into a Coco struct File should be a yaml containing at least a valid type key
func (*Coco) IsComponent ¶
func (*Coco) IsEnvironment ¶
type ConfigType ¶
type ConfigType string
Types of config files. Needs to be maintained manually together with the corresponding check functions.
const ( COMPONENT ConfigType = "component" ENVIRONMENT ConfigType = "environment" )
Click to show internal directories.
Click to hide internal directories.