storage

package
v0.0.0-...-14a8109 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStorage

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

func NewBoltStorage

func NewBoltStorage(filename string) (BoltStorage, error)

NewBoltStorage is creating bolt storage

func (*BoltStorage) Add

func (db *BoltStorage) Add(binary model.Build) error

func (*BoltStorage) Delete

func (db *BoltStorage) Delete(binary model.Build) error

func (*BoltStorage) Get

func (db *BoltStorage) Get(binary model.Build) (model.Build, error)

func (*BoltStorage) GetVersionsList

func (db *BoltStorage) GetVersionsList() ([]model.Version, error)

type Engine

type Engine interface {
	GetVersionsList() ([]model.Version, error)
	Get(binary model.Build) (model.Build, error)
	Add(binary model.Build) error
	Delete(binary model.Build) error
}

type MockEngine

type MockEngine struct {
	mock.Mock
}

MockEngine is an autogenerated mock type for the Engine type

func (*MockEngine) Add

func (_m *MockEngine) Add(binary model.Build) error

Add provides a mock function with given fields: binary

func (*MockEngine) Delete

func (_m *MockEngine) Delete(binary model.Build) error

Delete provides a mock function with given fields: binary

func (*MockEngine) Get

func (_m *MockEngine) Get(binary model.Build) (model.Build, error)

Get provides a mock function with given fields: binary

func (*MockEngine) GetVersionsList

func (_m *MockEngine) GetVersionsList() ([]model.Version, error)

GetVersionsList provides a mock function with given fields:

Jump to

Keyboard shortcuts

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