backends

package
v0.0.0-...-abe558f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll() map[string]Backend

func Register

func Register(name string, be Backend)

func Select

func Select(name string) error

Types

type Backend

type Backend interface {
	Init() error                                  // Backend initialization (Create directory etc.)
	Read() error                                  // Read configuration
	Save() error                                  // Save configuration
	Link(string) error                            // Add item to storage
	Unlink(string) error                          // Remove item from storage, put back to original place
	Restore(string) error                         // Create link from storage to location. (Or copy, depends on backend).
	Remove()                                      // Remove item from machine but not storage
	Get(plugin string, content interface{}) error // Get plugin configuration
	Add(string, interface{}) error                // Add new plugin configuration
}

func Get

func Get() Backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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