operations

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigServerAPI

type ConfigServerAPI struct {

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer httpkit.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer httpkit.Producer

	// DeleteDataSomeKeyPathHandler sets the operation handler for the delete data some key path operation
	DeleteDataSomeKeyPathHandler DeleteDataSomeKeyPathHandler
	// GetDataSomeKeyPathHandler sets the operation handler for the get data some key path operation
	GetDataSomeKeyPathHandler GetDataSomeKeyPathHandler
	// PostDataSomeKeyPathHandler sets the operation handler for the post data some key path operation
	PostDataSomeKeyPathHandler PostDataSomeKeyPathHandler
	// PutDataSomeKeyPathHandler sets the operation handler for the put data some key path operation
	PutDataSomeKeyPathHandler PutDataSomeKeyPathHandler

	// 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)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup
	// contains filtered or unexported fields
}

ConfigServerAPI BOSH config server REST APIs

func NewConfigServerAPI

func NewConfigServerAPI(spec *spec.Document) *ConfigServerAPI

NewConfigServerAPI creates a new ConfigServer instance

func (*ConfigServerAPI) AuthenticatorsFor

func (o *ConfigServerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]httpkit.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*ConfigServerAPI) ConsumersFor

func (o *ConfigServerAPI) ConsumersFor(mediaTypes []string) map[string]httpkit.Consumer

ConsumersFor gets the consumers for the specified media types

func (*ConfigServerAPI) DefaultConsumes

func (o *ConfigServerAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*ConfigServerAPI) DefaultProduces

func (o *ConfigServerAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*ConfigServerAPI) Formats

func (o *ConfigServerAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*ConfigServerAPI) HandlerFor

func (o *ConfigServerAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*ConfigServerAPI) ProducersFor

func (o *ConfigServerAPI) ProducersFor(mediaTypes []string) map[string]httpkit.Producer

ProducersFor gets the producers for the specified media types

func (*ConfigServerAPI) RegisterFormat

func (o *ConfigServerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*ConfigServerAPI) Serve

func (o *ConfigServerAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*ConfigServerAPI) ServeErrorFor

func (o *ConfigServerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*ConfigServerAPI) SetDefaultConsumes

func (o *ConfigServerAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*ConfigServerAPI) SetDefaultProduces

func (o *ConfigServerAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*ConfigServerAPI) Validate

func (o *ConfigServerAPI) Validate() error

Validate validates the registrations in the ConfigServerAPI

type DeleteDataSomeKeyPath

type DeleteDataSomeKeyPath struct {
	Context *middleware.Context
	Handler DeleteDataSomeKeyPathHandler
}

DeleteDataSomeKeyPath swagger:route DELETE /data/someKeyPath deleteDataSomeKeyPath

deletes the value associated with this path

user can delete config values

func NewDeleteDataSomeKeyPath

func NewDeleteDataSomeKeyPath(ctx *middleware.Context, handler DeleteDataSomeKeyPathHandler) *DeleteDataSomeKeyPath

NewDeleteDataSomeKeyPath creates a new http.Handler for the delete data some key path operation

func (*DeleteDataSomeKeyPath) ServeHTTP

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

type DeleteDataSomeKeyPathDefault

