validate

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

View Source
var EntityMap = map[string]string{
	"ACLGroups":               "acls",
	"BasicAuths":              "basicauth_credentials",
	"CACertificates":          "ca_certificates",
	"Certificates":            "certificates",
	"Consumers":               "consumers",
	"Documents":               "documents",
	"FilterChains":            "filter_chains",
	"HMACAuths":               "hmacauth_credentials",
	"JWTAuths":                "jwt_secrets",
	"KeyAuths":                "keyauth_credentials",
	"Oauth2Creds":             "oauth2_credentials",
	"Partials":                "partials",
	"Plugins":                 "plugins",
	"RBACEndpointPermissions": "rbac-endpointpermission",
	"RBACRoles":               "rbac-role",
	"Routes":                  "routes",
	"SNIs":                    "snis",
	"Services":                "services",
	"Targets":                 "targets",
	"Upstreams":               "upstreams",
	"Vaults":                  "vaults",
}

Define a map of entity object field names and their corresponding string names

Functions

func KonnectCompatibility added in v1.37.0

func KonnectCompatibility(targetContent *file.Content, dumpConfig dump.Config) []error

Types

type ErrorsWrapper

type ErrorsWrapper struct {
	Errors []error
}

func (ErrorsWrapper) Error

func (v ErrorsWrapper) Error() string

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(opt ValidatorOpts) *Validator

func (*Validator) Validate

func (v *Validator) Validate(formatVersion semver.Version) []error

type ValidatorOpts

type ValidatorOpts struct {
	Ctx                  context.Context
	State                *state.KongState
	Client               *kong.Client
	Parallelism          int
	RBACResourcesOnly    bool
	OnlineEntitiesFilter []string
}

Jump to

Keyboard shortcuts

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