releasedirfakes

package
v0.0.125 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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(numOfParallelWorkers int) 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(numOfParallelWorkers int) error

func (*FakeBlobsDir) DownloadBlobsArgsForCall

func (fake *FakeBlobsDir) DownloadBlobsArgsForCall(i int) int

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) Invocations

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

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

func (*FakeBlobsDirReporter) Invocations

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

type FakeConfig

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

	SaveNameStub 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) Invocations

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

func (*FakeConfig) Name added in v0.0.117

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

func (*FakeConfig) NameCallCount added in v0.0.117

func (fake *FakeConfig) NameCallCount() int

func (*FakeConfig) NameReturns added in v0.0.117

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

func (*FakeConfig) SaveName added in v0.0.117

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

func (*FakeConfig) SaveNameArgsForCall added in v0.0.117

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

func (*FakeConfig) SaveNameCallCount added in v0.0.117

func (fake *FakeConfig) SaveNameCallCount() int

func (*FakeConfig) SaveNameReturns added in v0.0.117

func (fake *FakeConfig) SaveNameReturns(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)

func (*FakeGenerator) Invocations

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

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) Invocations

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

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) (gssver.Version, error)

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

	LastReleaseStub func() (birel.Release, error)

	BuildReleaseStub func(name string, version gssver.Version, force bool) (birel.Release, error)

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

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

func (*FakeReleaseDir) BuildRelease

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

func (*FakeReleaseDir) BuildReleaseArchive

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

func (*FakeReleaseDir) BuildReleaseArchiveArgsForCall

func (fake *FakeReleaseDir) BuildReleaseArchiveArgsForCall(i int) birel.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, gssver.Version, bool)

func (*FakeReleaseDir) BuildReleaseCallCount

func (fake *FakeReleaseDir) BuildReleaseCallCount() int

func (*FakeReleaseDir) BuildReleaseReturns

func (fake *FakeReleaseDir) BuildReleaseReturns(result1 birel.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 birel.Release, force bool) error

func (*FakeReleaseDir) FinalizeReleaseArgsForCall

func (fake *FakeReleaseDir) FinalizeReleaseArgsForCall(i int) (birel.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) Invocations

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

func (*FakeReleaseDir) LastRelease

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

func (*FakeReleaseDir) LastReleaseCallCount

func (fake *FakeReleaseDir) LastReleaseCallCount() int

func (*FakeReleaseDir) LastReleaseReturns

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

func (*FakeReleaseDir) NextDevVersion

func (fake *FakeReleaseDir) NextDevVersion(name string, timestamp bool) (gssver.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 gssver.Version, result2 error)

func (*FakeReleaseDir) NextFinalVersion

func (fake *FakeReleaseDir) NextFinalVersion(name string) (gssver.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 gssver.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) (*version.Version, error)

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

	AddStub func(manifest.Manifest) error

	ManifestPathStub func(name, version string) string

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

func (*FakeReleaseIndex) Add

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

func (*FakeReleaseIndex) AddArgsForCall

func (fake *FakeReleaseIndex) AddArgsForCall(i int) manifest.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 release.Release) (string, error)

func (*FakeReleaseIndex) ArchivePathArgsForCall

func (fake *FakeReleaseIndex) ArchivePathArgsForCall(i int) release.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 release.Release) (bool, error)

func (*FakeReleaseIndex) ContainsArgsForCall

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

func (*FakeReleaseIndex) ContainsCallCount

func (fake *FakeReleaseIndex) ContainsCallCount() int

func (*FakeReleaseIndex) ContainsReturns

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

func (*FakeReleaseIndex) Invocations

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

func (*FakeReleaseIndex) LastVersion

func (fake *FakeReleaseIndex) LastVersion(name string) (*version.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 *version.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) Invocations

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

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