Documentation ¶
Index ¶
- Variables
- func AllowNodes(networkID NetworkID, node1, node2 NodeID) (acls.ACLContainer, error)
- func AreNodesAllowed(networkID NetworkID, node1, node2 NodeID) bool
- func CreateNodeACL(networkID NetworkID, nodeID NodeID, defaultVal byte) (acls.ACL, error)
- func DeleteACLContainer(network NetworkID) error
- func DisallowNodes(networkID NetworkID, node1, node2 NodeID) (acls.ACLContainer, error)
- func FetchAllACLs(networkID NetworkID) (acls.ACLContainer, error)
- func FetchNodeACL(networkID NetworkID, nodeID NodeID) (acls.ACL, error)
- func FetchNodeACLJson(networkID NetworkID, nodeID NodeID) (acls.ACLJson, error)
- func RemoveNodeACL(networkID NetworkID, nodeID NodeID) (acls.ACLContainer, error)
- func UpdateNodeACL(networkID NetworkID, nodeID NodeID, acl acls.ACL) (acls.ACL, error)
- type NetworkID
- type NodeACL
- type NodeID
Constants ¶
This section is empty.
Variables ¶
View Source
var NodesAllowedACLMutex = &sync.Mutex{}
Functions ¶
func AllowNodes ¶
func AllowNodes(networkID NetworkID, node1, node2 NodeID) (acls.ACLContainer, error)
AllowNode - allow access between two nodes in memory
func AreNodesAllowed ¶
AreNodesAllowed - checks if nodes are allowed to communicate in their network ACL
func CreateNodeACL ¶
CreateNodeACL - inserts or updates a node ACL on given network and adds to state
func DeleteACLContainer ¶
DeleteACLContainer - removes an ACLContainer state from db
func DisallowNodes ¶
func DisallowNodes(networkID NetworkID, node1, node2 NodeID) (acls.ACLContainer, error)
DisallowNodes - deny access between two nodes
func FetchAllACLs ¶
func FetchAllACLs(networkID NetworkID) (acls.ACLContainer, error)
FetchAllACLs - fetchs all node
func FetchNodeACL ¶
FetchNodeACL - fetches a specific node's ACL in a given network
func FetchNodeACLJson ¶
FetchNodeACLJson - fetches a node's acl in given network except returns the json string
func RemoveNodeACL ¶
func RemoveNodeACL(networkID NetworkID, nodeID NodeID) (acls.ACLContainer, error)
RemoveNodeACL - removes a specific Node's ACL, returns the NetworkACL and error
Types ¶
type NetworkID ¶
type NetworkID acls.ContainerID
NetworkID - ACL container based on network ID for nodes
Click to show internal directories.
Click to hide internal directories.