Documentation ¶
Index ¶
- func Init() error
- type Runtime
- func (R *Runtime) ConfigGet(path string) (cue.Value, error)
- func (R *Runtime) ConfigSet(expr string) error
- func (R *Runtime) ContextGet(path string) (cue.Value, error)
- func (R *Runtime) ContextSet(expr string) error
- func (R *Runtime) Init() (err error)
- func (R *Runtime) PrintConfig() error
- func (R *Runtime) PrintSecret() error
- func (R *Runtime) SecretGet(path string) (cue.Value, error)
- func (R *Runtime) SecretSet(expr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶ added in v0.5.3
type Runtime struct { ContextType string ContextValue cue.Value ConfigType string ConfigValue cue.Value SecretType string SecretValue cue.Value }
Runtime holds the app config/secrets
func GetRuntime ¶ added in v0.5.3
func GetRuntime() *Runtime
func NewRuntime ¶ added in v0.5.3
func NewRuntime() *Runtime
func (*Runtime) ContextGet ¶ added in v0.5.3
func (*Runtime) ContextSet ¶ added in v0.5.3
func (*Runtime) Init ¶ added in v0.5.3
We can safely ignore errors here. If the file exists, cue errors will be printed, otherwise up to the user
func (*Runtime) PrintConfig ¶ added in v0.5.3
func (*Runtime) PrintSecret ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.