routes

package
v0.0.0-...-d4ced42 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 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

func RootHandler(r chi.Router)

RootHandler initializes Vault KV API handler for given bundle

func TransitHandler

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