jsonnetfile

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const (
	File     = "jsonnetfile.json"
	LockFile = "jsonnetfile.lock.json"
)

Variables

View Source
var (
	ErrUpdateJB = errors.New("jsonnetfile version unknown, update jb")
)

Functions

func Exists

func Exists(path string) (bool, error)

Exists returns whether the file at the given path exists

func Load

func Load(filepath string) (v1.JsonnetFile, error)

Load reads a jsonnetfile.(lock).json from disk

func Unmarshal

func Unmarshal(bytes []byte) (v1.JsonnetFile, error)

Unmarshal creates a spec.JsonnetFile from bytes. Empty bytes will create an empty spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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