upolicy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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(pol string) bool

CheckValid check the policy is valid

Types

type DagPoolPolicy

type DagPoolPolicy string

DagPoolPolicy is the policy of dagpool

var (
	//OnlyRead only read
	OnlyRead DagPoolPolicy = "only-read"
	//OnlyWrite only write
	OnlyWrite DagPoolPolicy = "only-write"
	//ReadWrite read and write
	ReadWrite DagPoolPolicy = "read-write"
)

func (*DagPoolPolicy) Allow

func (d *DagPoolPolicy) Allow(policy DagPoolPolicy) bool

Jump to

Keyboard shortcuts

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