configloader

package
v1.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MPL-2.0 Imports: 8 Imported by: 7

Documentation

Overview

Package configloader provides methods to load Talos config.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfig = errors.New("config not found")

ErrNoConfig is returned when no configuration was found in the input.

Functions

func NewFromBytes

func NewFromBytes(source []byte) (config.Provider, error)

NewFromBytes will take a byteslice and attempt to parse a config file from it.

func NewFromFile

func NewFromFile(filepath string) (config.Provider, error)

NewFromFile will take a filepath and attempt to parse a config file from it.

func NewFromStdin

func NewFromStdin() (config.Provider, error)

NewFromStdin initializes a config provider by reading from stdin.

Types

This section is empty.

Directories

Path Synopsis
internal
decoder
Package decoder provides a YAML decoder for machine configuration documents.
Package decoder provides a YAML decoder for machine configuration documents.

Jump to

Keyboard shortcuts

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