Documentation
¶
Index ¶
- func BindAllBackgroundEnv(v *viper.Viper)
- func BindAllRunnerEnv(v *viper.Viper)
- type BackgroundConfig
- type BackgroundConfigFile
- type BackgroundConfigFileNotifier
- type BackgroundConfigFileNotifierSendgrid
- type LocalProvisionerConfig
- type RunnerConfig
- type RunnerConfigFile
- type RunnerConfigFileProvisioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAllBackgroundEnv ¶
func BindAllRunnerEnv ¶
Types ¶
type BackgroundConfig ¶
type BackgroundConfig struct {
shared.Config
DB database.Config
ServerURL string
BroadcastGRPCAddress string
TokenOpts *token.TokenOpts
DefaultFileStore filestorage.FileStorageManager
DefaultLogStore logstorage.LogStorageBackend
ModuleRunQueueManager queuemanager.ModuleRunQueueManager
IncidentNotifier notifier.IncidentNotifier
}
type BackgroundConfigFile ¶
type BackgroundConfigFile struct {
ServerURL string `mapstructure:"serverURL" json:"serverURL,omitempty"`
BroadcastGRPCAddress string `mapstructure:"broadcastGRPCAddress" json:"broadcastGRPCAddress,omitempty" validator:"url" default:"http://localhost:8080"`
Auth shared.ConfigFileAuth `mapstructure:"auth" json:"auth,omitempty"`
FileStore shared.FileStorageConfigFile `mapstructure:"fileStore" json:"fileStore,omitempty"`
LogStore shared.LogStoreConfigFile `mapstructure:"logStore" json:"logStore,omitempty"`
Notifier BackgroundConfigFileNotifier `mapstructure:"notifier" json:"notifier,omitempty"`
}
type BackgroundConfigFileNotifier ¶
type BackgroundConfigFileNotifier struct {
Kind string `mapstructure:"kind" json:"kind,omitempty"`
Sendgrid BackgroundConfigFileNotifierSendgrid `mapstructure:"sendgrid" json:"sendgrid,omitempty"`
}
type BackgroundConfigFileNotifierSendgrid ¶
type BackgroundConfigFileNotifierSendgrid struct {
SendgridAPIKey string `mapstructure:"apiKey" json:"apiKey,omitempty"`
SendgridIncidentTemplateID string `mapstructure:"incidentTemplateID" json:"incidentTemplateID,omitempty"`
SendgridSenderEmail string `mapstructure:"senderEmail" json:"senderEmail,omitempty" validator:"email"`
}
type LocalProvisionerConfig ¶
type LocalProvisionerConfig struct {
BinaryPath string `mapstructure:"binaryPath" json:"binaryPath,omitempty"`
}
type RunnerConfig ¶
type RunnerConfig struct {
shared.Config
ProvisionerMechanism string
DefaultProvisioner provisioner.Provisioner
}
type RunnerConfigFile ¶
type RunnerConfigFile struct {
ProvisionerMechanism string `` /* 141-byte string literal not displayed */
Provisioner RunnerConfigFileProvisioner `mapstructure:"provisioner" json:"provisioner,omitempty"`
RunnerGRPCServerAddress string `mapstructure:"grpcServerAddress" json:"grpcServerAddress,omitempty" default:"http://localhost:8080"`
}
type RunnerConfigFileProvisioner ¶
type RunnerConfigFileProvisioner struct {
Kind string `mapstructure:"kind" json:"kind,omitempty" default:"local"`
Local LocalProvisionerConfig `mapstructure:"local" json:"local,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.