validation

package
v1.20.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IllegalAbstractNamespaceObjectKindErrorCode = "1007"

IllegalAbstractNamespaceObjectKindErrorCode is the error code for IllegalAbstractNamespaceObjectKindError

View Source
const IllegalNamespaceSubdirectoryErrorCode = "1003"

IllegalNamespaceSubdirectoryErrorCode is the error code for IllegalNamespaceSubdirectoryError

View Source
const IncorrectTopLevelDirectoryErrorCode = "1039"

IncorrectTopLevelDirectoryErrorCode is the error code for IllegalKindInClusterError

Variables

This section is empty.

Functions

func IllegalAbstractNamespaceObjectKindError

func IllegalAbstractNamespaceObjectKindError(resource client.Object) status.Error

IllegalAbstractNamespaceObjectKindError represents an illegal usage of a kind not allowed in abstract namespaces. TODO: Consolidate Illegal{X}ObjectKindErrors

func IllegalNamespaceSubdirectoryError

func IllegalNamespaceSubdirectoryError(child, parent id.TreeNode) status.Error

IllegalNamespaceSubdirectoryError represents an illegal child directory of a namespace directory.

func ShouldBeInClusterError

func ShouldBeInClusterError(resource client.Object) status.Error

ShouldBeInClusterError reports that an object belongs in cluster/.

func ShouldBeInClusterRegistryError

func ShouldBeInClusterRegistryError(resource client.Object) status.Error

ShouldBeInClusterRegistryError reports that an object belongs in clusterregistry/.

func ShouldBeInNamespacesError

func ShouldBeInNamespacesError(resource client.Object) status.Error

ShouldBeInNamespacesError reports that an object belongs in namespaces/.

func ShouldBeInSystemError

func ShouldBeInSystemError(resource client.Object) status.Error

ShouldBeInSystemError reports that an object belongs in system/.

Types

This section is empty.

Directories

Path Synopsis
Package hierarchyconfig defines validation done on HierarchyConfig Resources
Package hierarchyconfig defines validation done on HierarchyConfig Resources
Package metadata provides validation checks for errors in Resource metadata
Package metadata provides validation checks for errors in Resource metadata
Package semantic package provides validation checks for semantic errors in Nomos resource directories.
Package semantic package provides validation checks for semantic errors in Nomos resource directories.
Package syntax package provides validation checks for syntax errors in Nomos resource directories.
Package syntax package provides validation checks for syntax errors in Nomos resource directories.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL