Documentation ¶
Index ¶
- type ApplyInput
- type CalculateInput
- type CreateInput
- type FakeInstance
- func (i *FakeInstance) Apply(stemcellApplySpec bmstemcell.ApplySpec, deployment bmdepl.Deployment) error
- func (i *FakeInstance) Start() error
- func (i *FakeInstance) WaitToBeReady(maxAttempts int, delay time.Duration) error
- func (i *FakeInstance) WaitToBeRunning(maxAttempts int, delay time.Duration) error
- type FakeInstanceFactory
- type FakeSha1Calculator
- type FakeTemplatesSpecGenerator
- type WaitInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyInput ¶
type ApplyInput struct { StemcellApplySpec bmstemcell.ApplySpec Deployment bmdepl.Deployment }
type CalculateInput ¶
type CreateInput ¶
type FakeInstance ¶
type FakeInstance struct { ApplyInputs []ApplyInput ApplyErr error StartCalled bool StartErr error WaitToBeReadyInputs []WaitInput WaitToBeReadyErr error WaitToBeRunningInputs []WaitInput WaitToBeRunningErr error }
func NewFakeInstance ¶
func NewFakeInstance() *FakeInstance
func (*FakeInstance) Apply ¶
func (i *FakeInstance) Apply(stemcellApplySpec bmstemcell.ApplySpec, deployment bmdepl.Deployment) error
func (*FakeInstance) Start ¶
func (i *FakeInstance) Start() error
func (*FakeInstance) WaitToBeReady ¶
func (i *FakeInstance) WaitToBeReady(maxAttempts int, delay time.Duration) error
func (*FakeInstance) WaitToBeRunning ¶
func (i *FakeInstance) WaitToBeRunning(maxAttempts int, delay time.Duration) error
type FakeInstanceFactory ¶
func NewFakeInstanceFactory ¶
func NewFakeInstanceFactory() *FakeInstanceFactory
type FakeSha1Calculator ¶
type FakeSha1Calculator struct {
// contains filtered or unexported fields
}
func NewFakeSha1Calculator ¶
func NewFakeSha1Calculator() *FakeSha1Calculator
func (*FakeSha1Calculator) Calculate ¶
func (c *FakeSha1Calculator) Calculate(path string) (string, error)
func (*FakeSha1Calculator) SetCalculateBehavior ¶
func (c *FakeSha1Calculator) SetCalculateBehavior(calculateInputs map[string]CalculateInput)
type FakeTemplatesSpecGenerator ¶
type FakeTemplatesSpecGenerator struct { CreateInputs []CreateInput CreateTemplatesSpec bmins.TemplatesSpec CreateErr error CreateCalled bool }
func NewFakeTemplatesSpecGenerator ¶
func NewFakeTemplatesSpecGenerator() *FakeTemplatesSpecGenerator
func (*FakeTemplatesSpecGenerator) Create ¶
func (g *FakeTemplatesSpecGenerator) Create( deploymentJob bmdepl.Job, stemcellJob bmstemcell.Job, deploymentName string, properties map[string]interface{}, mbusURL string, ) (bmins.TemplatesSpec, error)
func (*FakeTemplatesSpecGenerator) SetCreateBehavior ¶
func (g *FakeTemplatesSpecGenerator) SetCreateBehavior(createTemplatesSpec bmins.TemplatesSpec, err error)
Click to show internal directories.
Click to hide internal directories.