Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProjectConfig ¶
func SaveProjectConfig(path string, config *ProjectConfig) error
SaveProjectConfig writes the project configuration to a file in YAML format
Types ¶
type AutoDetectConfig ¶
AutoDetectConfig holds settings for automatic service detection
type GlobalConfig ¶
type GlobalConfig struct {
LogPath string `yaml:"log_path"`
LogLevel string `yaml:"log_level"`
DefaultPort int `yaml:"default_port"`
CheckInterval int `yaml:"check_interval"` // seconds for the watcher
}
GlobalConfig represents the global configuration stored in ~/.lanup/config.yaml
func GetDefaultGlobalConfig ¶
func GetDefaultGlobalConfig() *GlobalConfig
GetDefaultGlobalConfig returns a GlobalConfig with default values
func LoadGlobalConfig ¶
func LoadGlobalConfig() (*GlobalConfig, error)
LoadGlobalConfig reads the global configuration from ~/.lanup/config.yaml
func (*GlobalConfig) Validate ¶
func (c *GlobalConfig) Validate() error
Validate checks if the GlobalConfig has valid values
type ProjectConfig ¶
type ProjectConfig struct {
Vars map[string]string `yaml:"vars"`
Output string `yaml:"output"`
AutoDetect AutoDetectConfig `yaml:"auto_detect"`
}
ProjectConfig represents the project-specific configuration stored in .lanup.yaml
func GetDefaultProjectConfig ¶
func GetDefaultProjectConfig() *ProjectConfig
GetDefaultProjectConfig returns a ProjectConfig with default values
func LoadProjectConfig ¶
func LoadProjectConfig(path string) (*ProjectConfig, error)
LoadProjectConfig reads the project configuration from .lanup.yaml in the current directory
func (*ProjectConfig) Validate ¶
func (c *ProjectConfig) Validate() error
Validate checks if the ProjectConfig has valid values