stemcellfakes

package
v2.0.47+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

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)

	SetFormatStub 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) SetFormat

func (fake *FakeExtractedStemcell) SetFormat(arg1 []string)

func (*FakeExtractedStemcell) SetFormatArgsForCall

func (fake *FakeExtractedStemcell) SetFormatArgsForCall(i int) []string

func (*FakeExtractedStemcell) SetFormatCallCount

func (fake *FakeExtractedStemcell) SetFormatCallCount() 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

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 NewManagerInput struct {
	Cloud bicloud.Cloud
}

type ReadInput

type ReadInput struct {
	StemcellTarballPath string
	DestPath            string
}

type ReadOutput

type ReadOutput struct {
	// contains filtered or unexported fields
}

type UploadInput

type UploadInput struct {
	Stemcell bistemcell.ExtractedStemcell
	Stage    biui.Stage
}

Jump to

Keyboard shortcuts

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