Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvFromFile ¶
LoadEnvFromFile loads environment variables from a specified file.
Types ¶
type Config ¶
type Config struct { AccessToken string BranchPattern string ChannelsStr string EnvVarContainingTemplate string EventToSendMessage string InlineTemplate string InvertMatchStr string JobBranch string JobStatus string JobTag string TagPattern string IgnoreErrorsStr string }
Config represents the configuration loaded from environment variables.
func (*Config) ExpandEnvVariables ¶
ExpandEnvVariables expands environment variables in the configuration values.
type EnvVarError ¶
type EnvVarError struct {
VarName string
}
func (*EnvVarError) Error ¶
func (e *EnvVarError) Error() string
type ExpansionError ¶
func (*ExpansionError) Error ¶
func (e *ExpansionError) Error() string
Click to show internal directories.
Click to hide internal directories.