Documentation ¶
Index ¶
- Constants
- type Config
- func (r *Config) GetBool(key string) (bool, error)
- func (r *Config) GetList(key string) (cue.Value, error)
- func (r *Config) GetString(key string) (string, error)
- func (r *Config) GetStringOr(key string, def string) string
- func (r *Config) LoadConfig(path string) error
- func (r *Config) LoadConfigString(cueConfig string) error
- type Runtime
Constants ¶
View Source
const BaseConfig = `` /* 438-byte string literal not displayed */
View Source
const DefaultConfigName = "blox.cue"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) LoadConfig ¶
LoadConfig opens the configuration file specified in `path` and validates it against the configuration provided in when the `Engine` was initialized with `New()`
func (*Config) LoadConfigString ¶
type Runtime ¶
func NewRuntimeWithBase ¶
NewRuntimeWithBase creates a new runtime engine with the cue provided in `base` as the initial cue values
Click to show internal directories.
Click to hide internal directories.