validate

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package validate provides functions to validate the provided objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckShardingKeySubset added in v0.11.0

func CheckShardingKeySubset(measure *databasev1.Measure) error

CheckShardingKeySubset checks whether every ShardingKey tag exists in Entity tags and the shared tags appear in the same relative order.

func Group added in v0.8.0

func Group(group *commonv1.Group) error

Group validates the provided Group object.

func GroupForNonProperty added in v0.9.0

func GroupForNonProperty(group *commonv1.Group) error

GroupForNonProperty validates the provided Group object for Stream or Measure. It checks for nil values, empty strings, and unspecified enum values.

func IndexRule

func IndexRule(indexRule *databasev1.IndexRule) error

IndexRule validates the provided IndexRule object. It checks for nil values, empty strings, and unspecified enum values.

func IndexRuleBinding

func IndexRuleBinding(indexRuleBinding *databasev1.IndexRuleBinding) error

IndexRuleBinding validates the provided IndexRuleBinding object. It checks for nil values, empty strings, and unspecified enum values.

func Measure

func Measure(measure *databasev1.Measure) error

Measure validates the provided Measure object. It checks for nil values, empty strings, and unspecified enum values.

func Property added in v0.11.1

func Property(property *databasev1.Property) error

Property validates the provided Property schema object.

func Stream

func Stream(stream *databasev1.Stream) error

Stream validates the provided Stream object. It checks for nil values, empty strings, and unspecified enum values.

func TopNAggregation

func TopNAggregation(topNAggregation *databasev1.TopNAggregation) error

TopNAggregation validates the provided TopNAggregation object. It checks for nil values, empty strings, and unspecified enum values.

func Trace added in v0.9.0

func Trace(trace *databasev1.Trace) error

Trace validates the provided Trace object. It checks for nil values, empty strings, and unspecified enum values.

func TraceUpdate added in v0.10.0

func TraceUpdate(prevTrace, newTrace *databasev1.Trace) error

TraceUpdate validates the provided Trace update operation. It ensures that reserved tags cannot be deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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