Documentation ¶
Index ¶
- Variables
- func ParseCatalog(bytes []byte) (*models.Catalog, error)
- type API
- func (api *API) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (api *API) Authorizer() runtime.Authorizer
- func (api *API) Configure(config *Config) *API
- func (api *API) ConsumersFor(types []string) map[string]runtime.Consumer
- func (api *API) Context() *middleware.Context
- func (api *API) DefaultConsumes() string
- func (api *API) DefaultProduces() string
- func (api *API) Formats() strfmt.Registry
- func (api *API) HandlerFor(method, path string) (http.Handler, bool)
- func (api *API) Init()
- func (api *API) ProducersFor(types []string) map[string]runtime.Producer
- func (api *API) Serve(builder middleware.Builder) http.Handler
- func (api *API) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (api *API) WithCatalog(catalog *models.Catalog) *API
- type Config
Constants ¶
This section is empty.
Variables ¶
var ( // SwaggerJSON embedded version of the swagger document used at generation time SwaggerJSON json.RawMessage // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time FlatSwaggerJSON json.RawMessage )
Functions ¶
Types ¶
type API ¶
type API struct { JSONConsumer runtime.Consumer JSONProducer runtime.Producer // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // BasicAuthAuth registers a function that takes username and password and returns a principal // it performs authentication with basic auth BasicAuthFunc func(string, string) (interface{}, error) // Catalog Handlers CatalogGetHandler catalog.CatalogGetHandler // ServiceBinding Handlers ServiceBindingBindingHandler service_bindings.ServiceBindingBindingHandler ServiceBindingGetHandler service_bindings.ServiceBindingGetHandler ServiceBindingLastOperationGetHandler service_bindings.ServiceBindingLastOperationGetHandler ServiceBindingUnbindingHandler service_bindings.ServiceBindingUnbindingHandler // ServiceInstance Handlers ServiceInstanceDeprovisionHandler service_instances.ServiceInstanceDeprovisionHandler ServiceInstanceGetHandler service_instances.ServiceInstanceGetHandler ServiceInstanceLastOperationGetHandler service_instances.ServiceInstanceLastOperationGetHandler ServiceInstanceProvisionHandler service_instances.ServiceInstanceProvisionHandler ServiceInstanceUpdateHandler service_instances.ServiceInstanceUpdateHandler // contains filtered or unexported fields }
func (*API) AuthenticatorsFor ¶
func (api *API) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) Authorizer ¶
func (api *API) Authorizer() runtime.Authorizer
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) ConsumersFor ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) Context ¶
func (api *API) Context() *middleware.Context
func (*API) DefaultConsumes ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) DefaultProduces ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) Formats ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) HandlerFor ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) ProducersFor ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI
func (*API) ServeErrorFor ¶
Implements RoutableAPI interface -- https://pkg.go.dev/github.com/go-openapi/runtime/middleware#RoutableAPI