Documentation
¶
Index ¶
- func CheckKptfileVersion(content []byte, path string) error
- func ReadFile(dir string) (kptfile.KptFile, error)
- func ReadFileStrict(pkgPath string) (kptfile.KptFile, error)
- func ValidateInventory(inv *kptfile.Inventory) (bool, error)
- func WriteFile(dir string, k kptfile.KptFile) error
- type UnknownKptfileVersionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckKptfileVersion ¶ added in v0.39.3
CheckKptfileVersion checks that the KRM provided KRM resource uses the correct group, version and kind for this version of kpt.
func ReadFileStrict ¶
ReadFileStrict reads a Kptfile for a package and validates that it contains required Upstream fields.
func ValidateInventory ¶ added in v0.38.0
ValidateInventory returns true and a nil error if the passed inventory is valid; otherwise, false and the reason the inventory is not valid is returned. A valid inventory must have a non-empty namespace, name, and id.
Types ¶
type UnknownKptfileVersionError ¶ added in v0.39.3
UnknownKptfileVersionError is returned when kpt encounters a Kptfile that uses an unsupported version of the Kptfile resource.
func (*UnknownKptfileVersionError) Error ¶ added in v0.39.3
func (e *UnknownKptfileVersionError) Error() string
Click to show internal directories.
Click to hide internal directories.