inmem

package
v0.0.0-...-20af522 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend implements stori.Backend.

func New

func New() (*Backend, error)

New returns an new in-memory backend.

func (*Backend) CreateNamespace

func (b *Backend) CreateNamespace(
	conf stori.NamespaceConfig) error

CreateNamespace creates a new namespace in the registry.

func (*Backend) GetSchema

func (b *Backend) GetSchema() []byte

GetSchema retrieves a valid jsonschema in bytes from the backend. Used to validate the config files.

func (*Backend) Setup

func (b *Backend) Setup(interface{}) error

Setup passes validated configuration data to the backend for initialization.

Jump to

Keyboard shortcuts

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