github

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	APIURL: github_exporter.DefaultConfig.APIURL,
}

DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from Alloy.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	APIURL                  string            `alloy:"api_url,attr,optional"`
	Repositories            []string          `alloy:"repositories,attr,optional"`
	Organizations           []string          `alloy:"organizations,attr,optional"`
	Users                   []string          `alloy:"users,attr,optional"`
	APIToken                alloytypes.Secret `alloy:"api_token,attr,optional"`
	APITokenFile            string            `alloy:"api_token_file,attr,optional"`
	GitHubAppKeyPath        string            `alloy:"github_app_key_path,attr,optional"`
	GitHubAppID             int64             `alloy:"github_app_id,attr,optional"`
	GitHubAppInstallationID int64             `alloy:"github_app_installation_id,attr,optional"`
	GitHubRateLimit         float64           `alloy:"github_rate_limit,attr,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *github_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

Jump to

Keyboard shortcuts

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