fakes

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

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 FakeBlobsDir

type FakeBlobsDir struct {
	InitStub func() error

	BlobsStub func() ([]releasedir.Blob, error)

	DownloadBlobsStub func() error

	UploadBlobsStub func() error

	TrackBlobStub func(string, io.ReadCloser) (releasedir.Blob, error)

	UntrackBlobStub func(string) error
	// contains filtered or unexported fields
}

func (*FakeBlobsDir) Blobs

func (fake *FakeBlobsDir) Blobs() ([]releasedir.Blob, error)

func (*FakeBlobsDir) BlobsCallCount

func (fake *FakeBlobsDir) BlobsCallCount() int

func (*FakeBlobsDir) BlobsReturns

func (fake *FakeBlobsDir) BlobsReturns(result1 []releasedir.Blob, result2 error)

func (*FakeBlobsDir) DownloadBlobs

func (fake *FakeBlobsDir) DownloadBlobs() error

func (*FakeBlobsDir) DownloadBlobsCallCount

func (fake *FakeBlobsDir) DownloadBlobsCallCount() int

func (*FakeBlobsDir) DownloadBlobsReturns

func (fake *FakeBlobsDir) DownloadBlobsReturns(result1 error)

func (*FakeBlobsDir) Init

func (fake *FakeBlobsDir) Init() error

func (*FakeBlobsDir) InitCallCount

func (fake *FakeBlobsDir) InitCallCount() int

func (*FakeBlobsDir) InitReturns

func (fake *FakeBlobsDir) InitReturns(result1 error)

func (*FakeBlobsDir) TrackBlob

func (fake *FakeBlobsDir) TrackBlob(arg1 string, arg2 io.ReadCloser) (releasedir.Blob, error)

func (*FakeBlobsDir) TrackBlobArgsForCall

func (fake *FakeBlobsDir) TrackBlobArgsForCall(i int) (string, io.ReadCloser)

func (*FakeBlobsDir) TrackBlobCallCount

func (fake *FakeBlobsDir) TrackBlobCallCount() int

func (*FakeBlobsDir) TrackBlobReturns

func (fake *FakeBlobsDir) TrackBlobReturns(result1 releasedir.Blob, result2 error)

func (*FakeBlobsDir) UntrackBlob

func (fake *FakeBlobsDir) UntrackBlob(arg1 string) error

func (*FakeBlobsDir) UntrackBlobArgsForCall

func (fake *FakeBlobsDir) UntrackBlobArgsForCall(i int) string

func (*FakeBlobsDir) UntrackBlobCallCount

func (fake *FakeBlobsDir) UntrackBlobCallCount() int

func (*FakeBlobsDir) UntrackBlobReturns

func (fake *FakeBlobsDir) UntrackBlobReturns(result1 error)

func (*FakeBlobsDir) UploadBlobs

func (fake *FakeBlobsDir) UploadBlobs() error

func (*FakeBlobsDir) UploadBlobsCallCount

func (fake *FakeBlobsDir) UploadBlobsCallCount() int

func (*FakeBlobsDir) UploadBlobsReturns

func (fake *FakeBlobsDir) UploadBlobsReturns(result1 error)

type FakeBlobsDirReporter

type FakeBlobsDirReporter struct {
	BlobDownloadStartedStub func(path string, size int64, blobID, sha1 string)

	BlobDownloadFinishedStub func(path, blobID string, err error)

	BlobUploadStartedStub func(path string, size int64, sha1 string)

	BlobUploadFinishedStub func(path, blobID string, err error)
	// contains filtered or unexported fields
}

func (*FakeBlobsDirReporter) BlobDownloadFinished

func (fake *FakeBlobsDirReporter) BlobDownloadFinished(path string, blobID string, err error)

func (*FakeBlobsDirReporter) BlobDownloadFinishedArgsForCall

func (fake *FakeBlobsDirReporter) BlobDownloadFinishedArgsForCall(i int) (string, string, error)

func (*FakeBlobsDirReporter) BlobDownloadFinishedCallCount

func (fake *FakeBlobsDirReporter) BlobDownloadFinishedCallCount() int

func (*FakeBlobsDirReporter) BlobDownloadStarted

