config

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEmbeds added in v0.22.1

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 added in v0.10.0

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 added in v0.22.1

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

type URL added in v0.10.0

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 added in v0.23.0

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

func (*URL) String added in v0.10.0

func (u *URL) String() string

String implements the fmt.Stringer interface.

func (*URL) UnmarshalHCL added in v0.10.0

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