Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Evaluate(r authz.Request) authz.DecisionType
}
Engine defines API for the ACL evaluation engine
type Store ¶
type Store interface { // Get returns list of ACLs of the bucket, nil if no policy is found Get(bucketName string) authz.ACLList // Set replaces old ACLs of the bucket (if existed) with the new list Set(bucketName string, acls authz.ACLList) error // Add appends new ACLs to the existing ACLs of the bucket Add(bucketName string, acls authz.ACLList) error // Delete removes ACLs of the specific bucket Delete(bucketName string) // SerializePolicies returns the serialized string of policies SerializePolicies() (string, error) }
Store defines APIs for the policy store
Click to show internal directories.
Click to hide internal directories.