func (fake *FakeBlobsDirReporter) BlobDownloadStarted(path string, size int64, blobID string, sha1 string)

func (*FakeBlobsDirReporter) BlobDownloadStartedArgsForCall

func (fake *FakeBlobsDirReporter) BlobDownloadStartedArgsForCall(i int) (string, int64, string, string)

func (*FakeBlobsDirReporter) BlobDownloadStartedCallCount

func (fake *FakeBlobsDirReporter) BlobDownloadStartedCallCount() int

func (*FakeBlobsDirReporter) BlobUploadFinished

func (fake *FakeBlobsDirReporter) BlobUploadFinished(path string, blobID string, err error)

func (*FakeBlobsDirReporter) BlobUploadFinishedArgsForCall

func (fake *FakeBlobsDirReporter) BlobUploadFinishedArgsForCall(i int) (string, string, error)

func (*FakeBlobsDirReporter) BlobUploadFinishedCallCount

func (fake *FakeBlobsDirReporter) BlobUploadFinishedCallCount() int

func (*FakeBlobsDirReporter) BlobUploadStarted

func (fake *FakeBlobsDirReporter) BlobUploadStarted(path string, size int64, sha1 string)

func (*FakeBlobsDirReporter) BlobUploadStartedArgsForCall

func (fake *FakeBlobsDirReporter) BlobUploadStartedArgsForCall(i int) (string, int64, string)

func (*FakeBlobsDirReporter) BlobUploadStartedCallCount

func (fake *FakeBlobsDirReporter) BlobUploadStartedCallCount() int

type FakeConfig

type FakeConfig struct {
	FinalNameStub func() (string, error)

	SaveFinalNameStub func(string) error

	BlobstoreStub func() (string, map[string]interface{}, error)
	// contains filtered or unexported fields
}

func (*FakeConfig) Blobstore

func (fake *FakeConfig) Blobstore() (string, map[string]interface{}, error)

func (*FakeConfig) BlobstoreCallCount

func (fake *FakeConfig) BlobstoreCallCount() int

func (*FakeConfig) BlobstoreReturns

func (fake *FakeConfig) BlobstoreReturns(result1 string, result2 map[string]interface{}, result3 error)

func (*FakeConfig) FinalName

func (fake *FakeConfig) FinalName() (string, error)

func (*FakeConfig) FinalNameCallCount

func (fake *FakeConfig) FinalNameCallCount() int

func (*FakeConfig) FinalNameReturns

func (fake *FakeConfig) FinalNameReturns(result1 string, result2 error)

func (*FakeConfig) SaveFinalName

func (fake *FakeConfig) SaveFinalName(arg1 string) error

func (*FakeConfig) SaveFinalNameArgsForCall

func (fake *FakeConfig) SaveFinalNameArgsForCall(i int) string

func (*FakeConfig) SaveFinalNameCallCount

func (fake *FakeConfig) SaveFinalNameCallCount() int

func (*FakeConfig) SaveFinalNameReturns

func (fake *FakeConfig) SaveFinalNameReturns(result1 error)

type FakeGenerator

type FakeGenerator struct {
	GenerateJobStub func(string) error

	GeneratePackageStub func(string) error
	// contains filtered or unexported fields
}

func (*FakeGenerator) GenerateJob

func (fake *FakeGenerator) GenerateJob(arg1 string) error

func (*FakeGenerator) GenerateJobArgsForCall

func (fake *FakeGenerator) GenerateJobArgsForCall(i int) string

func (*FakeGenerator) GenerateJobCallCount

func (fake *FakeGenerator) GenerateJobCallCount() int

func (*FakeGenerator) GenerateJobReturns

func (fake *FakeGenerator) GenerateJobReturns(result1 error)

func (*FakeGenerator) GeneratePackage

func (fake *FakeGenerator) GeneratePackage(arg1 string) error

func (*FakeGenerator) GeneratePackageArgsForCall

func (fake *FakeGenerator) GeneratePackageArgsForCall(i int) string

func (*FakeGenerator) GeneratePackageCallCount

func (fake *FakeGenerator) GeneratePackageCallCount() int

