policycache

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 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 Interface

type Interface interface {
	Put(string, api.Policy)
	Get(string) (api.Policy, bool)
	Delete(string)
	List() []api.Policy
	Keys() []string
}

func New

func New() Interface

type PolicyStorage

type PolicyStorage struct {
	// contains filtered or unexported fields
}

func (*PolicyStorage) Delete

func (p *PolicyStorage) Delete(key string)

func (*PolicyStorage) Get

func (p *PolicyStorage) Get(key string) (api.Policy, bool)

func (*PolicyStorage) Keys

func (p *PolicyStorage) Keys() []string

func (*PolicyStorage) List

func (p *PolicyStorage) List() []api.Policy

func (*PolicyStorage) Put

func (p *PolicyStorage) Put(key string, policy api.Policy)

Jump to

Keyboard shortcuts

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