Documentation ¶
Index ¶
- Constants
- type ACL
- func (a *ACL) AddMember(groupName, ownerAddress, memberAddress string, permission uint8) error
- func (a *ACL) CreateGroup(groupName, ownerAddress string) error
- func (a *ACL) GetGroupMembers(groupName, ownerAddress string) (map[string]uint8, error)
- func (a *ACL) GetPermission(groupName, ownerAddress, memberAddress string) (uint8, error)
- func (a *ACL) RemoveGroup(groupName, ownerAddress string) error
- func (a *ACL) RemoveMember(groupName, ownerAddress, memberAddress string) error
- func (a *ACL) UpdatePermission(groupName, ownerAddress, memberAddress string, permission uint8) error
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 (*ACL) CreateGroup ¶
func (*ACL) GetGroupMembers ¶
func (*ACL) GetPermission ¶
func (*ACL) RemoveGroup ¶
func (*ACL) RemoveMember ¶
Click to show internal directories.
Click to hide internal directories.