cfg

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth added in v0.2.0

type BasicAuth struct {
	User     string `toml:"user"`
	Password string `toml:"password"`
}

type CI added in v0.2.0

type CI struct {
	ServerURL string    `toml:"server_url"`
	BasicAuth BasicAuth `toml:"basic_auth"`
	Jobs      []CIJob   `toml:"job"`
}

type CIJob added in v0.2.0

type CIJob struct {
	URLPath       string            `toml:"url_path"`
	Parameters    map[string]string `toml:"parameters"`
	GithubContext string            `toml:"github_context"`
}

type Config

type Config struct {
	HTTPListenAddr  string `toml:"http_server_listen_addr"`
	HTTPSListenAddr string `toml:"https_server_listen_addr"`
	HTTPSCertFile   string `toml:"https_ssl_cert_file"`
	HTTPSKeyFile    string `toml:"https_ssl_key_file"`

	WebInterfaceEndpoint string `toml:"webinterface_endpoint"`

	HTTPGithubWebhookEndpoint string `toml:"github_webhook_endpoint"`
	GithubWebHookSecret       string `toml:"github_webhook_secret"`
	GithubAPIToken            string `toml:"github_api_token"`

	PrometheusMetricsEndpoint string `toml:"prometheus_metrics_endpoint"`

	LogFormat  string `toml:"log_format"`
	LogTimeKey string `toml:"log_time_key"`
	LogLevel   string `toml:"log_level"`

	TriggerOnAutoMerge bool               `toml:"trigger_on_auto_merge"`
	TriggerOnLabels    []string           `toml:"trigger_labels"`
	HeadLabel          string             `toml:"queue_pr_head_label"`
	Repositories       []GithubRepository `toml:"repository"`
	CI                 CI                 `toml:"ci"`
}

func Load

func Load(reader io.Reader) (*Config, error)

func (*Config) Marshal

func (r *Config) Marshal(writer io.Writer) error

type GithubRepository

type GithubRepository struct {
	Owner          string `toml:"owner"`
	RepositoryName string `toml:"repository"`
}

Jump to

Keyboard shortcuts

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