Documentation
¶
Overview ¶
Package projectfile reads and writes Crossplane project files.
Index ¶
Constants ¶
const ( // APIVersion is the supported API version for project files. APIVersion = "dev.crossplane.io/v1alpha1" // Kind is the supported Kind for project files. Kind = "Project" )
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse parses and validates the project file, returning a Project with defaults applied.
func ParseWithoutDefaults ¶
ParseWithoutDefaults parses and validates the project file without applying defaults. Use this when reading a project file that will be modified and written back, to avoid persisting default values the user omitted.
func Update ¶
Update reads a project file without applying defaults, applies the given mutation function, and writes the result back. This allows the project to be updated on disk without injecting defaults. Note that the file will be reformatted by the YAML serializer (fields will be re-ordered and comments will be lost).
Types ¶
This section is empty.