perm

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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