memory

package
v0.0.0-...-c0c894b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Policies map[string]ladon.Policy
}

Manager is a in-memory implementation of ladon.Manager.

func New

func New() *Manager

func (*Manager) Create

func (m *Manager) Create(policy ladon.Policy) error

func (*Manager) Delete

func (m *Manager) Delete(id string) error

Delete removes a policy.

func (*Manager) FindPoliciesForSubject

func (m *Manager) FindPoliciesForSubject(subject string) (ladon.Policies, error)

Finds all policies associated with the subject.

func (*Manager) Get

func (m *Manager) Get(id string) (ladon.Policy, error)

Get retrieves a policy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL