fakes

package
v0.0.0-...-3d8c8f1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBlobManagerInterface

type FakeBlobManagerInterface struct {
	FetchStub func(blobID string) (system.File, error, int)

	WriteStub func(blobID string, reader io.Reader) error

	GetPathStub func(blobID string) (string, error)

	DeleteStub func(blobID string) error

	BlobExistsStub func(blobID string) bool
	// contains filtered or unexported fields
}

func (*FakeBlobManagerInterface) BlobExists

func (fake *FakeBlobManagerInterface) BlobExists(blobID string) bool

func (*FakeBlobManagerInterface) BlobExistsArgsForCall

func (fake *FakeBlobManagerInterface) BlobExistsArgsForCall(i int) string

func (*FakeBlobManagerInterface) BlobExistsCallCount

func (fake *FakeBlobManagerInterface) BlobExistsCallCount() int

func (*FakeBlobManagerInterface) BlobExistsReturns

func (fake *FakeBlobManagerInterface) BlobExistsReturns(result1 bool)

func (*FakeBlobManagerInterface) Delete

func (fake *FakeBlobManagerInterface) Delete(blobID string) error

func (*FakeBlobManagerInterface) DeleteArgsForCall

func (fake *FakeBlobManagerInterface) DeleteArgsForCall(i int) string

func (*FakeBlobManagerInterface) DeleteCallCount

func (fake *FakeBlobManagerInterface) DeleteCallCount() int

func (*FakeBlobManagerInterface) DeleteReturns

func (fake *FakeBlobManagerInterface) DeleteReturns(result1 error)

func (*FakeBlobManagerInterface) Fetch

func (fake *FakeBlobManagerInterface) Fetch(blobID string) (system.File, error, int)

func (*FakeBlobManagerInterface) FetchArgsForCall

func (fake *FakeBlobManagerInterface) FetchArgsForCall(i int) string

func (*FakeBlobManagerInterface) FetchCallCount

func (fake *FakeBlobManagerInterface) FetchCallCount() int

func (*FakeBlobManagerInterface) FetchReturns

func (fake *FakeBlobManagerInterface) FetchReturns(result1 system.File, result2 error, result3 int)

func (*FakeBlobManagerInterface) GetPath

func (fake *FakeBlobManagerInterface) GetPath(blobID string) (string, error)

func (*FakeBlobManagerInterface) GetPathArgsForCall

func (fake *FakeBlobManagerInterface) GetPathArgsForCall(i int) string

func (*FakeBlobManagerInterface) GetPathCallCount

func (fake *FakeBlobManagerInterface) GetPathCallCount() int

func (*FakeBlobManagerInterface) GetPathReturns

func (fake *FakeBlobManagerInterface) GetPathReturns(result1 string, result2 error)

func (*FakeBlobManagerInterface) Invocations

func (fake *FakeBlobManagerInterface) Invocations() map[string][][]interface{}

func (*FakeBlobManagerInterface) Write

func (fake *FakeBlobManagerInterface) Write(blobID string, reader io.Reader) error

func (*FakeBlobManagerInterface) WriteArgsForCall

func (fake *FakeBlobManagerInterface) WriteArgsForCall(i int) (string, io.Reader)

func (*FakeBlobManagerInterface) WriteCallCount

func (fake *FakeBlobManagerInterface) WriteCallCount() int

func (*FakeBlobManagerInterface) WriteReturns

func (fake *FakeBlobManagerInterface) WriteReturns(result1 error)

type FakeBlobstore

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

	CleanUpFileName string
	CleanUpErr      error

	DeleteBlobID string
	DeleteErr    error

	CreateFileNames []string
	CreateBlobID    string
	CreateBlobIDs   []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, error)

func (*FakeBlobstore) Delete

func (bs *FakeBlobstore) Delete(blobId string) error

func (*FakeBlobstore) Get

func (bs *FakeBlobstore) Get(blobID string, fingerprint boshcrypto.Digest) (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