worker

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAllBackgroundEnv

func BindAllBackgroundEnv(v *viper.Viper)

func BindAllRunnerEnv

func BindAllRunnerEnv(v *viper.Viper)

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"`
}

Jump to

Keyboard shortcuts

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