Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfig ¶ added in v0.3.0
func GetDefaultConfig() string
GetDefaultConfig returns the default config string
Types ¶
type CommentSectionNames ¶ added in v0.6.3
type CommentSectionNames struct {
Keys []string `ini:"key,omitempty,allowshadow"`
}
CommentSectionNames are the sections that will be ignored
type Config ¶
type Config struct { Name string Filename string `ini:"filename"` Environments *Environments `ini:"environments"` CommentSectionNames *CommentSectionNames `ini:"comments"` Created time.Time `ini:"-"` Expand bool `ini:"expand"` Isolated bool `ini:"isolated"` ExportEnvName string `ini:"export_environment"` ExportEnvNameOld string `ini:"exportEnvironment"` Meta *Meta `ini:"metadata"` Template *Template `ini:"template"` Ignored map[string][]string Required map[string][]string Restart bool `ini:"restart"` ExcludeFromRestart []string `ini:"restart_exclude"` RestartForever bool `ini:"restart_forever"` MaxRestarts int `ini:"max_restarts"` }
Config has the rc config options
func (*Config) MergeIgnored ¶ added in v0.4.0
MergeIgnored will merge ignored values from flags with values from envsetrc for a given section
func (*Config) MergeRequired ¶ added in v0.4.0
MergeRequired will merge ignored values from flags with values from envsetrc for a given section
func (*Config) RestartForEnv ¶ added in v0.6.4
RestartForEnv will return the restart value based on the env
type Environments ¶ added in v0.6.3
type Environments struct {
Names []string `ini:"name,omitempty,allowshadow"`
}
Environments holds the environment names
Click to show internal directories.
Click to hide internal directories.