store

package
v0.0.0-...-c8a5df3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package store defines the interfaces that implements the basic 'store' abstraction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, fn Constructor) error

Register registers a new Store Constructor with the given name.

Types

type Constructor

type Constructor func(name string, cfg config.StoreConfig) (Store, error)

A Constructor is a function that creates a Store.

type Store

type Store interface {
	// String returns the target name of the store.
	String() string

	// embed the storage.Storage interface.
	storage.Storage
}

Store is the store interface.

func Create

func Create(name string, cfg config.StoreConfig) (Store, error)

Create creates a new store using the given named implementation.

Directories

Path Synopsis
fs
service
Package service implements a simple store.Store using an existing file system.
Package service implements a simple store.Store using an existing file system.
changer/fake
Package fake provides a fake tape.Changer.
Package fake provides a fake tape.Changer.
changer/mtx
Package mtx provides a changer.Changer that uses the mtx command to control a SCSI media changer.
Package mtx provides a changer.Changer that uses the mtx command to control a SCSI media changer.
inv
inv/postgres
Package postgres implements a PostgreSQL backed inv.Inventory.
Package postgres implements a PostgreSQL backed inv.Inventory.
proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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