Documentation
¶
Overview ¶
Package syntax package provides validation checks for syntax errors in Nomos resource directories.
For the purpose of this package, we define a "syntax error" to be a configuration error which can be determined by looking at a single Resource. Examples of syntax errors include invalid names or missing required properties. This is as opposed to "semantic errors", which would include errors such as detecting that two Resources of the same Kind share the same name.
Index ¶
Constants ¶
const IllegalFieldsInConfigErrorCode = "1045"
IllegalFieldsInConfigErrorCode is the error code for IllegalFieldsInConfigError
const IllegalKindInNamespacesErrorCode = "1038"
IllegalKindInNamespacesErrorCode is the error code for IllegalKindInNamespacesError
Variables ¶
This section is empty.
Functions ¶
func IllegalFieldsInConfigError ¶
IllegalFieldsInConfigError reports that an object has an illegal field set.
func IllegalKindInNamespacesError ¶
IllegalKindInNamespacesError reports that an object has been illegally defined in namespaces/
func IsSystemOnly ¶
func IsSystemOnly(gvk schema.GroupVersionKind) bool
IsSystemOnly returns true if the GVK is only allowed in the system/ directory. It returns true iff the object is allowed in system/, but no other directories.
Types ¶
This section is empty.