acl

package
v0.0.0-...-215cb89 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	SubAttr  string
	ObjAttr  string
	OptAttrs serverType.OpCode
	EnvAttr  commonType.Duration
}

func (*Policy) CheckOperation

func (policy *Policy) CheckOperation(gm bool, subAttrs []string, objAttrs []string, op serverType.OpCode, timestamp commonType.Timestamp) bool

type PolicyList

type PolicyList struct {
	Policies []*Policy
}

func (*PolicyList) CheckOperation

func (pl *PolicyList) CheckOperation(gm bool, subAttrs []string, objAttrs []string, op serverType.OpCode, timestamp commonType.Timestamp) bool

Jump to

Keyboard shortcuts

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