binstore

package
v0.0.0-...-0da5870 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinStore

type BinStore interface {
	// Add to the binary store.
	Add(v *models.Version, reader io.Reader) error

	// Get a binary from the store.
	Get(v *models.Version) (io.Reader, error)

	// Delete a binary from the store.
	Delete(v *models.Version) error
}

BinStore represents a binary store.

func NewBoltBinStore

func NewBoltBinStore(address string) (BinStore, error)

NewBoltBinStore creates a new BoltDB interface.

func Resolve

func Resolve(path string) (BinStore, error)

Resolve the given connection string to a specific BinStore implementation.

type BoltDB

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

BoltDB store.

func (*BoltDB) Add

func (s *BoltDB) Add(v *models.Version, reader io.Reader) error

Add a new version to the BinStore.

func (*BoltDB) Delete

func (s *BoltDB) Delete(v *models.Version) error

Delete a Version from the BinStore.

func (*BoltDB) Get

func (s *BoltDB) Get(v *models.Version) (io.Reader, error)

Get a Version from the BinStore.

Jump to

Keyboard shortcuts

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