fakes

package
Version: v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBlobstore

type FakeBlobstore struct {
	GetBlobIDs      []string
	GetFingerprints []string
	GetFileName     string
	GetFileNames    []string
	GetError        error
	GetErrs         []error

	CleanUpFileName string
	CleanUpErr      error

	CreateFileName    string
	CreateBlobID      string
	CreateFingerprint string
	CreateErr         error
	CreateCallBack    func()

	ValidateError error
}

func NewFakeBlobstore

func NewFakeBlobstore() *FakeBlobstore

func (*FakeBlobstore) CleanUp

func (bs *FakeBlobstore) CleanUp(fileName string) error

func (*FakeBlobstore) Create

func (bs *FakeBlobstore) Create(fileName string) (string, string, error)

func (*FakeBlobstore) Get

func (bs *FakeBlobstore) Get(blobID, fingerprint string) (string, error)

func (*FakeBlobstore) Validate

func (bs *FakeBlobstore) Validate() error

Jump to

Keyboard shortcuts

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