config

package
v0.6.9-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.5.3

func Init() error

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) ConfigGet added in v0.5.3

func (R *Runtime) ConfigGet(path string) (cue.Value, error)

func (*Runtime) ConfigSet added in v0.5.3

func (R *Runtime) ConfigSet(expr string) error

func (*Runtime) ContextGet added in v0.5.3

func (R *Runtime) ContextGet(path string) (cue.Value, error)

func (*Runtime) ContextSet added in v0.5.3

func (R *Runtime) ContextSet(expr string) error

func (*Runtime) Init added in v0.5.3

func (R *Runtime) Init() (err error)

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 (R *Runtime) PrintConfig() error

func (*Runtime) PrintSecret added in v0.5.3

func (R *Runtime) PrintSecret() error

func (*Runtime) SecretGet added in v0.5.3

func (R *Runtime) SecretGet(path string) (cue.Value, error)

func (*Runtime) SecretSet added in v0.5.3

func (R *Runtime) SecretSet(expr string) error

Jump to

Keyboard shortcuts

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