func (*FakeGenerator) GeneratePackageReturns

func (fake *FakeGenerator) GeneratePackageReturns(result1 error)

type FakeGitRepo

type FakeGitRepo struct {
	InitStub func() error

	LastCommitSHAStub func() (string, error)

	MustNotBeDirtyStub func(force bool) (dirty bool, err error)
	// contains filtered or unexported fields
}

func (*FakeGitRepo) Init

func (fake *FakeGitRepo) Init() error

func (*FakeGitRepo) InitCallCount

func (fake *FakeGitRepo) InitCallCount() int

func (*FakeGitRepo) InitReturns

func (fake *FakeGitRepo) InitReturns(result1 error)

func (*FakeGitRepo) LastCommitSHA

func (fake *FakeGitRepo) LastCommitSHA() (string, error)

func (*FakeGitRepo) LastCommitSHACallCount

func (fake *FakeGitRepo) LastCommitSHACallCount() int

func (*FakeGitRepo) LastCommitSHAReturns

func (fake *FakeGitRepo) LastCommitSHAReturns(result1 string, result2 error)

func (*FakeGitRepo) MustNotBeDirty

func (fake *FakeGitRepo) MustNotBeDirty(force bool) (dirty bool, err error)

func (*FakeGitRepo) MustNotBeDirtyArgsForCall

func (fake *FakeGitRepo) MustNotBeDirtyArgsForCall(i int) bool

func (*FakeGitRepo) MustNotBeDirtyCallCount

func (fake *FakeGitRepo) MustNotBeDirtyCallCount() int

func (*FakeGitRepo) MustNotBeDirtyReturns

func (fake *FakeGitRepo) MustNotBeDirtyReturns(result1 bool, result2 error)

type FakeReleaseDir

type FakeReleaseDir struct {
	InitStub func(bool) error

	ResetStub func() error

	GenerateJobStub func(string) error

	GeneratePackageStub func(string) error

	DefaultNameStub func() (string, error)

	NextDevVersionStub func(name string, timestamp bool) (semver.Version, error)

	NextFinalVersionStub func(name string) (semver.Version, error)

	LastReleaseStub func() (boshrel.Release, error)

	BuildReleaseStub func(name string, version semver.Version, force bool) (boshrel.Release, error)

	FinalizeReleaseStub func(release boshrel.Release, force bool) error

	BuildReleaseArchiveStub func(boshrel.Release) (string, error)
	// contains filtered or unexported fields
}

func (*FakeReleaseDir) BuildRelease

func (fake *FakeReleaseDir) BuildRelease(name string, version semver.Version, force bool) (boshrel.Release, error)

func (*FakeReleaseDir) BuildReleaseArchive

func (fake *FakeReleaseDir) BuildReleaseArchive(arg1 boshrel.Release) (string, error)

func (*FakeReleaseDir) BuildReleaseArchiveArgsForCall

func (fake *FakeReleaseDir) BuildReleaseArchiveArgsForCall(i int) boshrel.Release

func (*FakeReleaseDir) BuildReleaseArchiveCallCount

func (fake *FakeReleaseDir) BuildReleaseArchiveCallCount() int

func (*FakeReleaseDir) BuildReleaseArchiveReturns

func (fake *FakeReleaseDir) BuildReleaseArchiveReturns(result1 string, result2 error)

func (*FakeReleaseDir) BuildReleaseArgsForCall

func (fake *FakeReleaseDir) BuildReleaseArgsForCall(i int) (string, semver.Version, bool)

func (*FakeReleaseDir) BuildReleaseCallCount

func (fake *FakeReleaseDir) BuildReleaseCallCount() int

func (*FakeReleaseDir) BuildReleaseReturns

func (fake *FakeReleaseDir) BuildReleaseReturns(result1 boshrel.Release, result2 error)

func (*FakeReleaseDir) DefaultName

func (fake *FakeReleaseDir) DefaultName() (string, error)

func (*FakeReleaseDir) DefaultNameCallCount

func (fake *FakeReleaseDir) DefaultNameCallCount() int

func (*FakeReleaseDir) DefaultNameReturns

func (fake *FakeReleaseDir) DefaultNameReturns(result1 string, result2 error)

