semantic

package
v1.16.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package semantic package provides validation checks for semantic errors in Nomos resource directories.

For the purpose of this package, we define a "semantic error" to be a configuration error which cannot be determined by looking at a single Resource. Examples of semantic errors include detecting duplicate directories and verifying that a NamespaceSelector references a Namespace that exists.

Index

Constants

View Source
const MultipleSingletonsErrorCode = "1030"

MultipleSingletonsErrorCode is the error code for MultipleSingletonsError

View Source
const UnsyncableResourcesErrorCode = "1044"

UnsyncableResourcesErrorCode is the error code for UnsyncableResourcesError

Variables

This section is empty.

Functions

func MultipleSingletonsError

func MultipleSingletonsError(duplicates ...client.Object) status.Error

MultipleSingletonsError reports that multiple singletons are defined in the same directory.

func UnsyncableResourcesInLeaf

func UnsyncableResourcesInLeaf(dir id.TreeNode) status.Error

UnsyncableResourcesInLeaf reports that a leaf node has resources but is not a Namespace.

func UnsyncableResourcesInNonLeaf

func UnsyncableResourcesInNonLeaf(dir id.TreeNode) status.Error

UnsyncableResourcesInNonLeaf reports that a node has resources and descendants, but none of its descendants are Namespaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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