configload

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 30 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 LoadBytesEnv added in v1.11.0

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

func LoadConfig

func LoadConfig(body *hclsyntax.Body) (*config.Couper, error)

func LoadFile

func LoadFile(file, env string) (*config.Couper, error)

func LoadFiles added in v1.9.0

func LoadFiles(filesList []string, env string, logger *logrus.Entry) (*config.Couper, error)

func PrepareBackend added in v1.9.0

func PrepareBackend(helper *helper, attrName, attrValue string, block config.Body) (*hclsyntax.Body, error)

PrepareBackend is a method which is mandatory to call for preparing any kind of backend. This applies to defined, reference, anonymous and endpoint/url related configurations. This method will be called recursively and is used as wrapped injector for access-control backends via config.PrepareBackendFunc.

func ValidateConfigSchema

func ValidateConfigSchema(body hcl.Body, obj interface{}) hcl.Diagnostics

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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