Documentation ¶
Index ¶
- Variables
- func DeleteAclFromCache(containerID ContainerID)
- type ACL
- type ACLContainer
- func (networkACL ACLContainer) ChangeAccess(ID1, ID2 AclID, value byte)
- func (aclContainer ACLContainer) Get(containerID ContainerID) (ACLContainer, error)
- func (aclContainer ACLContainer) New(containerID ContainerID) (ACLContainer, error)
- func (aclContainer ACLContainer) RemoveACL(ID AclID) ACLContainer
- func (aclContainer ACLContainer) Save(containerID ContainerID) (ACLContainer, error)
- func (aclContainer ACLContainer) UpdateACL(ID AclID, acl ACL) ACLContainer
- type ACLJson
- type AclID
- type ContainerID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NotPresent - 0 - not present (default) NotPresent = byte(0) // NotAllowed - 1 - not allowed access NotAllowed = byte(1) // 1 - not allowed // Allowed - 2 - allowed access Allowed = byte(2) )
View Source
var (
AclMutex = &sync.RWMutex{}
)
Functions ¶
func DeleteAclFromCache ¶
func DeleteAclFromCache(containerID ContainerID)
Types ¶
type ACL ¶
ACL - the ACL of other nodes in a NetworkACL for a single unique node
type ACLContainer ¶
ACLContainer - the total list of all node's ACL in a given network
func (ACLContainer) ChangeAccess ¶
func (networkACL ACLContainer) ChangeAccess(ID1, ID2 AclID, value byte)
ACLContainer.ChangeAccess - changes the relationship between two nodes in memory
func (ACLContainer) Get ¶
func (aclContainer ACLContainer) Get(containerID ContainerID) (ACLContainer, error)
ACLContainer.Get - saves the state of a ACLContainer to the db
func (ACLContainer) New ¶
func (aclContainer ACLContainer) New(containerID ContainerID) (ACLContainer, error)
ACLContainer.New - saves the state of a ACLContainer to the db
func (ACLContainer) RemoveACL ¶
func (aclContainer ACLContainer) RemoveACL(ID AclID) ACLContainer
ACLContainer.RemoveACL - removes the state of a ACL in the ACLContainer in memory
func (ACLContainer) Save ¶
func (aclContainer ACLContainer) Save(containerID ContainerID) (ACLContainer, error)
ACLContainer.Save - saves the state of a ACLContainer to the db
func (ACLContainer) UpdateACL ¶
func (aclContainer ACLContainer) UpdateACL(ID AclID, acl ACL) ACLContainer
ACLContainer.UpdateACL - saves the state of a ACL in the ACLContainer in memory
Click to show internal directories.
Click to hide internal directories.