func (*FakeReleaseDir) FinalizeRelease

func (fake *FakeReleaseDir) FinalizeRelease(release boshrel.Release, force bool) error

func (*FakeReleaseDir) FinalizeReleaseArgsForCall

func (fake *FakeReleaseDir) FinalizeReleaseArgsForCall(i int) (boshrel.Release, bool)

func (*FakeReleaseDir) FinalizeReleaseCallCount

func (fake *FakeReleaseDir) FinalizeReleaseCallCount() int

func (*FakeReleaseDir) FinalizeReleaseReturns

func (fake *FakeReleaseDir) FinalizeReleaseReturns(result1 error)

func (*FakeReleaseDir) GenerateJob

func (fake *FakeReleaseDir) GenerateJob(arg1 string) error

func (*FakeReleaseDir) GenerateJobArgsForCall

func (fake *FakeReleaseDir) GenerateJobArgsForCall(i int) string

func (*FakeReleaseDir) GenerateJobCallCount

func (fake *FakeReleaseDir) GenerateJobCallCount() int

func (*FakeReleaseDir) GenerateJobReturns

func (fake *FakeReleaseDir) GenerateJobReturns(result1 error)

func (*FakeReleaseDir) GeneratePackage

func (fake *FakeReleaseDir) GeneratePackage(arg1 string) error

func (*FakeReleaseDir) GeneratePackageArgsForCall

func (fake *FakeReleaseDir) GeneratePackageArgsForCall(i int) string

func (*FakeReleaseDir) GeneratePackageCallCount

func (fake *FakeReleaseDir) GeneratePackageCallCount() int

func (*FakeReleaseDir) GeneratePackageReturns

func (fake *FakeReleaseDir) GeneratePackageReturns(result1 error)

func (*FakeReleaseDir) Init

func (fake *FakeReleaseDir) Init(arg1 bool) error

func (*FakeReleaseDir) InitArgsForCall

func (fake *FakeReleaseDir) InitArgsForCall(i int) bool

func (*FakeReleaseDir) InitCallCount

func (fake *FakeReleaseDir) InitCallCount() int

func (*FakeReleaseDir) InitReturns

func (fake *FakeReleaseDir) InitReturns(result1 error)

func (*FakeReleaseDir) LastRelease

func (fake *FakeReleaseDir) LastRelease() (boshrel.Release, error)

func (*FakeReleaseDir) LastReleaseCallCount

func (fake *FakeReleaseDir) LastReleaseCallCount() int

func (*FakeReleaseDir) LastReleaseReturns

func (fake *FakeReleaseDir) LastReleaseReturns(result1 boshrel.Release, result2 error)

func (*FakeReleaseDir) NextDevVersion

func (fake *FakeReleaseDir) NextDevVersion(name string, timestamp bool) (semver.Version, error)

func (*FakeReleaseDir) NextDevVersionArgsForCall

func (fake *FakeReleaseDir) NextDevVersionArgsForCall(i int) (string, bool)

func (*FakeReleaseDir) NextDevVersionCallCount

func (fake *FakeReleaseDir) NextDevVersionCallCount() int

func (*FakeReleaseDir) NextDevVersionReturns

func (fake *FakeReleaseDir) NextDevVersionReturns(result1 semver.Version, result2 error)

func (*FakeReleaseDir) NextFinalVersion

func (fake *FakeReleaseDir) NextFinalVersion(name string) (semver.Version, error)

func (*FakeReleaseDir) NextFinalVersionArgsForCall

func (fake *FakeReleaseDir) NextFinalVersionArgsForCall(i int) string

func (*FakeReleaseDir) NextFinalVersionCallCount

func (fake *FakeReleaseDir) NextFinalVersionCallCount() int

func (*FakeReleaseDir) NextFinalVersionReturns

func (fake *FakeReleaseDir) NextFinalVersionReturns(result1 semver.Version, result2 error)

func (*FakeReleaseDir) Reset

func (fake *FakeReleaseDir) Reset() error

func (*FakeReleaseDir) ResetCallCount

func (fake *FakeReleaseDir) ResetCallCount() int

