fakes

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskRepoDeleteInput

type DiskRepoDeleteInput struct {
	DiskRecord biconfig.DiskRecord
}

type DiskRepoSaveInput

type DiskRepoSaveInput struct {
	CID             string
	Size            int
	CloudProperties biproperty.Map
}

type DiskRepoUpdateCurrentInput

type DiskRepoUpdateCurrentInput struct {
	DiskID string
}

type FakeDeploymentRepo

type FakeDeploymentRepo struct {
	UpdateCurrentManifestSHA string
	UpdateCurrentErr         error
	// contains filtered or unexported fields
}

func NewFakeDeploymentRepo

func NewFakeDeploymentRepo() *FakeDeploymentRepo

func (*FakeDeploymentRepo) FindCurrent

func (r *FakeDeploymentRepo) FindCurrent() (manifestSHA string, found bool, err error)

func (*FakeDeploymentRepo) SetFindCurrentBehavior

func (r *FakeDeploymentRepo) SetFindCurrentBehavior(manifestSHA string, found bool, err error)

func (*FakeDeploymentRepo) UpdateCurrent

func (r *FakeDeploymentRepo) UpdateCurrent(manifestSHA string) error

type FakeDiskRepo

type FakeDiskRepo struct {
	UpdateCurrentInputs []DiskRepoUpdateCurrentInput

	SaveInputs []DiskRepoSaveInput

	DeleteInputs []DiskRepoDeleteInput
	DeleteErr    error
	// contains filtered or unexported fields
}

func NewFakeDiskRepo

func NewFakeDiskRepo() *FakeDiskRepo

func (*FakeDiskRepo) All

func (r *FakeDiskRepo) All() ([]biconfig.DiskRecord, error)

func (*FakeDiskRepo) ClearCurrent

func (r *FakeDiskRepo) ClearCurrent() error

func (*FakeDiskRepo) Delete

func (r *FakeDiskRepo) Delete(diskRecord biconfig.DiskRecord) error

func (*FakeDiskRepo) Find

func (r *FakeDiskRepo) Find(cid string) (biconfig.DiskRecord, bool, error)

func (*FakeDiskRepo) FindCurrent

func (r *FakeDiskRepo) FindCurrent() (biconfig.DiskRecord, bool, error)

func (*FakeDiskRepo) Save

func (r *FakeDiskRepo) Save(cid string, size int, cloudProperties biproperty.Map) (biconfig.DiskRecord, error)

func (*FakeDiskRepo) SetAllBehavior

func (r *FakeDiskRepo) SetAllBehavior(diskRecords []biconfig.DiskRecord, err error)

func (*FakeDiskRepo) SetFindBehavior

func (r *FakeDiskRepo) SetFindBehavior(cid string, diskRecord biconfig.DiskRecord, found bool, err error)

func (*FakeDiskRepo) SetFindCurrentBehavior

func (r *FakeDiskRepo) SetFindCurrentBehavior(diskRecord biconfig.DiskRecord, found bool, err error)

func (*FakeDiskRepo) SetSaveBehavior

func (r *FakeDiskRepo) SetSaveBehavior(diskRecord biconfig.DiskRecord, found bool, err error)

func (*FakeDiskRepo) SetUpdateBehavior

func (r *FakeDiskRepo) SetUpdateBehavior(err error)

func (*FakeDiskRepo) UpdateCurrent

func (r *FakeDiskRepo) UpdateCurrent(diskID string) error

type FakeReleaseRepo

type FakeReleaseRepo struct {
	ListStub func() ([]config.ReleaseRecord, error)

	UpdateStub func([]release.Release) error
	// contains filtered or unexported fields
}

FakeReleaseRepo was generated by counterfeiter

func (*FakeReleaseRepo) List

func (fake *FakeReleaseRepo) List() ([]config.ReleaseRecord, error)

func (*FakeReleaseRepo) ListCallCount

func (fake *FakeReleaseRepo) ListCallCount() int

func (*FakeReleaseRepo) ListReturns

func (fake *FakeReleaseRepo) ListReturns(result1 []config.ReleaseRecord, result2 error)

