upolicy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessDenied = xerrors.Errorf("access denied")

AccessDenied is the error when the user is not allowed to access the dag

Functions

func CheckValid

func CheckValid(policy string) bool

CheckValid check the policy is valid

Types

type DagPoolPolicy

type DagPoolPolicy string

DagPoolPolicy is the policy of dagpool

var (
	//ReadOnly defines read only permission
	ReadOnly DagPoolPolicy = "read-only"
	//WriteOnly defines write only permission
	WriteOnly DagPoolPolicy = "write-only"
	//ReadWrite defines read and write permission
	ReadWrite DagPoolPolicy = "read-write"
)

func (DagPoolPolicy) Allow

func (dpp DagPoolPolicy) Allow(policy DagPoolPolicy) bool

Jump to

Keyboard shortcuts

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