mock

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

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

func NewMockACL

func NewMockACL() *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) GetAllGroups

func (a *ACL) GetAllGroups(ownerAddress string) (map[string]map[string]uint8, 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

Jump to

Keyboard shortcuts

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