Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GitHub ProviderConfig `toml:"github"`
GitLab ProviderConfig `toml:"gitlab"`
Bitbucket ProviderConfig `toml:"bitbucket"`
// Hosts configures individual git hosts, keyed by the host name as it
// appears in the remote URL (which may be an SSH alias).
Hosts map[string]HostConfig `toml:"hosts"`
}
type HostConfig ¶
type HostConfig struct {
ProviderConfig
// Provider is github, gitlab or bitbucket; setting it skips probing.
Provider string `toml:"provider"`
// WebURL is the web root, e.g. "https://example.com/gitlab"
// (default: https://<host>, or the origin of APIURL).
WebURL string `toml:"web_url"`
// APIURL is the REST API root, e.g. "https://example.com/gitlab/api/v4"
// (default: the provider's API below WebURL).
APIURL string `toml:"api_url"`
}
HostConfig describes one git host. Its credentials, if set, take precedence over the environment and the provider sections.
type ProviderConfig ¶
Click to show internal directories.
Click to hide internal directories.