Documentation ¶
Index ¶
- func ACL() middleware.Middleware
- func Category() middleware.Middleware
- func Indices() middleware.Middleware
- func Operation() middleware.Middleware
- func PermissionExpiry() middleware.Middleware
- func Plan(validPlans []util.Plan, byPassValidation bool, featureName string) middleware.Middleware
- func Referers() middleware.Middleware
- func Sources() middleware.Middleware
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.