Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type ExtractInput
- type FakeCloudStemcell
- type FakeExtractedStemcell
- func (fake *FakeExtractedStemcell) Cleanup() error
- func (fake *FakeExtractedStemcell) CleanupCallCount() int
- func (fake *FakeExtractedStemcell) CleanupReturns(result1 error)
- func (fake *FakeExtractedStemcell) CleanupReturnsOnCall(i int, result1 error)
- func (fake *FakeExtractedStemcell) EmptyImage() error
- func (fake *FakeExtractedStemcell) EmptyImageCallCount() int
- func (fake *FakeExtractedStemcell) EmptyImageReturns(result1 error)
- func (fake *FakeExtractedStemcell) EmptyImageReturnsOnCall(i int, result1 error)
- func (fake *FakeExtractedStemcell) GetExtractedPath() string
- func (fake *FakeExtractedStemcell) GetExtractedPathCallCount() int
- func (fake *FakeExtractedStemcell) GetExtractedPathReturns(result1 string)
- func (fake *FakeExtractedStemcell) GetExtractedPathReturnsOnCall(i int, result1 string)
- func (fake *FakeExtractedStemcell) Invocations() map[string][][]interface{}
- func (fake *FakeExtractedStemcell) Manifest() stemcell.Manifest
- func (fake *FakeExtractedStemcell) ManifestCallCount() int
- func (fake *FakeExtractedStemcell) ManifestReturns(result1 stemcell.Manifest)
- func (fake *FakeExtractedStemcell) ManifestReturnsOnCall(i int, result1 stemcell.Manifest)
- func (fake *FakeExtractedStemcell) OsAndVersion() string
- func (fake *FakeExtractedStemcell) OsAndVersionCallCount() int
- func (fake *FakeExtractedStemcell) OsAndVersionReturns(result1 string)
- func (fake *FakeExtractedStemcell) OsAndVersionReturnsOnCall(i int, result1 string)
- func (fake *FakeExtractedStemcell) Pack(arg1 string) error
- func (fake *FakeExtractedStemcell) PackArgsForCall(i int) string
- func (fake *FakeExtractedStemcell) PackCallCount() int
- func (fake *FakeExtractedStemcell) PackReturns(result1 error)
- func (fake *FakeExtractedStemcell) PackReturnsOnCall(i int, result1 error)
- func (fake *FakeExtractedStemcell) SetCloudProperties(arg1 biproperty.Map)
- func (fake *FakeExtractedStemcell) SetCloudPropertiesArgsForCall(i int) biproperty.Map
- func (fake *FakeExtractedStemcell) SetCloudPropertiesCallCount() int
- func (fake *FakeExtractedStemcell) SetName(arg1 string)
- func (fake *FakeExtractedStemcell) SetNameArgsForCall(i int) string
- func (fake *FakeExtractedStemcell) SetNameCallCount() int
- func (fake *FakeExtractedStemcell) SetVersion(arg1 string)
- func (fake *FakeExtractedStemcell) SetVersionArgsForCall(i int) string
- func (fake *FakeExtractedStemcell) SetVersionCallCount() int
- func (fake *FakeExtractedStemcell) String() string
- func (fake *FakeExtractedStemcell) StringCallCount() int
- func (fake *FakeExtractedStemcell) StringReturns(result1 string)
- func (fake *FakeExtractedStemcell) StringReturnsOnCall(i int, result1 string)
- type FakeExtractor
- type FakeManager
- func (m *FakeManager) DeleteUnused(eventLoggerStage biui.Stage) error
- func (m *FakeManager) FindCurrent() ([]bistemcell.CloudStemcell, error)
- func (m *FakeManager) FindUnused() ([]bistemcell.CloudStemcell, error)
- func (m *FakeManager) SetFindUnusedBehavior(stemcells []bistemcell.CloudStemcell, err error)
- func (m *FakeManager) SetUploadBehavior(extractedStemcell bistemcell.ExtractedStemcell, stage biui.Stage, ...)
- func (m *FakeManager) Upload(stemcell bistemcell.ExtractedStemcell, stage biui.Stage) (bistemcell.CloudStemcell, error)
- type FakeManagerFactory
- type FakeStemcellReader
- type NewManagerInput
- type ReadInput
- type ReadOutput
- type UploadInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractInput ¶
type ExtractInput struct {
TarballPath string
}
type FakeCloudStemcell ¶
type FakeCloudStemcell struct { PromoteAsCurrentCalledTimes int PromoteAsCurrentErr error DeleteCalledTimes int DeleteErr error // contains filtered or unexported fields }
func NewFakeCloudStemcell ¶
func NewFakeCloudStemcell(cid, name, version string) *FakeCloudStemcell
func (*FakeCloudStemcell) CID ¶
func (s *FakeCloudStemcell) CID() string
func (*FakeCloudStemcell) Delete ¶
func (s *FakeCloudStemcell) Delete() error
func (*FakeCloudStemcell) Name ¶
func (s *FakeCloudStemcell) Name() string
func (*FakeCloudStemcell) PromoteAsCurrent ¶
func (s *FakeCloudStemcell) PromoteAsCurrent() error
func (*FakeCloudStemcell) Version ¶
func (s *FakeCloudStemcell) Version() string
type FakeExtractedStemcell ¶
type FakeExtractedStemcell struct { ManifestStub func() stemcell.Manifest CleanupStub func() error OsAndVersionStub func() string SetNameStub func(string) SetVersionStub func(string) SetCloudPropertiesStub func(biproperty.Map) GetExtractedPathStub func() string PackStub func(string) error EmptyImageStub func() error StringStub func() string // contains filtered or unexported fields }
func (*FakeExtractedStemcell) Cleanup ¶
func (fake *FakeExtractedStemcell) Cleanup() error
func (*FakeExtractedStemcell) CleanupCallCount ¶
func (fake *FakeExtractedStemcell) CleanupCallCount() int
func (*FakeExtractedStemcell) CleanupReturns ¶
func (fake *FakeExtractedStemcell) CleanupReturns(result1 error)
func (*FakeExtractedStemcell) CleanupReturnsOnCall ¶
func (fake *FakeExtractedStemcell) CleanupReturnsOnCall(i int, result1 error)
func (*FakeExtractedStemcell) EmptyImage ¶
func (fake *FakeExtractedStemcell) EmptyImage() error
func (*FakeExtractedStemcell) EmptyImageCallCount ¶
func (fake *FakeExtractedStemcell) EmptyImageCallCount() int
func (*FakeExtractedStemcell) EmptyImageReturns ¶
func (fake *FakeExtractedStemcell) EmptyImageReturns(result1 error)
func (*FakeExtractedStemcell) EmptyImageReturnsOnCall ¶
func (fake *FakeExtractedStemcell) EmptyImageReturnsOnCall(i int, result1 error)
func (*FakeExtractedStemcell) GetExtractedPath ¶
func (fake *FakeExtractedStemcell) GetExtractedPath() string
func (*FakeExtractedStemcell) GetExtractedPathCallCount ¶
func (fake *FakeExtractedStemcell) GetExtractedPathCallCount() int
func (*FakeExtractedStemcell) GetExtractedPathReturns ¶
func (fake *FakeExtractedStemcell) GetExtractedPathReturns(result1 string)
func (*FakeExtractedStemcell) GetExtractedPathReturnsOnCall ¶
func (fake *FakeExtractedStemcell) GetExtractedPathReturnsOnCall(i int, result1 string)
func (*FakeExtractedStemcell) Invocations ¶
func (fake *FakeExtractedStemcell) Invocations() map[string][][]interface{}
func (*FakeExtractedStemcell) Manifest ¶
func (fake *FakeExtractedStemcell) Manifest() stemcell.Manifest
func (*FakeExtractedStemcell) ManifestCallCount ¶
func (fake *FakeExtractedStemcell) ManifestCallCount() int
func (*FakeExtractedStemcell) ManifestReturns ¶
func (fake *FakeExtractedStemcell) ManifestReturns(result1 stemcell.Manifest)
func (*FakeExtractedStemcell) ManifestReturnsOnCall ¶
func (fake *FakeExtractedStemcell) ManifestReturnsOnCall(i int, result1 stemcell.Manifest)
func (*FakeExtractedStemcell) OsAndVersion ¶
func (fake *FakeExtractedStemcell) OsAndVersion() string
func (*FakeExtractedStemcell) OsAndVersionCallCount ¶
func (fake *FakeExtractedStemcell) OsAndVersionCallCount() int
func (*FakeExtractedStemcell) OsAndVersionReturns ¶
func (fake *FakeExtractedStemcell) OsAndVersionReturns(result1 string)
func (*FakeExtractedStemcell) OsAndVersionReturnsOnCall ¶
func (fake *FakeExtractedStemcell) OsAndVersionReturnsOnCall(i int, result1 string)
func (*FakeExtractedStemcell) Pack ¶
func (fake *FakeExtractedStemcell) Pack(arg1 string) error
func (*FakeExtractedStemcell) PackArgsForCall ¶
func (fake *FakeExtractedStemcell) PackArgsForCall(i int) string
func (*FakeExtractedStemcell) PackCallCount ¶
func (fake *FakeExtractedStemcell) PackCallCount() int
func (*FakeExtractedStemcell) PackReturns ¶
func (fake *FakeExtractedStemcell) PackReturns(result1 error)
func (*FakeExtractedStemcell) PackReturnsOnCall ¶
func (fake *FakeExtractedStemcell) PackReturnsOnCall(i int, result1 error)
func (*FakeExtractedStemcell) SetCloudProperties ¶
func (fake *FakeExtractedStemcell) SetCloudProperties(arg1 biproperty.Map)
func (*FakeExtractedStemcell) SetCloudPropertiesArgsForCall ¶
func (fake *FakeExtractedStemcell) SetCloudPropertiesArgsForCall(i int) biproperty.Map
func (*FakeExtractedStemcell) SetCloudPropertiesCallCount ¶
func (fake *FakeExtractedStemcell) SetCloudPropertiesCallCount() int
func (*FakeExtractedStemcell) SetName ¶
func (fake *FakeExtractedStemcell) SetName(arg1 string)
func (*FakeExtractedStemcell) SetNameArgsForCall ¶
func (fake *FakeExtractedStemcell) SetNameArgsForCall(i int) string
func (*FakeExtractedStemcell) SetNameCallCount ¶
func (fake *FakeExtractedStemcell) SetNameCallCount() int
func (*FakeExtractedStemcell) SetVersion ¶
func (fake *FakeExtractedStemcell) SetVersion(arg1 string)
func (*FakeExtractedStemcell) SetVersionArgsForCall ¶
func (fake *FakeExtractedStemcell) SetVersionArgsForCall(i int) string
func (*FakeExtractedStemcell) SetVersionCallCount ¶
func (fake *FakeExtractedStemcell) SetVersionCallCount() int
func (*FakeExtractedStemcell) String ¶
func (fake *FakeExtractedStemcell) String() string
func (*FakeExtractedStemcell) StringCallCount ¶
func (fake *FakeExtractedStemcell) StringCallCount() int
func (*FakeExtractedStemcell) StringReturns ¶
func (fake *FakeExtractedStemcell) StringReturns(result1 string)
func (*FakeExtractedStemcell) StringReturnsOnCall ¶
func (fake *FakeExtractedStemcell) StringReturnsOnCall(i int, result1 string)
type FakeExtractor ¶
type FakeExtractor struct { ExtractInputs []ExtractInput // contains filtered or unexported fields }
func NewFakeExtractor ¶
func NewFakeExtractor() *FakeExtractor
func (*FakeExtractor) Extract ¶
func (e *FakeExtractor) Extract(tarballPath string) (bistemcell.ExtractedStemcell, error)
func (*FakeExtractor) SetExtractBehavior ¶
func (e *FakeExtractor) SetExtractBehavior( tarballPath string, extractedStemcell bistemcell.ExtractedStemcell, err error, )
type FakeManager ¶
type FakeManager struct { UploadInputs []UploadInput DeleteUnusedCalledTimes int DeleteUnusedErr error // contains filtered or unexported fields }
func NewFakeManager ¶
func NewFakeManager() *FakeManager
func (*FakeManager) DeleteUnused ¶
func (m *FakeManager) DeleteUnused(eventLoggerStage biui.Stage) error
func (*FakeManager) FindCurrent ¶
func (m *FakeManager) FindCurrent() ([]bistemcell.CloudStemcell, error)
func (*FakeManager) FindUnused ¶
func (m *FakeManager) FindUnused() ([]bistemcell.CloudStemcell, error)
func (*FakeManager) SetFindUnusedBehavior ¶
func (m *FakeManager) SetFindUnusedBehavior( stemcells []bistemcell.CloudStemcell, err error, )
func (*FakeManager) SetUploadBehavior ¶
func (m *FakeManager) SetUploadBehavior( extractedStemcell bistemcell.ExtractedStemcell, stage biui.Stage, cloudStemcell bistemcell.CloudStemcell, err error, )
func (*FakeManager) Upload ¶
func (m *FakeManager) Upload(stemcell bistemcell.ExtractedStemcell, stage biui.Stage) (bistemcell.CloudStemcell, error)
type FakeManagerFactory ¶
type FakeManagerFactory struct { NewManagerInputs []NewManagerInput // contains filtered or unexported fields }
func NewFakeManagerFactory ¶
func NewFakeManagerFactory() *FakeManagerFactory
func (*FakeManagerFactory) NewManager ¶
func (f *FakeManagerFactory) NewManager(cloud bicloud.Cloud) bistemcell.Manager
func (*FakeManagerFactory) SetNewManagerBehavior ¶
func (f *FakeManagerFactory) SetNewManagerBehavior(cloud bicloud.Cloud, manager bistemcell.Manager)
type FakeStemcellReader ¶
type FakeStemcellReader struct { ReadBehavior map[ReadInput]ReadOutput ReadInputs []ReadInput }
func NewFakeReader ¶
func NewFakeReader() *FakeStemcellReader
func (*FakeStemcellReader) Read ¶
func (fr *FakeStemcellReader) Read(stemcellTarballPath, destPath string) (bistemcell.ExtractedStemcell, error)
func (*FakeStemcellReader) SetReadBehavior ¶
func (fr *FakeStemcellReader) SetReadBehavior(stemcellTarballPath, destPath string, stemcell bistemcell.ExtractedStemcell, err error)
type NewManagerInput ¶
type ReadOutput ¶
type ReadOutput struct {
// contains filtered or unexported fields
}
type UploadInput ¶
type UploadInput struct { Stemcell bistemcell.ExtractedStemcell Stage biui.Stage }
Click to show internal directories.
Click to hide internal directories.