semantic

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 3 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 UnsyncableResourcesErrorCode = "1044"

UnsyncableResourcesErrorCode is the error code for UnsyncableResourcesError

Variables

This section is empty.

Functions

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