buflintvalidate

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 added in v1.32.0

func CheckField(
	add 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.

func CheckMessage added in v1.32.0

func CheckMessage(
	add 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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