func (*FakeReleaseDir) ResetReturns

func (fake *FakeReleaseDir) ResetReturns(result1 error)

type FakeReleaseIndex

type FakeReleaseIndex struct {
	LastVersionStub func(name string) (*semver.Version, error)

	ContainsStub func(boshrel.Release) (bool, error)

	AddStub func(boshrelman.Manifest) error

	ManifestPathStub func(name, version string) string

	ArchivePathStub func(boshrel.Release) (string, error)
	// contains filtered or unexported fields
}

func (*FakeReleaseIndex) Add

func (fake *FakeReleaseIndex) Add(arg1 boshrelman.Manifest) error

func (*FakeReleaseIndex) AddArgsForCall

func (fake *FakeReleaseIndex) AddArgsForCall(i int) boshrelman.Manifest

func (*FakeReleaseIndex) AddCallCount

func (fake *FakeReleaseIndex) AddCallCount() int

func (*FakeReleaseIndex) AddReturns

func (fake *FakeReleaseIndex) AddReturns(result1 error)

func (*FakeReleaseIndex) ArchivePath

func (fake *FakeReleaseIndex) ArchivePath(arg1 boshrel.Release) (string, error)

func (*FakeReleaseIndex) ArchivePathArgsForCall

func (fake *FakeReleaseIndex) ArchivePathArgsForCall(i int) boshrel.Release

func (*FakeReleaseIndex) ArchivePathCallCount

func (fake *FakeReleaseIndex) ArchivePathCallCount() int

func (*FakeReleaseIndex) ArchivePathReturns

func (fake *FakeReleaseIndex) ArchivePathReturns(result1 string, result2 error)

func (*FakeReleaseIndex) Contains

func (fake *FakeReleaseIndex) Contains(arg1 boshrel.Release) (bool, error)

func (*FakeReleaseIndex) ContainsArgsForCall

func (fake *FakeReleaseIndex) ContainsArgsForCall(i int) boshrel.Release

func (*FakeReleaseIndex) ContainsCallCount

func (fake *FakeReleaseIndex) ContainsCallCount() int

func (*FakeReleaseIndex) ContainsReturns

func (fake *FakeReleaseIndex) ContainsReturns(result1 bool, result2 error)

func (*FakeReleaseIndex) LastVersion

func (fake *FakeReleaseIndex) LastVersion(name string) (*semver.Version, error)

func (*FakeReleaseIndex) LastVersionArgsForCall

func (fake *FakeReleaseIndex) LastVersionArgsForCall(i int) string

func (*FakeReleaseIndex) LastVersionCallCount

func (fake *FakeReleaseIndex) LastVersionCallCount() int

func (*FakeReleaseIndex) LastVersionReturns

func (fake *FakeReleaseIndex) LastVersionReturns(result1 *semver.Version, result2 error)

func (*FakeReleaseIndex) ManifestPath

func (fake *FakeReleaseIndex) ManifestPath(name string, version string) string

func (*FakeReleaseIndex) ManifestPathArgsForCall

func (fake *FakeReleaseIndex) ManifestPathArgsForCall(i int) (string, string)

func (*FakeReleaseIndex) ManifestPathCallCount

func (fake *FakeReleaseIndex) ManifestPathCallCount() int

func (*FakeReleaseIndex) ManifestPathReturns

func (fake *FakeReleaseIndex) ManifestPathReturns(result1 string)

type FakeReleaseIndexReporter

type FakeReleaseIndexReporter struct {
	ReleaseIndexAddedStub func(name, desc string, err error)
	// contains filtered or unexported fields
}

func (*FakeReleaseIndexReporter) ReleaseIndexAdded

func (fake *FakeReleaseIndexReporter) ReleaseIndexAdded(name string, desc string, err error)

func (*FakeReleaseIndexReporter) ReleaseIndexAddedArgsForCall

func (fake *FakeReleaseIndexReporter) ReleaseIndexAddedArgsForCall(i int) (string, string, error)

func (*FakeReleaseIndexReporter) ReleaseIndexAddedCallCount

func (fake *FakeReleaseIndexReporter) ReleaseIndexAddedCallCount() int

Jump to

Keyboard shortcuts

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