Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
}
Config provides the system configuration.
func FromEnviron ¶
FromEnviron returns the settings from the environment.
type Runner ¶
type Runner struct {
UUID string `ignored:"true"`
Name string `envconfig:"GITEA_RUNNER_NAME"`
Token string `ignored:"true"`
RunnerWorker []string `envconfig:"GITEA_RUNNER_WORKER"`
Capacity int `envconfig:"GITEA_RUNNER_CAPACITY"`
File string `envconfig:"GITEA_RUNNER_FILE" default:".runner"`
Environ map[string]string `envconfig:"GITEA_RUNNER_ENVIRON"`
EnvFile string `envconfig:"GITEA_RUNNER_ENV_FILE"`
Labels []string `envconfig:"GITEA_RUNNER_LABELS"`
Ephemeral bool `ignored:"true"`
}
Click to show internal directories.
Click to hide internal directories.