config

package
v0.0.0-...-9e55092 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEmbeds

func LoadEmbeds(config any, embeds [][]byte) (err error)

LoadEmbeds populates config with data from []utilHCL.NamedBytes into the given config, and expanding dynamic blocks before decoding the HCL content.

func LoadFiles

func LoadFiles(config any, paths []string) error

LoadFiles loads the given paths into the given config, merging contents of multiple HCL files specified by the "include" attribute using glob patterns, and expanding dynamic blocks before decoding the HCL content.

Types

type HasDefaults

type HasDefaults interface {
	DefaultEmbeds() [][]byte
}

type URL

type URL netURL.URL

URL accepts a URL as a string. It returns an error if the string is not a valid URL.

func (URL) MarshalHCL

func (u URL) MarshalHCL() (cty.Value, error)

func (*URL) String

func (u *URL) String() string

String implements the fmt.Stringer interface.

func (*URL) UnmarshalHCL

func (u *URL) UnmarshalHCL(value cty.Value) error

UnmarshalHCL implements the hcl.Unmarshaler interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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