github

package
v0.32.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (c *Config) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements River unmarshalling for Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL