policy

package
v0.0.0-...-38655de Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-3.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 Config

type Config struct {
	Storage driver.Storager
}

func (*Config) Add

func (c *Config) Add(name, group, collection string) error

func (*Config) Count

func (c *Config) Count() int

func (*Config) End

func (c *Config) End()

func (*Config) Find

func (c *Config) Find(name string) bool

func (*Config) List

func (c *Config) List(filters map[string]string) ([]types.Policy, error)

func (*Config) Remove

func (c *Config) Remove(name string) error

func (*Config) Validate

func (c *Config) Validate(user, rType, rValue, rOptions string) bool

type Policy

type Policy interface {
	Add(name, group, collection string) error
	Remove(name string) error
	List(filters map[string]string) ([]types.Policy, error)
	Count() int
	Find(name string) bool
	Validate(user, rType, rValue, rOptions string) bool
	End()
}

func New

func New(driver, options string) (Policy, error)

Jump to

Keyboard shortcuts

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