Documentation ¶
Index ¶
- func InitializeConfig()
- type Config
- func (c *Config) FormatParameterStorePath(projectName, environmentName string) (string, error)
- func (c *Config) GetEnvironment(projectName, environmentName string) (*Environment, error)
- func (c *Config) GetProject(projectName string) (*Project, error)
- func (c *Config) PrintTable()
- func (c *Config) ValidateConfig() error
- type Environment
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeConfig ¶
func InitializeConfig()
Types ¶
type Config ¶
type Config struct { GlobalPrefix string `mapstructure:"global_prefix"` Projects map[string]Project `mapstructure:"projects"` }
Define the structs to match the updated YAML structure
func LoadConfig ¶
Standalone function to load the configuration from a file
func (*Config) FormatParameterStorePath ¶
func (*Config) GetEnvironment ¶
func (c *Config) GetEnvironment(projectName, environmentName string) (*Environment, error)
Method to get the environment path
func (*Config) ValidateConfig ¶
Function to validate the config
type Environment ¶
type Environment struct { Prefix string `mapstructure:"prefix"` LocalPath string `mapstructure:"local_path"` }
func (*Environment) GetResolvedLocalPath ¶
func (e *Environment) GetResolvedLocalPath() string
type Project ¶
type Project struct { Prefix string `mapstructure:"prefix"` Environments map[string]Environment `mapstructure:"environments"` }
Click to show internal directories.
Click to hide internal directories.