Documentation
¶
Index ¶
- func DefaultClient() *api.Client
- func DefaultReporterClient() *api.ReporterClient
- func DefaultSpanner(ctx context.Context) (*spanner.Client, error)
- func DefaultSpannerURI() (db.ParsedURI, error)
- func DefaultStorage(ctx context.Context) (blob.Storage, error)
- func Errorf(fmt string, args ...interface{})
- func Fatalf(fmt string, args ...interface{})
- type AppConfig
- type AppEnvironment
- type EmailConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶
func DefaultReporterClient ¶
func DefaultReporterClient() *api.ReporterClient
func DefaultSpannerURI ¶
Types ¶
type AppConfig ¶
type AppConfig struct { // How many workflows are scheduled in parallel. ParallelWorkflows int `yaml:"parallelWorkflows"` // What Lore archives are to be polled for new patch series. LoreArchives []string `yaml:"loreArchives"` // Parameters used for sending/generating emails. EmailReporting *EmailConfig `yaml:"emailReporting"` }
type AppEnvironment ¶
func Environment ¶
func Environment(ctx context.Context) (*AppEnvironment, error)
func TestEnvironment ¶
func TestEnvironment(t *testing.T) (*AppEnvironment, context.Context)
type EmailConfig ¶
type EmailConfig struct { // The public name of the system. Name string `yaml:"name"` // Link to the public documentation. DocsLink string `yaml:"docs"` // Contact email. SupportEmail string `yaml:"supportEmail"` // The email from which to send the reports. Sender string `yaml:"sender"` // Moderation requests will be sent there. ModerationList string `yaml:"moderationList"` // The list we listen on. ArchiveList string `yaml:"archiveList"` // Lore git archive to poll for incoming messages. LoreArchiveURL string `yaml:"loreArchiveURL"` }
func (EmailConfig) Validate ¶
func (c EmailConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.