Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Logging struct { LogLevel string `hcl:"log_level"` SentryDSN string `hcl:"sentry_dsn"` } `hcl:"logging,block"` Queue *QueueConfig `hcl:"queue,block"` HTTPServer *HTTPServerConfig `hcl:"http,block"` Macros []*MacroConfig `hcl:"macro,block"` // contains filtered or unexported fields }
func BootFromFile ¶
func (*Config) LookupMacro ¶
func (config *Config) LookupMacro(name string) (m *MacroConfig, ok bool)
func (*Config) SetupMounts ¶
type HTTPServerConfig ¶
type MacroConfig ¶
type MacroConfig struct { Name string `hcl:"name,label"` Command string `hcl:"command"` MaxExecTime string `hcl:"max_execution_time"` Mounts []struct { Filename string `hcl:"filename,label"` Content string `hcl:"content"` } `hcl:"mount,block"` }
func (*MacroConfig) ParseAndSplit ¶
func (macro *MacroConfig) ParseAndSplit(ctx map[string]string) ([]string, error)
type QueueConfig ¶
Click to show internal directories.
Click to hide internal directories.