policy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileConfig

func FileConfig(filename string) *naiveFileStore

func Mock

func Mock(policies ...application.Policy) *mockStore

func New

func New(store Store) (*policiesImpl, error)

Types

type Store

type Store interface {
	// Save policies list
	SetPolicies(policies []application.Policy) error
	// Load policies list
	GetPolicies() ([]application.Policy, error)
}

Store contains policies configuration for reload

Jump to

Keyboard shortcuts

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