Documentation ¶
Index ¶
Constants ¶
View Source
const GlooGroup = "gloo.solo.io"
Variables ¶
View Source
var GvkToSupportedDeleteGlooResources = map[schema.GroupVersionKind]bool{ gloov1.UpstreamGVK: true, gloov1.SecretGVK: true, }
View Source
var GvkToSupportedGlooResources = map[schema.GroupVersionKind]bool{ gloov1.UpstreamGVK: true, }
Functions ¶
func NewValidationServer ¶
func NewValidationServer() *validationServer
func NewValidator ¶ added in v0.20.2
func NewValidator(ctx context.Context, translator translator.Translator, xdsSanitizer sanitizer.XdsSanitizers) *validator
Types ¶
type GlooValidationReport ¶ added in v1.13.0
type GlooValidationReport struct { Proxy *gloov1.Proxy ProxyReport *validation.ProxyReport ResourceReports reporter.ResourceReports }
type GlooValidator ¶ added in v1.13.0
type GlooValidator interface {
Validate(ctx context.Context, proxy *gloov1.Proxy, snapshot *gloosnapshot.ApiSnapshot, delete bool) []*GlooValidationReport
}
GlooValidator is used to validate solo.io.gloo resources
func NewGlooValidator ¶ added in v1.13.0
func NewGlooValidator(glooTranslator gloo_translator.Translator, xdsSanitizer sanitizer.XdsSanitizer) GlooValidator
NewGlooValidator will create a new GlooValidator
type ValidationServer ¶
type ValidationServer interface { validation.GlooValidationServiceServer SetValidator(v Validator) Register(grpcServer *grpc.Server) }
type Validator ¶ added in v0.20.2
type Validator interface { v1snap.ApiSyncer validation.GlooValidationServiceServer ValidateGloo(ctx context.Context, proxy *v1.Proxy, resource resources.Resource, delete bool) ([]*GlooValidationReport, error) }
Click to show internal directories.
Click to hide internal directories.