Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ APIURL: github_exporter.DefaultConfig.APIURL, }
DefaultConfig holds non-zero default options for the Config when it is unmarshaled from river.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIURL string `river:"api_url,attr,optional"`
Repositories []string `river:"repositories,attr,optional"`
Organizations []string `river:"organizations,attr,optional"`
Users []string `river:"users,attr,optional"`
APIToken rivertypes.Secret `river:"api_token,attr,optional"`
APITokenFile string `river:"api_token_file,attr,optional"`
}
func (*Config) Convert ¶
func (c *Config) Convert() *github_exporter.Config
func (*Config) UnmarshalRiver ¶
UnmarshalRiver implements River unmarshalling for Config.
Click to show internal directories.
Click to hide internal directories.