cuecore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInstance

func BuildInstance(ctx *cue.Context, policies []string, conf *load.Config) ([]cue.Value, error)

func CreatePath

func CreatePath(tool, subDir string) (string, error)

func ExtractModule

func ExtractModule(dirPath string) (string, error)

func GenerateOverlay

func GenerateOverlay(dirPath string, td string, policies []string) (map[string]load.Source, error)

GenerateOverlay creates an overlay to store cue schemas from a given directory

func GetDefinitions

func GetDefinitions(dirPath string) ([]string, error)

GetDefinitions reads the files names of the Cue definitions from the provided path and returns a []filenames and an error

func MarshalToYAML

func MarshalToYAML(value cue.Value) ([]byte, error)

func ParseTools

func ParseTools(reqTools string) (string, string, error)

ParseTools matches the tool provided is present in the .env file and returns the tool, the associated OCI URL and any error encountered

func ReadAndCompileData

func ReadAndCompileData(dataPath string) (map[string]cue.Value, error)

ReadAndCompileData reads the content from the given file path or GitHub URL and compiles it into cue.Value.

func UnifyAndValidate

func UnifyAndValidate(def cue.Value, data cue.Value) (cue.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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