policies

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store adapter

Store is the package state variable which contains database connections

Functions

func CreatePolicy

func CreatePolicy(w http.ResponseWriter, r *http.Request)

CreatePolicy expects permissions from client and creates new policy group in database.

func DeletePolicies

func DeletePolicies(w http.ResponseWriter, r *http.Request)

DeletePolicies deletes given policies

func GetPolicies

func GetPolicies(w http.ResponseWriter, r *http.Request)

GetPolicies returns all policies of an organization

func GetPolicy

func GetPolicy(w http.ResponseWriter, r *http.Request)

GetPolicy returns policy details from policyID

func InitStore

func InitStore(state *global.State)

InitStore initialises package state

func InitStoreMock

func InitStoreMock() *policyMock

InitStoreMock will init mock state of this package

func UpdatePolicy

func UpdatePolicy(w http.ResponseWriter, r *http.Request)

UpdatePolicy updates given policy of an organization

Types

This section is empty.

Jump to

Keyboard shortcuts

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