Documentation
¶
Index ¶
Constants ¶
View Source
const ( VCAP_SERVICES = "VCAP_SERVICES" VCAP_APPLICATION = "VCAP_APPLICATION" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseInfo ¶
type Components ¶
type Components []Component
func (Components) Inline ¶
func (cs Components) Inline() []string
func (Components) Regroups ¶
func (cs Components) Regroups() map[string][]Component
type Config ¶
type Config struct {
Targets Targets `yaml:"targets"`
Listen string `yaml:"listen"`
Log *Log `yaml:"log"`
Components Components `yaml:"components"`
BaseInfo *BaseInfo `yaml:"base_info"`
Username string `yaml:"username"`
Password string `yaml:"password"`
TlsConfig *TlsConfig `yaml:"tls"`
CookieKey string `yaml:"cookie_key"`
Notifiers []Notifier `yaml:"notifiers"`
Theme *Theme `yaml:"theme"`
}
func LoadConfig ¶
func LoadConfigFromEnv ¶
func LoadConfigFromFile ¶
type ForComponent ¶
type ForComponent struct {
RequireAll bool `yaml:"require_all"`
GroupMatch []string `yaml:"groups"`
NameMatch []string `yaml:"names"`
}
func (ForComponent) MatchComponent ¶
func (lm ForComponent) MatchComponent(component models.Component) bool
func (ForComponent) MatchComponents ¶
func (lm ForComponent) MatchComponents(components models.Components) bool
type Log ¶
type Notifier ¶
type Notifier struct {
For ForComponent `yaml:"for"`
Type string `yaml:"type"`
Params map[string]interface{} `yaml:"params"`
}
type Theme ¶
type Theme struct {
PreStatus string `yaml:"pre_status"`
PostStatus string `yaml:"post_status"`
PreTimeline string `yaml:"pre_timeline"`
PostTimeline string `yaml:"post_timeline"`
PreMaintenance string `yaml:"pre_maintenance"`
PostMaintenance string `yaml:"post_maintenance"`
PersistentDisplayName string `yaml:"persistent_display_name"`
PrePersistent string `yaml:"pre_persistent"`
PostPersistent string `yaml:"post_persistent"`
}
Click to show internal directories.
Click to hide internal directories.