fakes

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 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

	CreateFileNames    []string
	CreateBlobID       string
	CreateBlobIDs      []string
	CreateFingerprint  string
	CreateFingerprints []string
	CreateErr          error
	CreateErrs         []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