keyset

package
v2.28.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 9 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 - the keyset

func New

func New(storage *metadata.Storage, keysetRegexp string) *Manager

New - initializes

func (*Manager) Check

func (ks *Manager) Check(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Check if a keyspace exists

func (*Manager) CheckKeyset

func (ks *Manager) CheckKeyset(keyset string) bool

CheckKeyset - checks if keyset exists

func (*Manager) Create

func (ks *Manager) Create(keyset string) gobol.Error

Create - creates a new index

func (*Manager) CreateKeyset

func (ks *Manager) CreateKeyset(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

CreateKeyset - creates a new keyset

func (*Manager) Delete

func (ks *Manager) Delete(keyset string) gobol.Error

Delete - deletes the keyset

func (*Manager) DeleteKeyset

func (ks *Manager) DeleteKeyset(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteKeyset - deletes a keyset

func (*Manager) GetKeysets

func (ks *Manager) GetKeysets(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetKeysets - returns all stored keysets

func (*Manager) IsKeysetNameValid

func (ks *Manager) IsKeysetNameValid(keyset string) bool

IsKeysetNameValid - checks if the keyset name is valid

Jump to

Keyboard shortcuts

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