...

Package devfile

Overview ▾

func ParseAndValidateFromFile

func ParseAndValidateFromFile(devfilePath string, imageRegistry string, wantEffective bool) (parser.DevfileObj, error)

ParseAndValidateFromFile reads, parses and validates devfile from a file if there are warning it logs them on stdout

func ParseAndValidateFromFileWithVariables

func ParseAndValidateFromFileWithVariables(devfilePath string, variables map[string]string, imageRegistry string, wantEffective bool) (parser.DevfileObj, error)

ParseAndValidateFromFileWithVariables reads, parses and validates devfile from a file variables are used to override devfile variables. If wantEffective is true, it returns a complete view of the Devfile, where everything is resolved. For example, parent will be flattened in the child, and Kubernetes manifests referenced by URI will be inlined in the related components. If there are warnings, it logs them on stdout.

Subdirectories

Name Synopsis
..
consts
image image package provides functions to work with Components of type Image declared in the devfile
location
testing
validate