Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CRLF = []byte{13, 10} LF = []byte{10} )
Functions ¶
func ConvertFileToCRLF ¶
ConvertFileToCRLF converts line endings in a file to CRLF.
func InitConfig ¶
func InitConfig() error
InitConfig will initialize the configuration from environment variables. This will set 'SlackConfig' to the loaded configuration.
Types ¶
type Config ¶
type Config struct { // Required configuration AccessToken string Channels string // Trigger matching BranchPattern string TagPattern string EventToSendMessage string JobBranch string JobStatus string JobTag string // Flags Debug bool IgnoreErrors string InvertMatch string // Message template TemplateInline string TemplateName string TemplatePath string TemplateVar string // Overridable for testing SlackAPIBaseUrl string }
Config represents the configuration loaded from environment variables.
var SlackConfig Config
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.