fakes

package
v0.0.0-...-73df0bb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

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, digest crypto.Digest) (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, digest crypto.Digest) (string, error)

func (*FakeBlobManagerInterface) GetPathArgsForCall

func (fake *FakeBlobManagerInterface) GetPathArgsForCall(i int) (string, crypto.Digest)

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 {
	GetStub func(blobID string) (fileName string, err error)

	CleanUpStub func(fileName string) (err error)

	CreateStub func(fileName string) (blobID string, err error)

	ValidateStub func() (err error)

	DeleteStub func(blobId string) (err error)
	// contains filtered or unexported fields
}

func (*FakeBlobstore) CleanUp

func (fake *FakeBlobstore) CleanUp(fileName string) (err error)

func (*FakeBlobstore) CleanUpArgsForCall

func (fake *FakeBlobstore) CleanUpArgsForCall(i int) string

func (*FakeBlobstore) CleanUpCallCount

func (fake *FakeBlobstore) CleanUpCallCount() int

func (*FakeBlobstore) CleanUpReturns

func (fake *FakeBlobstore) CleanUpReturns(result1 error)

func (*FakeBlobstore) Create

func (fake *FakeBlobstore) Create(fileName string) (blobID string, err error)

func (*FakeBlobstore) CreateArgsForCall

func (fake *FakeBlobstore) CreateArgsForCall(i int) string

func (*FakeBlobstore) CreateCallCount

func (fake *FakeBlobstore) CreateCallCount() int

func (*FakeBlobstore) CreateReturns

func (fake *FakeBlobstore) CreateReturns(result1 string, result2 error)

func (*FakeBlobstore) Delete

func (fake *FakeBlobstore) Delete(blobId string) (err error)

func (*FakeBlobstore) DeleteArgsForCall

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

func (*FakeBlobstore) DeleteCallCount

func (fake *FakeBlobstore) DeleteCallCount() int

func (*FakeBlobstore) DeleteReturns

func (fake *FakeBlobstore) DeleteReturns(result1 error)

func (*FakeBlobstore) Get

func (fake *FakeBlobstore) Get(blobID string) (fileName string, err error)

func (*FakeBlobstore) GetArgsForCall

func (fake *FakeBlobstore) GetArgsForCall(i int) string

func (*FakeBlobstore) GetCallCount

func (fake *FakeBlobstore) GetCallCount() int

func (*FakeBlobstore) GetReturns

func (fake *FakeBlobstore) GetReturns(result1 string, result2 error)

func (*FakeBlobstore) Invocations

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

func (*FakeBlobstore) Validate

func (fake *FakeBlobstore) Validate() (err error)

func (*FakeBlobstore) ValidateCallCount

func (fake *FakeBlobstore) ValidateCallCount() int

func (*FakeBlobstore) ValidateReturns

func (fake *FakeBlobstore) ValidateReturns(result1 error)

type FakeDigestBlobstore

type FakeDigestBlobstore struct {
	GetStub func(blobID string, digest boshcrypto.Digest) (fileName string, err error)

	CleanUpStub func(fileName string) (err error)

	CreateStub func(fileName string) (blobID string, digest boshcrypto.MultipleDigest, err error)

	ValidateStub func() (err error)

	DeleteStub func(blobId string) (err error)
	// contains filtered or unexported fields
}

func (*FakeDigestBlobstore) CleanUp

func (fake *FakeDigestBlobstore) CleanUp(fileName string) (err error)

func (*FakeDigestBlobstore) CleanUpArgsForCall

func (fake *FakeDigestBlobstore) CleanUpArgsForCall(i int) string

func (*FakeDigestBlobstore) CleanUpCallCount

func (fake *FakeDigestBlobstore) CleanUpCallCount() int

func (*FakeDigestBlobstore) CleanUpReturns

func (fake *FakeDigestBlobstore) CleanUpReturns(result1 error)

func (*FakeDigestBlobstore) Create

func (fake *FakeDigestBlobstore) Create(fileName string) (blobID string, digest boshcrypto.MultipleDigest, err error)

func (*FakeDigestBlobstore) CreateArgsForCall

func (fake *FakeDigestBlobstore) CreateArgsForCall(i int) string

func (*FakeDigestBlobstore) CreateCallCount

func (fake *FakeDigestBlobstore) CreateCallCount() int

func (*FakeDigestBlobstore) CreateReturns

func (fake *FakeDigestBlobstore) CreateReturns(result1 string, result2 boshcrypto.MultipleDigest, result3 error)

func (*FakeDigestBlobstore) Delete

func (fake *FakeDigestBlobstore) Delete(blobId string) (err error)

func (*FakeDigestBlobstore) DeleteArgsForCall

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

func (*FakeDigestBlobstore) DeleteCallCount

func (fake *FakeDigestBlobstore) DeleteCallCount() int

func (*FakeDigestBlobstore) DeleteReturns

func (fake *FakeDigestBlobstore) DeleteReturns(result1 error)

func (*FakeDigestBlobstore) Get

func (fake *FakeDigestBlobstore) Get(blobID string, digest boshcrypto.Digest) (fileName string, err error)

func (*FakeDigestBlobstore) GetArgsForCall

func (fake *FakeDigestBlobstore) GetArgsForCall(i int) (string, boshcrypto.Digest)

func (*FakeDigestBlobstore) GetCallCount

func (fake *FakeDigestBlobstore) GetCallCount() int

func (*FakeDigestBlobstore) GetReturns

func (fake *FakeDigestBlobstore) GetReturns(result1 string, result2 error)

func (*FakeDigestBlobstore) Invocations

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

func (*FakeDigestBlobstore) Validate

func (fake *FakeDigestBlobstore) Validate() (err error)

func (*FakeDigestBlobstore) ValidateCallCount

func (fake *FakeDigestBlobstore) ValidateCallCount() int

func (*FakeDigestBlobstore) ValidateReturns

func (fake *FakeDigestBlobstore) ValidateReturns(result1 error)

Jump to

Keyboard shortcuts

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