catalog

package
v0.0.0-...-ca399ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Context *middleware.Context
	Handler CatalogHandler
}

Catalog swagger:route GET /catalog catalog catalog

Gets services registered within the broker

The first endpoint that a broker must implement is the service catalog. Cloud Controller will initially fetch this endpoint from all brokers and make adjustments to the user-facing service catalog stored in the Cloud Controller database.

func NewCatalog

func NewCatalog(ctx *middleware.Context, handler CatalogHandler) *Catalog

NewCatalog creates a new http.Handler for the catalog operation

func (*Catalog) ServeHTTP

func (o *Catalog) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CatalogDefault

type CatalogDefault struct {

	// In: body
	Payload *brokermodel.BrokerError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CatalogDefault generic error response

swagger:response catalogDefault

func NewCatalogDefault

func NewCatalogDefault(code int) *CatalogDefault

NewCatalogDefault creates CatalogDefault with default headers values

func (*CatalogDefault) SetPayload

func (o *CatalogDefault) SetPayload(payload *brokermodel.BrokerError)

SetPayload sets the payload to the catalog default response

func (*CatalogDefault) SetStatusCode

func (o *CatalogDefault) SetStatusCode(code int)

SetStatusCode sets the status to the catalog default response

func (*CatalogDefault) WithPayload

func (o *CatalogDefault) WithPayload(payload *brokermodel.BrokerError) *CatalogDefault

WithPayload adds the payload to the catalog default response

func (*CatalogDefault) WithStatusCode

func (o *CatalogDefault) WithStatusCode(code int) *CatalogDefault

WithStatusCode adds the status to the catalog default response

func (*CatalogDefault) WriteResponse

func (o *CatalogDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CatalogHandler

type CatalogHandler interface {
	Handle(interface{}) middleware.Responder
}

CatalogHandler interface for that can handle valid catalog params

type CatalogHandlerFunc

type CatalogHandlerFunc func(interface{}) middleware.Responder

CatalogHandlerFunc turns a function with the right signature into a catalog handler

func (CatalogHandlerFunc) Handle

func (fn CatalogHandlerFunc) Handle(principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CatalogOK

type CatalogOK struct {

	// In: body
	Payload *brokermodel.CatalogServices `json:"body,omitempty"`
}

CatalogOK successful operation

swagger:response catalogOK

func NewCatalogOK

func NewCatalogOK() *CatalogOK

NewCatalogOK creates CatalogOK with default headers values

func (*CatalogOK) SetPayload

func (o *CatalogOK) SetPayload(payload *brokermodel.CatalogServices)

SetPayload sets the payload to the catalog o k response

func (*CatalogOK) WithPayload

func (o *CatalogOK) WithPayload(payload *brokermodel.CatalogServices) *CatalogOK

WithPayload adds the payload to the catalog o k response

func (*CatalogOK) WriteResponse

func (o *CatalogOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL