configload

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBytes

func LoadBytes(src []byte, filename string) (*config.Couper, error)

func LoadConfig

func LoadConfig(body hcl.Body, src []byte, filename string) (*config.Couper, error)

func LoadFile

func LoadFile(filePath string) (*config.Couper, error)

func SetWorkingDirectory

func SetWorkingDirectory(configFile string) (string, error)

SetWorkingDirectory sets the working directory to the given configuration file path.

func ValidateConfigSchema

func ValidateConfigSchema(body hcl.Body, obj interface{}, src []byte) hcl.Diagnostics

Types

type Backend

type Backend struct {
	Config hcl.Body
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(name string, config hcl.Body) *Backend

type Backends

type Backends []*Backend

Backends is a sequence of Backend

func (Backends) WithName

func (b Backends) WithName(name string) (hcl.Body, error)

WithName picks a matching backend configuration from the backend sequence and does some attribute enrichment to be able to filter with this attributes later on.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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