configloader

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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