Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binder ¶
type Binder struct { Reqs []*framework.BindRequest Res *framework.BindResponse }
Binder is a fake implementation of the (github.com/deis/steward-framework).Binder interface that is suitable for use in unit tests.
type Cataloger ¶
type Cataloger struct {
Services []*framework.Service
}
Cataloger is a fake implementation of the (github.com/deis/steward-framework).Cataloger interface that is suitable for use in unit tests.
type Deprovisioner ¶
type Deprovisioner struct { Reqs []*framework.DeprovisionRequest Res *framework.DeprovisionResponse Err error }
Deprovisioner is a fake implementation of the (github.com/deis/steward-framework).Deprovisioner interface that is suitable for use in unit tests.
func NewDeprovisioner ¶
func NewDeprovisioner() *Deprovisioner
NewDeprovisioner returns a new fake framework.Provisioner
func (*Deprovisioner) Deprovision ¶
func (d *Deprovisioner) Deprovision( ctx context.Context, serviceBrokerSpec framework.ServiceBrokerSpec, req *framework.DeprovisionRequest, ) (*framework.DeprovisionResponse, error)
Deprovision is the Deprovisioner interface implementation. It just records the DeprovisionRequest and returns a hardcoded DeprovisionResponse.
type Lifecycler ¶
type Lifecycler struct { framework.Provisioner framework.Deprovisioner framework.Binder framework.Unbinder framework.OperationStatusRetriever }
Lifecycler is a composition of this package's fake implementations of the Provisioner, Deprovisioner, Binder, Unbinder, and OperationStatusRetriever interfaces. It is suitable for use in unit tests.
type OperationStatusRetriever ¶
type OperationStatusRetriever struct { Reqs []*framework.OperationStatusRequest Res func() *framework.OperationStatusResponse }
OperationStatusRetriever is a fake implementation of the (github.com/deis/steward-framework).OperationStatusRetriever interface that is suitable for use in unit tests.
func (*OperationStatusRetriever) GetOperationStatus ¶
func (o *OperationStatusRetriever) GetOperationStatus( ctx context.Context, brokerSpec framework.ServiceBrokerSpec, req *framework.OperationStatusRequest, ) (*framework.OperationStatusResponse, error)
GetOperationStatus is the OperationStatusRetriever implementation. It just records the OperationStatusRequest and returns a hardcoded OperationStatusResponse.
type Provisioner ¶
type Provisioner struct { Reqs []*framework.ProvisionRequest Res *framework.ProvisionResponse Err error }
Provisioner is a fake implementation of the (github.com/deis/steward-framework).Provisioner interface that is suitable for use in unit tests.
func NewProvisioner ¶
func NewProvisioner() *Provisioner
NewProvisioner returns a new fake framework.Provisioner
func (*Provisioner) Provision ¶
func (p *Provisioner) Provision( ctx context.Context, serviceBrokerSpec framework.ServiceBrokerSpec, req *framework.ProvisionRequest, ) (*framework.ProvisionResponse, error)
Provision is the Provisioner interface implementation. It just records the ProvisionRequest and returns a hardcoded ProvisionResponse.