Documentation ¶
Index ¶
- type DiskRepoDeleteInput
- type DiskRepoSaveInput
- type DiskRepoUpdateCurrentInput
- type FakeDeploymentRepo
- type FakeDiskRepo
- func (r *FakeDiskRepo) All() ([]biconfig.DiskRecord, error)
- func (r *FakeDiskRepo) ClearCurrent() error
- func (r *FakeDiskRepo) Delete(diskRecord biconfig.DiskRecord) error
- func (r *FakeDiskRepo) Find(cid string) (biconfig.DiskRecord, bool, error)
- func (r *FakeDiskRepo) FindCurrent() (biconfig.DiskRecord, bool, error)
- func (r *FakeDiskRepo) Save(cid string, size int, cloudProperties biproperty.Map) (biconfig.DiskRecord, error)
- func (r *FakeDiskRepo) SetAllBehavior(diskRecords []biconfig.DiskRecord, err error)
- func (r *FakeDiskRepo) SetFindBehavior(cid string, diskRecord biconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetFindCurrentBehavior(diskRecord biconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetSaveBehavior(diskRecord biconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetUpdateBehavior(err error)
- func (r *FakeDiskRepo) UpdateCurrent(diskID string) error
- type FakeReleaseRepo
- func (fake *FakeReleaseRepo) List() ([]config.ReleaseRecord, error)
- func (fake *FakeReleaseRepo) ListCallCount() int
- func (fake *FakeReleaseRepo) ListReturns(result1 []config.ReleaseRecord, result2 error)
- func (fake *FakeReleaseRepo) Update(arg1 []release.Release) error
- func (fake *FakeReleaseRepo) UpdateArgsForCall(i int) []release.Release
- func (fake *FakeReleaseRepo) UpdateCallCount() int
- func (fake *FakeReleaseRepo) UpdateReturns(result1 error)
- type FakeStemcellRepo
- func (fr *FakeStemcellRepo) All() ([]biconfig.StemcellRecord, error)
- func (fr *FakeStemcellRepo) ClearCurrent() error
- func (fr *FakeStemcellRepo) Delete(stemcellRecord biconfig.StemcellRecord) error
- func (fr *FakeStemcellRepo) Find(name, version string) (biconfig.StemcellRecord, bool, error)
- func (fr *FakeStemcellRepo) FindCurrent() (biconfig.StemcellRecord, bool, error)
- func (fr *FakeStemcellRepo) Save(name, version, cid string) (biconfig.StemcellRecord, error)
- func (fr *FakeStemcellRepo) SetFindBehavior(name, version string, foundRecord biconfig.StemcellRecord, found bool, ...) error
- func (fr *FakeStemcellRepo) SetFindCurrentBehavior(foundRecord biconfig.StemcellRecord, found bool, err error) error
- func (fr *FakeStemcellRepo) SetSaveBehavior(name, version, cid string, stemcellRecord biconfig.StemcellRecord, err error) error
- func (fr *FakeStemcellRepo) UpdateCurrent(recordID string) error
- type FakeVMRepo
- type FindCurrentOutput
- type StemcellRepoFindInput
- type StemcellRepoFindOutput
- type StemcellRepoSaveInput
- type StemcellRepoSaveOutput
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 { UpdateCurrentManifestSHA1 string UpdateCurrentErr error // contains filtered or unexported fields }
func NewFakeDeploymentRepo ¶
func NewFakeDeploymentRepo() *FakeDeploymentRepo
func (*FakeDeploymentRepo) FindCurrent ¶
func (r *FakeDeploymentRepo) FindCurrent() (manifestSHA1 string, found bool, err error)
func (*FakeDeploymentRepo) SetFindCurrentBehavior ¶
func (r *FakeDeploymentRepo) SetFindCurrentBehavior(manifestSHA1 string, found bool, err error)
func (*FakeDeploymentRepo) UpdateCurrent ¶
func (r *FakeDeploymentRepo) UpdateCurrent(manifestSHA1 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) 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 (fr *FakeStemcellRepo) All() ([]biconfig.StemcellRecord, error)
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 StemcellRepoFindOutput ¶
type StemcellRepoFindOutput struct {
// contains filtered or unexported fields
}
type StemcellRepoSaveInput ¶
type StemcellRepoSaveOutput ¶
type StemcellRepoSaveOutput struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.