Documentation ¶
Overview ¶
Package configloader provides methods to load Talos config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLookupFailed = decoder.ErrLookupFailed
ErrLookupFailed is returned when the lookup failed.
View Source
var ErrNoConfig = errors.New("config not found")
ErrNoConfig is returned when no configuration was found in the input.
View Source
var ErrZeroedDocument = decoder.ErrZeroedDocument
ErrZeroedDocument is returned when the document is empty after applying the delete selector.
Functions ¶
func NewFromBytes ¶
NewFromBytes will take a byteslice and attempt to parse a config file from it.
func NewFromFile ¶
NewFromFile will take a filepath and attempt to parse a config file from it.
func NewFromStdin ¶
NewFromStdin initializes a config provider by reading from stdin.
Types ¶
type Opt ¶ added in v1.8.0
type Opt func(*Opts)
Opt is a functional option for the config loader.
func WithAllowPatchDelete ¶ added in v1.8.0
func WithAllowPatchDelete() Opt
WithAllowPatchDelete allows the loader to parse patch delete operations.
Click to show internal directories.
Click to hide internal directories.