Documentation
¶
Index ¶
- type LadonPolicyMatcher
- type Manager
- func (m *Manager) Create(policy ladon.Policy) (err error)
- func (m *Manager) Delete(id string) error
- func (m *Manager) FindRequestCandidates(r *ladon.Request) (ladon.Policies, error)
- func (m *Manager) Get(id string) (ladon.Policy, error)
- func (m *Manager) GetAll(limit, offset int64) (ladon.Policies, error)
- func (m *Manager) Update(policy ladon.Policy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LadonPolicyMatcher ¶
LadonPolicyMatcher is used to represent Policy matching templates
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a Google Datastore implementation for Manager to store policies persistently.
func NewManager ¶
NewManager initializes a new Manager with the given client
func (*Manager) FindRequestCandidates ¶
FindRequestCandidates returns candidates that could match the request object. It either returns a set that exactly matches the request, or a superset of it. If an error occurs, it returns nil and the error.
Click to show internal directories.
Click to hide internal directories.