postgres

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: 8 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 {
	// contains filtered or unexported fields
}

Manager is a postgres implementation of ladon.Manager.

func New

func New(db *sql.DB) *Manager

func (*Manager) Create

func (s *Manager) Create(policy ladon.Policy) (err error)

func (*Manager) CreateSchemas

func (s *Manager) CreateSchemas() error

func (*Manager) Delete

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

func (*Manager) FindPoliciesForSubject

func (s *Manager) FindPoliciesForSubject(subject string) (policies ladon.Policies, err error)

func (*Manager) Get

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

Jump to

Keyboard shortcuts

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