objectstore

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// General use for Invalid type.
	ErrInvalidType      = errors.New("Invalid ObjectStore Type")
	ErrInvalidInterface = errors.New("Invalid Plugin does not implement ObjectStore")
)

Functions

func LoadObjectStores

func LoadObjectStores(path string) (map[string]ObjectStore, error)

LoadObjectStores loads all the available plugins from the path

Types

type ObjectStore

type ObjectStore interface {
	// Saves manifests
	Save(hash, operation string, yaml []byte) error
	New(bucket string) ObjectStore
}

ObjectStore is the interface a objectstore plugin needs to implement

Jump to

Keyboard shortcuts

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