routes

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KVHandler

func KVHandler(r chi.Router, bm manager.Backend)

KVHandler initializes Vault KV API handler for given bundle

func RootHandler added in v0.1.6

func RootHandler(r chi.Router)

RootHandler initializes Vault KV API handler for given bundle

func TransitHandler added in v0.1.6

func TransitHandler(r chi.Router, keyName string, tr value.Transformer)

TransitHandler initializes Vault Transit API handler for given transformer

Types

type KV

type KV map[string]interface{}

KV is an alias to map for readability.

type Resource

type Resource struct {
	Context string `json:"@context,omitempty"`
	Type    string `json:"@type,omitempty"`
	ID      string `json:"@id,omitempty"`
}

Resource describes a JSON-LD resource header

Jump to

Keyboard shortcuts

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