Documentation
¶
Index ¶
- func BuildInstance(ctx *cue.Context, policies []string, conf *load.Config) ([]cue.Value, error)
- func CheckTagAndPullArchive(url, tool string, archivePath *os.File) 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 CheckTagAndPullArchive ¶
CheckTagAndPullArchive checks for provided tag to be available in the remote, if available pulls the archive and stores it in the specified directory and retuens an error if encountered.
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.