acl

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoPermission      uint8 = 0
	PermissionRead    uint8 = 1
	PermissionWrite   uint8 = 2
	PermissionExecute uint8 = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	// contains filtered or unexported fields
}

func NewACL

func NewACL(c blockstore.Client, f *feed.API, logger logging.Logger) *ACL

func (*ACL) AddMember

func (a *ACL) AddMember(groupName, ownerAddress, memberAddress string, permission uint8) error

func (*ACL) CreateGroup

func (a *ACL) CreateGroup(groupName, ownerAddress string) error

func (*ACL) GetGroupMembers

func (a *ACL) GetGroupMembers(groupName, ownerAddress string) (map[string]uint8, error)

func (*ACL) GetPermission

func (a *ACL) GetPermission(groupName, ownerAddress, memberAddress string) (uint8, error)

func (*ACL) RemoveGroup

func (a *ACL) RemoveGroup(groupName, ownerAddress string) error

func (*ACL) RemoveMember

func (a *ACL) RemoveMember(groupName, ownerAddress, memberAddress string) error

func (*ACL) UpdatePermission

func (a *ACL) UpdatePermission(groupName, ownerAddress, memberAddress string, permission uint8) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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