config

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LatestVersion points to the latest version of the config format.
	LatestVersion = v1alpha3.Version
)

Variables

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

ErrNotFound is returned when a file was not found.

Functions

func ReadFile

func ReadFile(path, libPath string) (v1alpha3.Config, error)

ReadFile takes a path and returns the parsed config file.

If the config file needs to have access to additional libraries, their location can be specified with cfgDirs.

func ReadJsonnet

func ReadJsonnet(p string, buf []byte) (v1alpha3.Config, error)

ReadJsonnet parses a buffer containing a jsonnet config.

The path is used to resolve imports.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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