validation

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSimpleErrorFromGlooValidation

func GetSimpleErrorFromGlooValidation(
	reports []*gloovalidation.GlooValidationReport,
	proxy *gloov1.Proxy,
) error

GetSimpleErrorFromGlooValidation will get the Errors for the provided `proxy` that exist in the provided `reports` This function will return with the first error present if multiple reports exist

func TranslateK8sGatewayProxies

func TranslateK8sGatewayProxies(ctx context.Context, snap *gloosnapshot.ApiSnapshot, res resources.Resource) ([]*gloov1.Proxy, error)

TranslateK8sGatewayProxies builds an extremely basic "dummy" gloov1.Proxy object with the provided `res` attached in the correct location, i.e. if a RouteOption is passed it will be on the Route or if a VirtualHostOption is passed it will be on the VirtualHost

Types

This section is empty.

Jump to

Keyboard shortcuts

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