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 ¶
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
Click to show internal directories.
Click to hide internal directories.