type DeleteDataSomeKeyPathDefault struct {

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

DeleteDataSomeKeyPathDefault Unexpected error

swagger:response deleteDataSomeKeyPathDefault

func NewDeleteDataSomeKeyPathDefault

func NewDeleteDataSomeKeyPathDefault(code int) *DeleteDataSomeKeyPathDefault

NewDeleteDataSomeKeyPathDefault creates DeleteDataSomeKeyPathDefault with default headers values

func (*DeleteDataSomeKeyPathDefault) SetPayload

func (o *DeleteDataSomeKeyPathDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete data some key path default response

func (*DeleteDataSomeKeyPathDefault) SetStatusCode

func (o *DeleteDataSomeKeyPathDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete data some key path default response

func (*DeleteDataSomeKeyPathDefault) WithPayload

WithPayload adds the payload to the delete data some key path default response

func (*DeleteDataSomeKeyPathDefault) WithStatusCode

WithStatusCode adds the status to the delete data some key path default response

func (*DeleteDataSomeKeyPathDefault) WriteResponse

func (o *DeleteDataSomeKeyPathDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DeleteDataSomeKeyPathHandler

type DeleteDataSomeKeyPathHandler interface {
	Handle(DeleteDataSomeKeyPathParams) middleware.Responder
}

DeleteDataSomeKeyPathHandler interface for that can handle valid delete data some key path params

type DeleteDataSomeKeyPathHandlerFunc

type DeleteDataSomeKeyPathHandlerFunc func(DeleteDataSomeKeyPathParams) middleware.Responder

DeleteDataSomeKeyPathHandlerFunc turns a function with the right signature into a delete data some key path handler

func (DeleteDataSomeKeyPathHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteDataSomeKeyPathOK

type DeleteDataSomeKeyPathOK struct {
}

DeleteDataSomeKeyPathOK OK

swagger:response deleteDataSomeKeyPathOK

func NewDeleteDataSomeKeyPathOK

func NewDeleteDataSomeKeyPathOK() *DeleteDataSomeKeyPathOK

NewDeleteDataSomeKeyPathOK creates DeleteDataSomeKeyPathOK with default headers values

func (*DeleteDataSomeKeyPathOK) WriteResponse

func (o *DeleteDataSomeKeyPathOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DeleteDataSomeKeyPathParams

type DeleteDataSomeKeyPathParams struct {
	/*the path to the key to retrieve.
	  Required: true
	  In: query
	*/
	SomeKeyPath string
}

DeleteDataSomeKeyPathParams contains all the bound params for the delete data some key path operation typically these are obtained from a http.Request

swagger:parameters DeleteDataSomeKeyPath

func NewDeleteDataSomeKeyPathParams

func NewDeleteDataSomeKeyPathParams() DeleteDataSomeKeyPathParams

NewDeleteDataSomeKeyPathParams creates a new DeleteDataSomeKeyPathParams object with the default values initialized.

func (*DeleteDataSomeKeyPathParams) BindRequest

func (o *DeleteDataSomeKeyPathParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetDataSomeKeyPath

type GetDataSomeKeyPath struct {
	Context *middleware.Context
	Handler GetDataSomeKeyPathHandler
}

GetDataSomeKeyPath swagger:route GET /data/someKeyPath getDataSomeKeyPath

returns the config data added

whenever Director needs to retrieve a value it will use GET action.

func NewGetDataSomeKeyPath

func NewGetDataSomeKeyPath(ctx *middleware.Context, handler GetDataSomeKeyPathHandler) *GetDataSomeKeyPath

NewGetDataSomeKeyPath creates a new http.Handler for the get data some key path operation

func (*GetDataSomeKeyPath) ServeHTTP

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

type GetDataSomeKeyPathDefault

type GetDataSomeKeyPathDefault struct {

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

GetDataSomeKeyPathDefault Unexpected error

swagger:response getDataSomeKeyPathDefault

func NewGetDataSomeKeyPathDefault

func NewGetDataSomeKeyPathDefault(code int) *GetDataSomeKeyPathDefault

NewGetDataSomeKeyPathDefault creates GetDataSomeKeyPathDefault with default headers values

func (*GetDataSomeKeyPathDefault) SetPayload

func (o *GetDataSomeKeyPathDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get data some key path default response

func (*GetDataSomeKeyPathDefault) SetStatusCode

func (o *GetDataSomeKeyPathDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get data some key path default response

func (*GetDataSomeKeyPathDefault) WithPayload

WithPayload adds the payload to the get data some key path default response

func (*GetDataSomeKeyPathDefault) WithStatusCode

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

WithStatusCode adds the status to the get data some key path default response

func (*GetDataSomeKeyPathDefault) WriteResponse

func (o *GetDataSomeKeyPathDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type GetDataSomeKeyPathHandler

type GetDataSomeKeyPathHandler interface {
	Handle(GetDataSomeKeyPathParams) middleware.Responder
}

GetDataSomeKeyPathHandler interface for that can handle valid get data some key path params

type GetDataSomeKeyPathHandlerFunc

type GetDataSomeKeyPathHandlerFunc func(GetDataSomeKeyPathParams) middleware.Responder

GetDataSomeKeyPathHandlerFunc turns a function with the right signature into a get data some key path handler

func (GetDataSomeKeyPathHandlerFunc) Handle

Handle executing the request and returning a response

type GetDataSomeKeyPathOK

type GetDataSomeKeyPathOK struct {

	// In: body
	Payload *models.Data `json:"body,omitempty"`
}

GetDataSomeKeyPathOK the JSON that was added for that path

swagger:response getDataSomeKeyPathOK

func NewGetDataSomeKeyPathOK

func NewGetDataSomeKeyPathOK() *GetDataSomeKeyPathOK

NewGetDataSomeKeyPathOK creates GetDataSomeKeyPathOK with default headers values

func (*GetDataSomeKeyPathOK) SetPayload

func (o *GetDataSomeKeyPathOK) SetPayload(payload *models.Data)

SetPayload sets the payload to the get data some key path o k response

func (*GetDataSomeKeyPathOK) WithPayload

func (o *GetDataSomeKeyPathOK) WithPayload(payload *models.Data) *GetDataSomeKeyPathOK

WithPayload adds the payload to the get data some key path o k response

func (*GetDataSomeKeyPathOK) WriteResponse

func (o *GetDataSomeKeyPathOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type GetDataSomeKeyPathParams

type GetDataSomeKeyPathParams struct {
	/*the path to the key to retrieve.
	  Required: true
	  In: query
	*/
	SomeKeyPath string
}

GetDataSomeKeyPathParams contains all the bound params for the get data some key path operation typically these are obtained from a http.Request

swagger:parameters GetDataSomeKeyPath

func NewGetDataSomeKeyPathParams

func NewGetDataSomeKeyPathParams() GetDataSomeKeyPathParams

NewGetDataSomeKeyPathParams creates a new GetDataSomeKeyPathParams object with the default values initialized.

func (*GetDataSomeKeyPathParams) BindRequest

func (o *GetDataSomeKeyPathParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type PostDataSomeKeyPath

type PostDataSomeKeyPath struct {
	Context *middleware.Context
	Handler PostDataSomeKeyPathHandler
}

PostDataSomeKeyPath swagger:route POST /data/someKeyPath postDataSomeKeyPath

creates the config data associated with someKeyPath

whenever Director generates a value it will be saved into the config server

func NewPostDataSomeKeyPath

func NewPostDataSomeKeyPath(ctx *middleware.Context, handler PostDataSomeKeyPathHandler) *PostDataSomeKeyPath

NewPostDataSomeKeyPath creates a new http.Handler for the post data some key path operation

func (*PostDataSomeKeyPath) ServeHTTP

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

type PostDataSomeKeyPathHandler

type PostDataSomeKeyPathHandler interface {
	Handle(PostDataSomeKeyPathParams) middleware.Responder
}

PostDataSomeKeyPathHandler interface for that can handle valid post data some key path params

type PostDataSomeKeyPathHandlerFunc

type PostDataSomeKeyPathHandlerFunc func(PostDataSomeKeyPathParams) middleware.Responder

PostDataSomeKeyPathHandlerFunc turns a function with the right signature into a post data some key path handler

func (PostDataSomeKeyPathHandlerFunc) Handle

Handle executing the request and returning a response

type PostDataSomeKeyPathOK

type PostDataSomeKeyPathOK struct {
}

PostDataSomeKeyPathOK OK

swagger:response postDataSomeKeyPathOK

func NewPostDataSomeKeyPathOK

func NewPostDataSomeKeyPathOK() *PostDataSomeKeyPathOK

NewPostDataSomeKeyPathOK creates PostDataSomeKeyPathOK with default headers values

func (*PostDataSomeKeyPathOK) WriteResponse

func (o *PostDataSomeKeyPathOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PostDataSomeKeyPathParams

type PostDataSomeKeyPathParams struct {
	/*the data to update
	  Required: true
	  In: body
	*/
	Request *models.Data
	/*the path to the key to retrieve.
	  Required: true
	  In: query
	*/
	SomeKeyPath string
}

PostDataSomeKeyPathParams contains all the bound params for the post data some key path operation typically these are obtained from a http.Request

swagger:parameters PostDataSomeKeyPath

func NewPostDataSomeKeyPathParams

func NewPostDataSomeKeyPathParams() PostDataSomeKeyPathParams

NewPostDataSomeKeyPathParams creates a new PostDataSomeKeyPathParams object with the default values initialized.

func (*PostDataSomeKeyPathParams) BindRequest

func (o *PostDataSomeKeyPathParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type PutDataSomeKeyPath

type PutDataSomeKeyPath struct {
	Context *middleware.Context
	Handler PutDataSomeKeyPathHandler
}

PutDataSomeKeyPath swagger:route PUT /data/someKeyPath putDataSomeKeyPath

updates the config data associated with someKeyPath

manual config value update

func NewPutDataSomeKeyPath

func NewPutDataSomeKeyPath(ctx *middleware.Context, handler PutDataSomeKeyPathHandler) *PutDataSomeKeyPath

NewPutDataSomeKeyPath creates a new http.Handler for the put data some key path operation

func (*PutDataSomeKeyPath) ServeHTTP

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

type PutDataSomeKeyPathDefault

type PutDataSomeKeyPathDefault struct {

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

PutDataSomeKeyPathDefault Unexpected error

swagger:response putDataSomeKeyPathDefault

func NewPutDataSomeKeyPathDefault

func NewPutDataSomeKeyPathDefault(code int) *PutDataSomeKeyPathDefault

NewPutDataSomeKeyPathDefault creates PutDataSomeKeyPathDefault with default headers values

func (*PutDataSomeKeyPathDefault) SetPayload

func (o *PutDataSomeKeyPathDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the put data some key path default response

func (*PutDataSomeKeyPathDefault) SetStatusCode

func (o *PutDataSomeKeyPathDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put data some key path default response

func (*PutDataSomeKeyPathDefault) WithPayload

WithPayload adds the payload to the put data some key path default response

func (*PutDataSomeKeyPathDefault) WithStatusCode

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

WithStatusCode adds the status to the put data some key path default response

func (*PutDataSomeKeyPathDefault) WriteResponse

func (o *PutDataSomeKeyPathDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PutDataSomeKeyPathHandler

type PutDataSomeKeyPathHandler interface {
	Handle(PutDataSomeKeyPathParams) middleware.Responder
}

PutDataSomeKeyPathHandler interface for that can handle valid put data some key path params

type PutDataSomeKeyPathHandlerFunc

type PutDataSomeKeyPathHandlerFunc func(PutDataSomeKeyPathParams) middleware.Responder

PutDataSomeKeyPathHandlerFunc turns a function with the right signature into a put data some key path handler

func (PutDataSomeKeyPathHandlerFunc) Handle

Handle executing the request and returning a response

type PutDataSomeKeyPathOK

type PutDataSomeKeyPathOK struct {
}

PutDataSomeKeyPathOK OK

swagger:response putDataSomeKeyPathOK

func NewPutDataSomeKeyPathOK

func NewPutDataSomeKeyPathOK() *PutDataSomeKeyPathOK

NewPutDataSomeKeyPathOK creates PutDataSomeKeyPathOK with default headers values

func (*PutDataSomeKeyPathOK) WriteResponse

func (o *PutDataSomeKeyPathOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PutDataSomeKeyPathParams

type PutDataSomeKeyPathParams struct {
	/*the data to update
	  Required: true
	  In: body
	*/
	Request *models.Data
	/*the path to the key to retrieve.
	  Required: true
	  In: query
	*/
	SomeKeyPath string
}

PutDataSomeKeyPathParams contains all the bound params for the put data some key path operation typically these are obtained from a http.Request

swagger:parameters PutDataSomeKeyPath

func NewPutDataSomeKeyPathParams

func NewPutDataSomeKeyPathParams() PutDataSomeKeyPathParams

NewPutDataSomeKeyPathParams creates a new PutDataSomeKeyPathParams object with the default values initialized.

func (*PutDataSomeKeyPathParams) BindRequest

func (o *PutDataSomeKeyPathParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

Jump to

Keyboard shortcuts

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