Documentation ¶
Overview ¶
Package perm provides the ability for validating the access control to Vela resources in the middleware chain for the API.
Usage:
import "github.com/go-vela/server/router/middleware/perm"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAdmin ¶
func MustAdmin() gin.HandlerFunc
MustAdmin ensures the user has admin access to the repo.
func MustPlatformAdmin ¶
func MustPlatformAdmin() gin.HandlerFunc
MustPlatformAdmin ensures the user has admin access to the platform.
func MustRead ¶
func MustRead() gin.HandlerFunc
MustRead ensures the user has admin, write or read access to the repo.
func MustSecretAdmin ¶
func MustSecretAdmin() gin.HandlerFunc
MustSecretAdmin ensures the user has admin access to the org, repo or team.
func MustWrite ¶
func MustWrite() gin.HandlerFunc
MustWrite ensures the user has admin or write access to the repo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.