Documentation
¶
Index ¶
- func BuildInstance(ctx *cue.Context, policies []string, conf *load.Config) ([]cue.Value, error)
- func CreatePath(tool, subDir string) (string, error)
- func ExtractModule(dirPath string) (string, error)
- func GenerateOverlay(dirPath string, td string, policies []string) (map[string]load.Source, error)
- func GetDefinitions(dirPath string) ([]string, error)
- func MarshalToYAML(value cue.Value) ([]byte, error)
- func ParseTools(reqTools string) (string, string, error)
- func ReadAndCompileData(dataPath string) (map[string]cue.Value, error)
- func UnifyAndValidate(def cue.Value, data cue.Value) (cue.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildInstance ¶
func CreatePath ¶
func ExtractModule ¶
func GenerateOverlay ¶
GenerateOverlay creates an overlay to store cue schemas from a given directory
func GetDefinitions ¶
GetDefinitions reads the files names of the Cue definitions from the provided path and returns a []filenames and an error
func ParseTools ¶
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 ¶
ReadAndCompileData reads the content from the given file path or GitHub URL and compiles it into cue.Value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.