buflintvalidate

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckField

func CheckField(
	addAnnotationFunc func(bufprotosource.Descriptor, bufprotosource.Location, []bufprotosource.Location, string, ...interface{}),
	field bufprotosource.Field,
) error

CheckField validates that all rules on the field are valid, and any CEL expressions compile.

For a set of rules to be valid, it must

  1. permit _some_ value
  2. have a type compatible with the field it validates.

addAnnotationFunc adds an annotation with the descriptor and location for check results.

func CheckMessage

func CheckMessage(
	addAnnotationFunc func(bufprotosource.Descriptor, bufprotosource.Location, []bufprotosource.Location, string, ...interface{}),
	message bufprotosource.Message,
) error

CheckMessage validates that all rules on the message are valid, and any CEL expressions compile.

addAnnotationFunc adds an annotation with the descriptor and location for check results.

Types

This section is empty.

Jump to

Keyboard shortcuts

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