validate

package
v0.0.0-...-f94be1b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACL

func ACL() middleware.Middleware

ACL returns a middleware that validates the request acl against the credential acls.

func Category

func Category() middleware.Middleware

Category returns a middleware that validates the request category against credential categories.

func Indices

func Indices() middleware.Middleware

Indices returns a middleware that validates the request indices against the credential indices.

func Operation

func Operation() middleware.Middleware

Operation returns a middleware that validates the request operation against the credential operations.

func PermissionExpiry

func PermissionExpiry() middleware.Middleware

PermissionExpiry returns a middleware that checks whether a permission is expired or not.

func Plan

func Plan(validPlans []util.Plan, byPassValidation bool, featureName string) middleware.Middleware

Plan returns a middleware that validates the user's plan. For e.g `validate.Plan([]util.Plan{util.ArcEnterprise}),` restricts the route to only appbase.io enterprise users.

func Referers

func Referers() middleware.Middleware

Referers returns a middleware that validates the request referers against the permission referers.

func Sources

func Sources() middleware.Middleware

Sources returns a middleware that validates the request sources against the permission sources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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