Documentation ¶
Index ¶
- type DiskRepoDeleteInput
- type DiskRepoSaveInput
- type DiskRepoUpdateCurrentInput
- type FakeDeploymentRepo
- type FakeDiskRepo
- func (r *FakeDiskRepo) All() ([]bmconfig.DiskRecord, error)
- func (r *FakeDiskRepo) ClearCurrent() error
- func (r *FakeDiskRepo) Delete(diskRecord bmconfig.DiskRecord) error
- func (r *FakeDiskRepo) Find(cid string) (bmconfig.DiskRecord, bool, error)
- func (r *FakeDiskRepo) FindCurrent() (bmconfig.DiskRecord, bool, error)
- func (r *FakeDiskRepo) Save(cid string, size int, cloudProperties map[string]interface{}) (bmconfig.DiskRecord, error)
- func (r *FakeDiskRepo) SetAllBehavior(diskRecords []bmconfig.DiskRecord, err error)
- func (r *FakeDiskRepo) SetFindBehavior(cid string, diskRecord bmconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetFindCurrentBehavior(diskRecord bmconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetSaveBehavior(diskRecord bmconfig.DiskRecord, found bool, err error)
- func (r *FakeDiskRepo) SetUpdateBehavior(err error)
- func (r *FakeDiskRepo) UpdateCurrent(diskID string) error
- type FakeReleaseRepo
- func (fr *FakeReleaseRepo) Find(name, version string) (bmconfig.ReleaseRecord, bool, error)
- func (fr *FakeReleaseRepo) FindCurrent() (bmconfig.ReleaseRecord, bool, error)
- func (fr *FakeReleaseRepo) Save(name, version string) (bmconfig.ReleaseRecord, error)
- func (fr *FakeReleaseRepo) SetFindBehavior(name, version string, foundRecord bmconfig.ReleaseRecord, found bool, ...) error
- func (fr *FakeReleaseRepo) SetFindCurrentBehavior(foundRecord bmconfig.ReleaseRecord, found bool, err error) error
- func (fr *FakeReleaseRepo) SetSaveBehavior(name, version string, releaseRecord bmconfig.ReleaseRecord, err error) error
- func (fr *FakeReleaseRepo) UpdateCurrent(recordID string) error
- type FakeStemcellRepo
- func (fr *FakeStemcellRepo) All() ([]bmconfig.StemcellRecord, error)
- func (fr *FakeStemcellRepo) ClearCurrent() error
- func (fr *FakeStemcellRepo) Delete(stemcellRecord bmconfig.StemcellRecord) error
- func (fr *FakeStemcellRepo) Find(name, version string) (bmconfig.StemcellRecord, bool, error)
- func (fr *FakeStemcellRepo) FindCurrent() (bmconfig.StemcellRecord, bool, error)
- func (fr *FakeStemcellRepo) Save(name, version, cid string) (bmconfig.StemcellRecord, error)
- func (fr *FakeStemcellRepo) SetFindBehavior(name, version string, foundRecord bmconfig.StemcellRecord, found bool, ...) error
- func (fr *FakeStemcellRepo) SetFindCurrentBehavior(foundRecord bmconfig.StemcellRecord, found bool, err error) error
- func (fr *FakeStemcellRepo) SetSaveBehavior(name, version, cid string, stemcellRecord bmconfig.StemcellRecord, err error) error
- func (fr *FakeStemcellRepo) UpdateCurrent(recordID string) error
- type FakeVMRepo
- type FindCurrentOutput
- type ReleaseRepoFindCurrentOutput
- type ReleaseRepoFindInput
- type ReleaseRepoFindOutput
- type ReleaseRepoSaveInput
- type ReleaseRepoSaveOutput
- 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 bmconfig.DiskRecord
}
type DiskRepoSaveInput ¶
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() ([]bmconfig.DiskRecord, error)
func (*FakeDiskRepo) ClearCurrent ¶
func (r *FakeDiskRepo) ClearCurrent() error
func (*FakeDiskRepo) Delete ¶
func (r *FakeDiskRepo) Delete(diskRecord bmconfig.DiskRecord) error
func (*FakeDiskRepo) Find ¶
func (r *FakeDiskRepo) Find(cid string) (bmconfig.DiskRecord, bool, error)
func (*FakeDiskRepo) FindCurrent ¶
func (r *FakeDiskRepo) FindCurrent() (bmconfig.DiskRecord, bool, error)
func (*FakeDiskRepo) Save ¶
func (r *FakeDiskRepo) Save(cid string, size int, cloudProperties map[string]interface{}) (bmconfig.DiskRecord, error)
func (*FakeDiskRepo) SetAllBehavior ¶
func (r *FakeDiskRepo) SetAllBehavior(diskRecords []bmconfig.DiskRecord, err error)
func (*FakeDiskRepo) SetFindBehavior ¶
func (r *FakeDiskRepo) SetFindBehavior(cid string, diskRecord bmconfig.DiskRecord, found bool, err error)
func (*FakeDiskRepo) SetFindCurrentBehavior ¶
func (r *FakeDiskRepo) SetFindCurrentBehavior(diskRecord bmconfig.DiskRecord, found bool, err error)
func (*FakeDiskRepo) SetSaveBehavior ¶
func (r *FakeDiskRepo) SetSaveBehavior(diskRecord bmconfig.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 { SaveBehavior map[string]ReleaseRepoSaveOutput SaveInputs []ReleaseRepoSaveInput FindBehavior map[string]ReleaseRepoFindOutput FindInputs []ReleaseRepoFindInput UpdateCurrentRecordID string UpdateCurrentErr error // contains filtered or unexported fields }
func NewFakeReleaseRepo ¶
func NewFakeReleaseRepo() *FakeReleaseRepo
func (*FakeReleaseRepo) Find ¶
func (fr *FakeReleaseRepo) Find(name, version string) (bmconfig.ReleaseRecord, bool, error)
func (*FakeReleaseRepo) FindCurrent ¶
func (fr *FakeReleaseRepo) FindCurrent() (bmconfig.ReleaseRecord, bool, error)
func (*FakeReleaseRepo) Save ¶
func (fr *FakeReleaseRepo) Save(name, version string) (bmconfig.ReleaseRecord, error)
func (*FakeReleaseRepo) SetFindBehavior ¶
func (fr *FakeReleaseRepo) SetFindBehavior(name, version string, foundRecord bmconfig.ReleaseRecord, found bool, err error) error
func (*FakeReleaseRepo) SetFindCurrentBehavior ¶
func (fr *FakeReleaseRepo) SetFindCurrentBehavior(foundRecord bmconfig.ReleaseRecord, found bool, err error) error
func (*FakeReleaseRepo) SetSaveBehavior ¶
func (fr *FakeReleaseRepo) SetSaveBehavior(name, version string, releaseRecord bmconfig.ReleaseRecord, err error) error
func (*FakeReleaseRepo) UpdateCurrent ¶
func (fr *FakeReleaseRepo) UpdateCurrent(recordID string) 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 []bmconfig.StemcellRecord DeleteErr error AllStemcellRecords []bmconfig.StemcellRecord AllErr error // contains filtered or unexported fields }
func NewFakeStemcellRepo ¶
func NewFakeStemcellRepo() *FakeStemcellRepo
func (*FakeStemcellRepo) All ¶
func (fr *FakeStemcellRepo) All() ([]bmconfig.StemcellRecord, error)
func (*FakeStemcellRepo) ClearCurrent ¶
func (fr *FakeStemcellRepo) ClearCurrent() error
func (*FakeStemcellRepo) Delete ¶
func (fr *FakeStemcellRepo) Delete(stemcellRecord bmconfig.StemcellRecord) error
func (*FakeStemcellRepo) Find ¶
func (fr *FakeStemcellRepo) Find(name, version string) (bmconfig.StemcellRecord, bool, error)
func (*FakeStemcellRepo) FindCurrent ¶
func (fr *FakeStemcellRepo) FindCurrent() (bmconfig.StemcellRecord, bool, error)
func (*FakeStemcellRepo) Save ¶
func (fr *FakeStemcellRepo) Save(name, version, cid string) (bmconfig.StemcellRecord, error)
func (*FakeStemcellRepo) SetFindBehavior ¶
func (fr *FakeStemcellRepo) SetFindBehavior(name, version string, foundRecord bmconfig.StemcellRecord, found bool, err error) error
func (*FakeStemcellRepo) SetFindCurrentBehavior ¶
func (fr *FakeStemcellRepo) SetFindCurrentBehavior(foundRecord bmconfig.StemcellRecord, found bool, err error) error
func (*FakeStemcellRepo) SetSaveBehavior ¶
func (fr *FakeStemcellRepo) SetSaveBehavior(name, version, cid string, stemcellRecord bmconfig.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 ReleaseRepoFindCurrentOutput ¶
type ReleaseRepoFindCurrentOutput struct {
// contains filtered or unexported fields
}
type ReleaseRepoFindInput ¶
type ReleaseRepoFindOutput ¶
type ReleaseRepoFindOutput struct {
// contains filtered or unexported fields
}
type ReleaseRepoSaveInput ¶
type ReleaseRepoSaveOutput ¶
type ReleaseRepoSaveOutput 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.