Documentation ¶
Index ¶
- func ValidateBindRequest(breq *api.BindRequest) field.ErrorList
- func ValidateProvisionRequest(preq *api.ProvisionRequest) field.ErrorList
- type Broker
- func (b *Broker) Bind(u user.Info, instanceID, bindingID string, breq *api.BindRequest) *api.Response
- func (b *Broker) Catalog() *api.Response
- func (b *Broker) Deprovision(u user.Info, instanceID string) *api.Response
- func (b *Broker) LastOperation(u user.Info, instanceID string, operation api.Operation) *api.Response
- func (b *Broker) Provision(u user.Info, instanceID string, preq *api.ProvisionRequest) *api.Response
- func (b *Broker) Unbind(u user.Info, instanceID, bindingID string) *api.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBindRequest ¶
func ValidateBindRequest(breq *api.BindRequest) field.ErrorList
ValidateBindRequest ensures that a BindRequest is valid, beyond the validation carried out by the service broker framework itself.
func ValidateProvisionRequest ¶
func ValidateProvisionRequest(preq *api.ProvisionRequest) field.ErrorList
ValidateProvisionRequest ensures that a ProvisionRequest is valid, beyond the validation carried out by the service broker framework itself.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker represents the template service broker. It implements openservicebroker/api.Broker.
func NewBroker ¶
func NewBroker(saKubeClientConfig *restclient.Config, informer templateinformer.TemplateInformer, namespaces []string) (*Broker, error)
func (*Broker) Bind ¶
func (b *Broker) Bind(u user.Info, instanceID, bindingID string, breq *api.BindRequest) *api.Response
Bind returns the secrets and services from a provisioned template.
func (*Broker) Catalog ¶
Catalog returns our service catalog (one service per OpenShift template in configured namespace(s)).
func (*Broker) Deprovision ¶
Deprovision is the reverse of Provision. We clean up the TemplateInstance, Secret and BrokerTemplateInstance objects (in that order); the garbage collector is responsible for the removal of the objects provisioned by the Template(Instance) itself.
func (*Broker) LastOperation ¶
func (b *Broker) LastOperation(u user.Info, instanceID string, operation api.Operation) *api.Response
LastOperation returns the status of an asynchronous operation. Currently the OSB API only supports async Provision and Deprovision.