Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvGitHubAppID = "GITHUB_APP_ID" EnvGitHubAppSecret = "GITHUB_APP_SECRET" EnvGitHubAppPrivateKeyBase64 = "GITHUB_PRIVATE_KEY_BASE64" EnvMySQLHost = "MYSQL_HOST" EnvMySQLPort = "MYSQL_PORT" EnvMySQLUser = "MYSQL_USER" EnvMySQLPassword = "MYSQL_PASSWORD" EnvMySQLDatabase = "MYSQL_DATABASE" EnvMySQLURL = "MYSQL_URL" EnvPort = "PORT" EnvShoesPluginPath = "PLUGIN" EnvShoesPluginOutputPath = "PLUGIN_OUTPUT" EnvRunnerUser = "RUNNER_USER" EnvRunnerBaseDirectory = "RUNNER_BASE_DIRECTORY" EnvDebug = "DEBUG" EnvStrict = "STRICT" EnvModeWebhookType = "MODE_WEBHOOK_TYPE" EnvMaxConnectionsToBackend = "MAX_CONNECTIONS_TO_BACKEND" EnvMaxConcurrencyDeleting = "MAX_CONCURRENCY_DELETING" EnvGitHubURL = "GITHUB_URL" EnvRunnerVersion = "RUNNER_VERSION" EnvDockerHubUsername = "DOCKER_HUB_USERNAME" EnvDockerHubPassword = "DOCKER_HUB_PASSWORD" EnvProvideDockerHubMetrics = "PROVIDE_DOCKER_HUB_METRICS" )
Config Environment keys
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶
type Conf struct {
GitHub GitHubApp
MySQLDSN string
Port int
ShoesPluginPath string
ShoesPluginOutputPath string
RunnerUser string
RunnerBaseDirectory string
Debug bool
Strict bool // check to registered runner before delete job
ModeWebhookType ModeWebhookType
MaxConnectionsToBackend int64
MaxConcurrencyDeleting int64
GitHubURL string
RunnerVersion string
DockerHubCredential DockerHubCredential
ProvideDockerHubMetrics bool
}
Conf is type of Config
var Config Conf
Config is config value
func LoadWithDefault ¶
func LoadWithDefault() Conf
LoadWithDefault load only value that has default value
type DockerHubCredential ¶ added in v1.16.3
DockerHubCredential is type of config value
type GitHubApp ¶
type GitHubApp struct {
AppID int64
AppSecret []byte
PEMByte []byte
PEM *rsa.PrivateKey
}
GitHubApp is type of config value
type ModeWebhookType ¶
type ModeWebhookType int
ModeWebhookType is type value for GitHub webhook
const ( // ModeWebhookTypeUnknown is unknown ModeWebhookTypeUnknown ModeWebhookType = iota // ModeWebhookTypeCheckRun is check_run ModeWebhookTypeCheckRun // ModeWebhookTypeWorkflowJob is workflow_job ModeWebhookTypeWorkflowJob )
func (ModeWebhookType) Equal ¶
func (mwt ModeWebhookType) Equal(in string) bool
Equal check in and value
func (ModeWebhookType) String ¶
func (mwt ModeWebhookType) String() string
String is implementation of fmt.Stringer
Click to show internal directories.
Click to hide internal directories.