Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigLoading = errors.New("error while loading configuration")
)
Functions ¶
Types ¶
type BadgeDefinition ¶
type BadgeDefinition struct { BadgeDesc `mapstructure:",squash"` Target string `mapstructure:"target" help:"target URL to resolve badge data from"` Parameters map[string]string `mapstructure:"parameters" help:"Accepted parameters for the interface"` Examples []BadgeExample `mapstructure:"examples" help:"List of example badges to include"` Description string `mapstructure:"description"` }
type BadgeExample ¶ added in v0.0.3
type BadgeExample struct { Description string `mapstructure:"description" help:"description of the badge example"` Parameters map[string]string }
BadgeExample defines an example of a predefined badge. It can be used to present common badges on the main UI. Multiple examples can be defined.
type Config ¶
type Config struct {
PredefinedBadges map[string]BadgeDefinition `mapstructure:"predefined_badges"`
}
type URL ¶
URL is a custom URL type that allows validation at configuration load time.
func (*URL) MarshalText ¶
MarshalYAML implements the yaml.Marshaler interface for URLs.
func (*URL) UnmarshalText ¶
UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.
Click to show internal directories.
Click to hide internal directories.