Documentation
¶
Index ¶
- func FlagsForServer(prefix string, config *ServerConfig) *pflag.FlagSet
- func ReadConfig(cmd *cobra.Command, configFile *string, cliLogConfig *log.Config, ...) (context.Context, error)
- type APIConfig
- type Config
- type GitConfig
- type HTTPClientConfig
- type HTTPProxyConfig
- type KubernetesExecutorConfig
- type PlatformConfig
- type ProjectConfig
- type ServerConfig
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagsForServer ¶
func FlagsForServer(prefix string, config *ServerConfig) *pflag.FlagSet
Types ¶
type APIConfig ¶
type APIConfig struct {
BaseURL string `json:"baseURL" yaml:"baseURL"`
OAuthToken string `json:"oauthToken" yaml:"oauthToken"`
Client HTTPClientConfig `json:"client" yaml:"client"`
}
type Config ¶
type Config struct {
Server ServerConfig `json:"server" yaml:"server"`
GitHub []PlatformConfig `json:"github" yaml:"github"`
GitLab []PlatformConfig `json:"gitlab" yaml:"gitlab"`
}
type HTTPClientConfig ¶
type HTTPClientConfig struct {
Proxy *HTTPProxyConfig `json:"proxy" yaml:"proxy"`
TLS tlshelper.TLSConfig `json:"tls" yaml:"tls"`
}
type HTTPProxyConfig ¶
type KubernetesExecutorConfig ¶
type KubernetesExecutorConfig struct {
KubeClient kubehelper.KubeClientConfig `json:"kubeClient" yaml:"kubeClient"`
// JobTTL delete after specified time period
JobTTL time.Duration `json:"jobTTL" yaml:"jobTTL"`
RenovateImage string `json:"renovateImage" yaml:"renovateImage"`
RenovateImagePullPolicy string `json:"renovateImagePullPolicy" yaml:"renovateImagePullPolicy"`
}
type PlatformConfig ¶
type PlatformConfig struct {
API APIConfig `json:"api" yaml:"api"`
Git GitConfig `json:"git" yaml:"git"`
Webhook WebhookConfig `json:"webhook" yaml:"webhook"`
DashboardIssueTitle string `json:"dashboardIssueTitle" yaml:"dashboardIssueTitle"`
DisabledRepoNameMatch string `json:"disabledRepoNameMatch" yaml:"disabledRepoNameMatch"`
Projects []ProjectConfig `json:"projects" yaml:"projects"`
}
type ProjectConfig ¶
type ProjectConfig struct {
// Name of the project (repo name)
Name string `json:"name" yaml:"name"`
// override default dashboard issue title
DashboardIssueTitle string `json:"dashboardIssueTitle" yaml:"dashboardIssueTitle"`
// Disabled indicates whether this project should not be checked by renovate
Disabled bool `json:"disabled" yaml:"disabled"`
}
type ServerConfig ¶
type ServerConfig struct {
Log log.ConfigSet `json:"log" yaml:"log"`
Webhook struct {
Listen string `json:"listen" yaml:"listen"`
TLS tlshelper.TLSConfig `json:"tls" yaml:"tls"`
} `json:"webhook" yaml:"webhook"`
Scheduling struct {
// Delay period for webhook event
Delay time.Duration `json:"delay" yaml:"delay"`
// CronTabs is the crontab string array to schedule renovate periodically
CronTabs []string `json:"cronTabs" yaml:"cronTabs"`
// Timezone
Timezone string `json:"timezone" yaml:"timezone"`
} `json:"scheduling" yaml:"scheduling"`
Executor struct {
Kubernetes *KubernetesExecutorConfig `json:"kubernetes" yaml:"kubernetes"`
} `json:"executor" yaml:"executor"`
}
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.