types.go 642 B

123456789101112131415161718192021222324252627
  1. package acls
  2. var (
  3. // NotPresent - 0 - not present (default)
  4. NotPresent = byte(0)
  5. // NotAllowed - 1 - not allowed access
  6. NotAllowed = byte(1) // 1 - not allowed
  7. // Allowed - 2 - allowed access
  8. Allowed = byte(2)
  9. )
  10. type (
  11. // AclID - the node id of a given node
  12. AclID string
  13. // ACL - the ACL of other nodes in a NetworkACL for a single unique node
  14. ACL map[AclID]byte
  15. // ACLJson - the string representation in JSON of an ACL Node or Network
  16. ACLJson string
  17. // ContainerID - the networkID of a given network
  18. ContainerID string
  19. // ACLContainer - the total list of all node's ACL in a given network
  20. ACLContainer map[AclID]ACL
  21. )