Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionAllow = agentutils.PermActionAllow ActionDeny = agentutils.PermActionDeny ActionAsk = agentutils.PermActionAsk )
View Source
var ( NewEvaluator = agentutils.NewPermEvaluator Evaluate = agentutils.PermEvaluate FromConfig = agentutils.PermFromConfig FromAllowDenyAsk = agentutils.PermFromAllowDenyAsk Merge = agentutils.PermMerge )
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action = agentutils.PermAction
type Evaluator ¶
type Evaluator = agentutils.PermEvaluator
type PermissionRequest ¶
type PermissionRequest struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
Permission string `json:"permission"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
func (*PermissionRequest) String ¶
func (r *PermissionRequest) String() string
type PermissionResponse ¶
type Rule ¶
type Rule = agentutils.PermRule
type Ruleset ¶
type Ruleset = agentutils.PermRuleset
func BuildAgentRuleset ¶
func DefaultRuleset ¶
func DefaultRuleset() Ruleset
Click to show internal directories.
Click to hide internal directories.