func (*FakeReleaseRepo) Update

func (fake *FakeReleaseRepo) Update(arg1 []release.Release) error

func (*FakeReleaseRepo) UpdateArgsForCall

func (fake *FakeReleaseRepo) UpdateArgsForCall(i int) []release.Release

func (*FakeReleaseRepo) UpdateCallCount

func (fake *FakeReleaseRepo) UpdateCallCount() int

func (*FakeReleaseRepo) UpdateReturns

func (fake *FakeReleaseRepo) UpdateReturns(result1 error)

type FakeStemcellRepo

type FakeStemcellRepo struct {
	SaveBehavior map[string]StemcellRepoSaveOutput
	SaveInputs   []StemcellRepoSaveInput
	FindBehavior map[string]StemcellRepoFindOutput
	FindInputs   []StemcellRepoFindInput

	UpdateCurrentRecordID string
	UpdateCurrentErr      error

	ClearCurrentCalled bool
	ClearCurrentErr    error

	DeleteStemcellRecords []biconfig.StemcellRecord
	DeleteErr             error

	AllStemcellRecords []biconfig.StemcellRecord
	AllErr             error
	// contains filtered or unexported fields
}

func NewFakeStemcellRepo

func NewFakeStemcellRepo() *FakeStemcellRepo

func (*FakeStemcellRepo) All

func (*FakeStemcellRepo) ClearCurrent

func (fr *FakeStemcellRepo) ClearCurrent() error

func (*FakeStemcellRepo) Delete

func (fr *FakeStemcellRepo) Delete(stemcellRecord biconfig.StemcellRecord) error

func (*FakeStemcellRepo) Find

func (fr *FakeStemcellRepo) Find(name, version string) (biconfig.StemcellRecord, bool, error)

func (*FakeStemcellRepo) FindCurrent

func (fr *FakeStemcellRepo) FindCurrent() (biconfig.StemcellRecord, bool, error)

func (*FakeStemcellRepo) Save

func (fr *FakeStemcellRepo) Save(name, version, cid string) (biconfig.StemcellRecord, error)

func (*FakeStemcellRepo) SetFindBehavior

func (fr *FakeStemcellRepo) SetFindBehavior(name, version string, foundRecord biconfig.StemcellRecord, found bool, err error) error

func (*FakeStemcellRepo) SetFindCurrentBehavior

func (fr *FakeStemcellRepo) SetFindCurrentBehavior(foundRecord biconfig.StemcellRecord, found bool, err error) error

func (*FakeStemcellRepo) SetSaveBehavior

func (fr *FakeStemcellRepo) SetSaveBehavior(name, version, cid string, stemcellRecord biconfig.StemcellRecord, err error) error

func (*FakeStemcellRepo) UpdateCurrent

func (fr *FakeStemcellRepo) UpdateCurrent(recordID string) error

type FakeVMRepo

type FakeVMRepo struct {
	UpdateCurrentCID string
	UpdateCurrentErr error

	ClearCurrentCalled bool
	ClearCurrentErr    error
	// contains filtered or unexported fields
}

func NewFakeVMRepo

func NewFakeVMRepo() *FakeVMRepo

func (*FakeVMRepo) ClearCurrent

func (r *FakeVMRepo) ClearCurrent() error

func (*FakeVMRepo) FindCurrent

func (r *FakeVMRepo) FindCurrent() (cid string, found bool, err error)

func (*FakeVMRepo) SetFindCurrentBehavior

func (r *FakeVMRepo) SetFindCurrentBehavior(cid string, found bool, err error)

func (*FakeVMRepo) UpdateCurrent

func (r *FakeVMRepo) UpdateCurrent(cid string) error

type FindCurrentOutput

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

type StemcellRepoFindInput

type StemcellRepoFindInput struct {
	Name    string
	Version string
}

type StemcellRepoFindOutput

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

type StemcellRepoSaveInput

type StemcellRepoSaveInput struct {
	Name    string
	Version string
	CID     string
}

type StemcellRepoSaveOutput

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

Jump to

Keyboard shortcuts

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