Versions in this module Expand all Collapse all v0 v0.4.1 Oct 20, 2014 v0.4.0 Sep 5, 2014 Changes in this version + const KeyPolicyDeny + const KeyPolicyRead + const KeyPolicyWrite + type ACL interface + ACLList func() bool + ACLModify func() bool + KeyRead func(string) bool + KeyWrite func(string) bool + KeyWritePrefix func(string) bool + func AllowAll() ACL + func DenyAll() ACL + func ManageAll() ACL + func RootACL(id string) ACL + type Cache struct + func NewCache(size int, faultfn FaultFunc) (*Cache, error) + func (c *Cache) ClearACL(id string) + func (c *Cache) GetACL(id string) (ACL, error) + func (c *Cache) GetACLPolicy(id string) (string, *Policy, error) + func (c *Cache) GetPolicy(rules string) (*Policy, error) + func (c *Cache) Purge() + type FaultFunc func(id string) (string, string, error) + type KeyPolicy struct + Policy string + Prefix string + func (k *KeyPolicy) GoString() string + type Policy struct + ID string + Keys []*KeyPolicy + func Parse(rules string) (*Policy, error) + type PolicyACL struct + func New(parent ACL, policy *Policy) (*PolicyACL, error) + func (p *PolicyACL) ACLList() bool + func (p *PolicyACL) ACLModify() bool + func (p *PolicyACL) KeyRead(key string) bool + func (p *PolicyACL) KeyWrite(key string) bool + func (p *PolicyACL) KeyWritePrefix(prefix string) bool + type StaticACL struct + func (s *StaticACL) ACLList() bool + func (s *StaticACL) ACLModify() bool + func (s *StaticACL) KeyRead(string) bool + func (s *StaticACL) KeyWrite(string) bool + func (s *StaticACL) KeyWritePrefix(string) bool