operations

package
v0.0.0-...-87ce47b Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

View Source
const DeleteSetSetInternalServerErrorCode int = 500

DeleteSetSetInternalServerErrorCode is the HTTP code returned for type DeleteSetSetInternalServerError

View Source
const DeleteSetSetNotFoundCode int = 404

DeleteSetSetNotFoundCode is the HTTP code returned for type DeleteSetSetNotFound

View Source
const DeleteSetSetOKCode int = 200

DeleteSetSetOKCode is the HTTP code returned for type DeleteSetSetOK

View Source
const GetBackupInternalServerErrorCode int = 500

GetBackupInternalServerErrorCode is the HTTP code returned for type GetBackupInternalServerError

View Source
const GetBackupOKCode int = 200

GetBackupOKCode is the HTTP code returned for type GetBackupOK

View Source
const GetDiscoverBadRequestCode int = 400

GetDiscoverBadRequestCode is the HTTP code returned for type GetDiscoverBadRequest

View Source
const GetDiscoverOKCode int = 200

GetDiscoverOKCode is the HTTP code returned for type GetDiscoverOK

View Source
const GetSetSetInternalServerErrorCode int = 500

GetSetSetInternalServerErrorCode is the HTTP code returned for type GetSetSetInternalServerError

View Source
const GetSetSetNotFoundCode int = 404

GetSetSetNotFoundCode is the HTTP code returned for type GetSetSetNotFound

View Source
const GetSetSetOKCode int = 200

GetSetSetOKCode is the HTTP code returned for type GetSetSetOK

View Source
const GetSetsOKCode int = 200

GetSetsOKCode is the HTTP code returned for type GetSetsOK

View Source
const PostSetBadRequestCode int = 400

PostSetBadRequestCode is the HTTP code returned for type PostSetBadRequest

View Source
const PostSetInternalServerErrorCode int = 500

PostSetInternalServerErrorCode is the HTTP code returned for type PostSetInternalServerError

View Source
const PostSetOKCode int = 200

PostSetOKCode is the HTTP code returned for type PostSetOK

View Source
const PutSetSetInternalServerErrorCode int = 500

PutSetSetInternalServerErrorCode is the HTTP code returned for type PutSetSetInternalServerError

View Source
const PutSetSetNotFoundCode int = 404

PutSetSetNotFoundCode is the HTTP code returned for type PutSetSetNotFound

View Source
const PutSetSetOKCode int = 200

PutSetSetOKCode is the HTTP code returned for type PutSetSetOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteSetSet

type DeleteSetSet struct {
	Context *middleware.Context
	Handler DeleteSetSetHandler
}

DeleteSetSet swagger:route DELETE /set/{set} deleteSetSet

Delete a set

func NewDeleteSetSet

func NewDeleteSetSet(ctx *middleware.Context, handler DeleteSetSetHandler) *DeleteSetSet

NewDeleteSetSet creates a new http.Handler for the delete set set operation

func (*DeleteSetSet) ServeHTTP

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

type DeleteSetSetHandler

type DeleteSetSetHandler interface {
	Handle(DeleteSetSetParams) middleware.Responder
}

DeleteSetSetHandler interface for that can handle valid delete set set params

type DeleteSetSetHandlerFunc

type DeleteSetSetHandlerFunc func(DeleteSetSetParams) middleware.Responder

DeleteSetSetHandlerFunc turns a function with the right signature into a delete set set handler

func (DeleteSetSetHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteSetSetInternalServerError

type DeleteSetSetInternalServerError struct {

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

DeleteSetSetInternalServerError Standard Error Format

swagger:response deleteSetSetInternalServerError

func NewDeleteSetSetInternalServerError

func NewDeleteSetSetInternalServerError() *DeleteSetSetInternalServerError

NewDeleteSetSetInternalServerError creates DeleteSetSetInternalServerError with default headers values

func (*DeleteSetSetInternalServerError) SetPayload

func (o *DeleteSetSetInternalServerError) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the delete set set internal server error response

func (*DeleteSetSetInternalServerError) WithPayload

WithPayload adds the payload to the delete set set internal server error response

func (*DeleteSetSetInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteSetSetNotFound

type DeleteSetSetNotFound struct {
}

DeleteSetSetNotFound Not found

swagger:response deleteSetSetNotFound

func NewDeleteSetSetNotFound

func NewDeleteSetSetNotFound() *DeleteSetSetNotFound

NewDeleteSetSetNotFound creates DeleteSetSetNotFound with default headers values

func (*DeleteSetSetNotFound) WriteResponse

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

WriteResponse to the client

type DeleteSetSetOK

type DeleteSetSetOK struct {

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

DeleteSetSetOK Basic successful request

swagger:response deleteSetSetOK

func NewDeleteSetSetOK

func NewDeleteSetSetOK() *DeleteSetSetOK

NewDeleteSetSetOK creates DeleteSetSetOK with default headers values

func (*DeleteSetSetOK) SetPayload

func (o *DeleteSetSetOK) SetPayload(payload *models.SuccessModel)

SetPayload sets the payload to the delete set set o k response

func (*DeleteSetSetOK) WithPayload

func (o *DeleteSetSetOK) WithPayload(payload *models.SuccessModel) *DeleteSetSetOK

WithPayload adds the payload to the delete set set o k response

func (*DeleteSetSetOK) WriteResponse

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

WriteResponse to the client

type DeleteSetSetParams

type DeleteSetSetParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Node set to delete
	  Required: true
	  In: path
	*/
	Set string
}

DeleteSetSetParams contains all the bound params for the delete set set operation typically these are obtained from a http.Request

swagger:parameters DeleteSetSet

func NewDeleteSetSetParams

func NewDeleteSetSetParams() DeleteSetSetParams

NewDeleteSetSetParams creates a new DeleteSetSetParams object with the default values initialized.

func (*DeleteSetSetParams) BindRequest

func (o *DeleteSetSetParams) 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 DeleteSetSetURL

type DeleteSetSetURL struct {
	Set string
	// contains filtered or unexported fields
}

DeleteSetSetURL generates an URL for the delete set set operation

func (*DeleteSetSetURL) Build

func (o *DeleteSetSetURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteSetSetURL) BuildFull

func (o *DeleteSetSetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteSetSetURL) Must

func (o *DeleteSetSetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteSetSetURL) SetBasePath

func (o *DeleteSetSetURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteSetSetURL) String

func (o *DeleteSetSetURL) String() string

String returns the string representation of the path with query string

func (*DeleteSetSetURL) StringFull

func (o *DeleteSetSetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteSetSetURL) WithBasePath

func (o *DeleteSetSetURL) WithBasePath(bp string) *DeleteSetSetURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DiscoveryProxyAPI

type DiscoveryProxyAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

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

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer
	// BinProducer registers a producer for a "application/octet-stream" mime type
	BinProducer runtime.Producer

	// DeleteSetSetHandler sets the operation handler for the delete set set operation
	DeleteSetSetHandler DeleteSetSetHandler
	// GetBackupHandler sets the operation handler for the get backup operation
	GetBackupHandler GetBackupHandler
	// GetDiscoverHandler sets the operation handler for the get discover operation
	GetDiscoverHandler GetDiscoverHandler
	// GetSetSetHandler sets the operation handler for the get set set operation
	GetSetSetHandler GetSetSetHandler
	// GetSetsHandler sets the operation handler for the get sets operation
	GetSetsHandler GetSetsHandler
	// PostSetHandler sets the operation handler for the post set operation
	PostSetHandler PostSetHandler
	// PutSetSetHandler sets the operation handler for the put set set operation
	PutSetSetHandler PutSetSetHandler

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

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

DiscoveryProxyAPI API to do Choria Discovery via REST services

func NewDiscoveryProxyAPI

func NewDiscoveryProxyAPI(spec *loads.Document) *DiscoveryProxyAPI

NewDiscoveryProxyAPI creates a new DiscoveryProxy instance

func (*DiscoveryProxyAPI) AuthenticatorsFor

func (o *DiscoveryProxyAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*DiscoveryProxyAPI) ConsumersFor

func (o *DiscoveryProxyAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*DiscoveryProxyAPI) Context

func (o *DiscoveryProxyAPI) Context() *middleware.Context

Context returns the middleware context for the discovery proxy API

func (*DiscoveryProxyAPI) DefaultConsumes

func (o *DiscoveryProxyAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*DiscoveryProxyAPI) DefaultProduces

func (o *DiscoveryProxyAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*DiscoveryProxyAPI) Formats

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

Formats returns the registered string formats

func (*DiscoveryProxyAPI) HandlerFor

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

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

func (*DiscoveryProxyAPI) Init

func (o *DiscoveryProxyAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middelware as you see fit

func (*DiscoveryProxyAPI) ProducersFor

func (o *DiscoveryProxyAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*DiscoveryProxyAPI) RegisterFormat

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

RegisterFormat registers a custom format validator

func (*DiscoveryProxyAPI) Serve

func (o *DiscoveryProxyAPI) 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 (*DiscoveryProxyAPI) ServeErrorFor

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

ServeErrorFor gets a error handler for a given operation id

func (*DiscoveryProxyAPI) SetDefaultConsumes

func (o *DiscoveryProxyAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*DiscoveryProxyAPI) SetDefaultProduces

func (o *DiscoveryProxyAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*DiscoveryProxyAPI) SetSpec

func (o *DiscoveryProxyAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*DiscoveryProxyAPI) Validate

func (o *DiscoveryProxyAPI) Validate() error

Validate validates the registrations in the DiscoveryProxyAPI

type GetBackup

type GetBackup struct {
	Context *middleware.Context
	Handler GetBackupHandler
}

GetBackup swagger:route GET /backup getBackup

Produce a DB backup

func NewGetBackup

func NewGetBackup(ctx *middleware.Context, handler GetBackupHandler) *GetBackup

NewGetBackup creates a new http.Handler for the get backup operation

func (*GetBackup) ServeHTTP

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

type GetBackupHandler

type GetBackupHandler interface {
	Handle(GetBackupParams) middleware.Responder
}

GetBackupHandler interface for that can handle valid get backup params

type GetBackupHandlerFunc

type GetBackupHandlerFunc func(GetBackupParams) middleware.Responder

GetBackupHandlerFunc turns a function with the right signature into a get backup handler

func (GetBackupHandlerFunc) Handle

Handle executing the request and returning a response

type GetBackupInternalServerError

type GetBackupInternalServerError struct {

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

GetBackupInternalServerError Standard Error Format

swagger:response getBackupInternalServerError

func NewGetBackupInternalServerError

func NewGetBackupInternalServerError() *GetBackupInternalServerError

NewGetBackupInternalServerError creates GetBackupInternalServerError with default headers values

func (*GetBackupInternalServerError) SetPayload

func (o *GetBackupInternalServerError) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the get backup internal server error response

func (*GetBackupInternalServerError) WithPayload

WithPayload adds the payload to the get backup internal server error response

func (*GetBackupInternalServerError) WriteResponse

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

WriteResponse to the client

type GetBackupOK

type GetBackupOK struct {

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

GetBackupOK Basic successful request

swagger:response getBackupOK

func NewGetBackupOK

func NewGetBackupOK() *GetBackupOK

NewGetBackupOK creates GetBackupOK with default headers values

func (*GetBackupOK) SetPayload

func (o *GetBackupOK) SetPayload(payload *models.SuccessModel)

SetPayload sets the payload to the get backup o k response

func (*GetBackupOK) WithPayload

func (o *GetBackupOK) WithPayload(payload *models.SuccessModel) *GetBackupOK

WithPayload adds the payload to the get backup o k response

func (*GetBackupOK) WriteResponse

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

WriteResponse to the client

type GetBackupParams

type GetBackupParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetBackupParams contains all the bound params for the get backup operation typically these are obtained from a http.Request

swagger:parameters GetBackup

func NewGetBackupParams

func NewGetBackupParams() GetBackupParams

NewGetBackupParams creates a new GetBackupParams object with the default values initialized.

func (*GetBackupParams) BindRequest

func (o *GetBackupParams) 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 GetBackupURL

type GetBackupURL struct {
	// contains filtered or unexported fields
}

GetBackupURL generates an URL for the get backup operation

func (*GetBackupURL) Build

func (o *GetBackupURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetBackupURL) BuildFull

func (o *GetBackupURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetBackupURL) Must

func (o *GetBackupURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetBackupURL) SetBasePath

func (o *GetBackupURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetBackupURL) String

func (o *GetBackupURL) String() string

String returns the string representation of the path with query string

func (*GetBackupURL) StringFull

func (o *GetBackupURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetBackupURL) WithBasePath

func (o *GetBackupURL) WithBasePath(bp string) *GetBackupURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetDiscover

type GetDiscover struct {
	Context *middleware.Context
	Handler GetDiscoverHandler
}

GetDiscover swagger:route GET /discover getDiscover

Perform a discovery request

func NewGetDiscover

func NewGetDiscover(ctx *middleware.Context, handler GetDiscoverHandler) *GetDiscover

NewGetDiscover creates a new http.Handler for the get discover operation

func (*GetDiscover) ServeHTTP

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

type GetDiscoverBadRequest

type GetDiscoverBadRequest struct {

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

GetDiscoverBadRequest Standard Error Format

swagger:response getDiscoverBadRequest

func NewGetDiscoverBadRequest

func NewGetDiscoverBadRequest() *GetDiscoverBadRequest

NewGetDiscoverBadRequest creates GetDiscoverBadRequest with default headers values

func (*GetDiscoverBadRequest) SetPayload

func (o *GetDiscoverBadRequest) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the get discover bad request response

func (*GetDiscoverBadRequest) WithPayload

WithPayload adds the payload to the get discover bad request response

func (*GetDiscoverBadRequest) WriteResponse

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

WriteResponse to the client

type GetDiscoverHandler

type GetDiscoverHandler interface {
	Handle(GetDiscoverParams) middleware.Responder
}

GetDiscoverHandler interface for that can handle valid get discover params

type GetDiscoverHandlerFunc

type GetDiscoverHandlerFunc func(GetDiscoverParams) middleware.Responder

GetDiscoverHandlerFunc turns a function with the right signature into a get discover handler

func (GetDiscoverHandlerFunc) Handle

Handle executing the request and returning a response

type GetDiscoverOK

type GetDiscoverOK struct {

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

GetDiscoverOK Basic successful discovery request

swagger:response getDiscoverOK

func NewGetDiscoverOK

func NewGetDiscoverOK() *GetDiscoverOK

NewGetDiscoverOK creates GetDiscoverOK with default headers values

func (*GetDiscoverOK) SetPayload

func (o *GetDiscoverOK) SetPayload(payload *models.DiscoverySuccessModel)

SetPayload sets the payload to the get discover o k response

func (*GetDiscoverOK) WithPayload

func (o *GetDiscoverOK) WithPayload(payload *models.DiscoverySuccessModel) *GetDiscoverOK

WithPayload adds the payload to the get discover o k response

func (*GetDiscoverOK) WriteResponse

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

WriteResponse to the client

type GetDiscoverParams

type GetDiscoverParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Filter description
	  Required: true
	  In: body
	*/
	Request *models.DiscoveryRequest
}

GetDiscoverParams contains all the bound params for the get discover operation typically these are obtained from a http.Request

swagger:parameters GetDiscover

func NewGetDiscoverParams

func NewGetDiscoverParams() GetDiscoverParams

NewGetDiscoverParams creates a new GetDiscoverParams object with the default values initialized.

func (*GetDiscoverParams) BindRequest

func (o *GetDiscoverParams) 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 GetDiscoverURL

type GetDiscoverURL struct {
	// contains filtered or unexported fields
}

GetDiscoverURL generates an URL for the get discover operation

func (*GetDiscoverURL) Build

func (o *GetDiscoverURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDiscoverURL) BuildFull

func (o *GetDiscoverURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDiscoverURL) Must

func (o *GetDiscoverURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDiscoverURL) SetBasePath

func (o *GetDiscoverURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetDiscoverURL) String

func (o *GetDiscoverURL) String() string

String returns the string representation of the path with query string

func (*GetDiscoverURL) StringFull

func (o *GetDiscoverURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDiscoverURL) WithBasePath

func (o *GetDiscoverURL) WithBasePath(bp string) *GetDiscoverURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSetSet

type GetSetSet struct {
	Context *middleware.Context
	Handler GetSetSetHandler
}

GetSetSet swagger:route GET /set/{set} getSetSet

Retrieves the query or nodes for a set

func NewGetSetSet

func NewGetSetSet(ctx *middleware.Context, handler GetSetSetHandler) *GetSetSet

NewGetSetSet creates a new http.Handler for the get set set operation

func (*GetSetSet) ServeHTTP

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

type GetSetSetHandler

type GetSetSetHandler interface {
	Handle(GetSetSetParams) middleware.Responder
}

GetSetSetHandler interface for that can handle valid get set set params

type GetSetSetHandlerFunc

type GetSetSetHandlerFunc func(GetSetSetParams) middleware.Responder

GetSetSetHandlerFunc turns a function with the right signature into a get set set handler

func (GetSetSetHandlerFunc) Handle

Handle executing the request and returning a response

type GetSetSetInternalServerError

type GetSetSetInternalServerError struct {

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

GetSetSetInternalServerError Standard Error Format

swagger:response getSetSetInternalServerError

func NewGetSetSetInternalServerError

func NewGetSetSetInternalServerError() *GetSetSetInternalServerError

NewGetSetSetInternalServerError creates GetSetSetInternalServerError with default headers values

func (*GetSetSetInternalServerError) SetPayload

func (o *GetSetSetInternalServerError) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the get set set internal server error response

func (*GetSetSetInternalServerError) WithPayload

WithPayload adds the payload to the get set set internal server error response

func (*GetSetSetInternalServerError) WriteResponse

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

WriteResponse to the client

type GetSetSetNotFound

type GetSetSetNotFound struct {
}

GetSetSetNotFound Not found

swagger:response getSetSetNotFound

func NewGetSetSetNotFound

func NewGetSetSetNotFound() *GetSetSetNotFound

NewGetSetSetNotFound creates GetSetSetNotFound with default headers values

func (*GetSetSetNotFound) WriteResponse

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

WriteResponse to the client

type GetSetSetOK

type GetSetSetOK struct {

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

GetSetSetOK Node Set

swagger:response getSetSetOK

func NewGetSetSetOK

func NewGetSetSetOK() *GetSetSetOK

NewGetSetSetOK creates GetSetSetOK with default headers values

func (*GetSetSetOK) SetPayload

func (o *GetSetSetOK) SetPayload(payload *models.Set)

SetPayload sets the payload to the get set set o k response

func (*GetSetSetOK) WithPayload

func (o *GetSetSetOK) WithPayload(payload *models.Set) *GetSetSetOK

WithPayload adds the payload to the get set set o k response

func (*GetSetSetOK) WriteResponse

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

WriteResponse to the client

type GetSetSetParams

type GetSetSetParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Also include the matching nodes if the set is a PQL query
	  In: query
	  Default: false
	*/
	Discover *bool
	/*Node set to retrieve
	  Required: true
	  In: path
	*/
	Set string
}

GetSetSetParams contains all the bound params for the get set set operation typically these are obtained from a http.Request

swagger:parameters GetSetSet

func NewGetSetSetParams

func NewGetSetSetParams() GetSetSetParams

NewGetSetSetParams creates a new GetSetSetParams object with the default values initialized.

func (*GetSetSetParams) BindRequest

func (o *GetSetSetParams) 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 GetSetSetURL

type GetSetSetURL struct {
	Set string

	Discover *bool
	// contains filtered or unexported fields
}

GetSetSetURL generates an URL for the get set set operation

func (*GetSetSetURL) Build

func (o *GetSetSetURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSetSetURL) BuildFull

func (o *GetSetSetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSetSetURL) Must

func (o *GetSetSetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSetSetURL) SetBasePath

func (o *GetSetSetURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSetSetURL) String

func (o *GetSetSetURL) String() string

String returns the string representation of the path with query string

func (*GetSetSetURL) StringFull

func (o *GetSetSetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSetSetURL) WithBasePath

func (o *GetSetSetURL) WithBasePath(bp string) *GetSetSetURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetSets

type GetSets struct {
	Context *middleware.Context
	Handler GetSetsHandler
}

GetSets swagger:route GET /sets getSets

Retrieve list of known sets

func NewGetSets

func NewGetSets(ctx *middleware.Context, handler GetSetsHandler) *GetSets

NewGetSets creates a new http.Handler for the get sets operation

func (*GetSets) ServeHTTP

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

type GetSetsHandler

type GetSetsHandler interface {
	Handle(GetSetsParams) middleware.Responder
}

GetSetsHandler interface for that can handle valid get sets params

type GetSetsHandlerFunc

type GetSetsHandlerFunc func(GetSetsParams) middleware.Responder

GetSetsHandlerFunc turns a function with the right signature into a get sets handler

func (GetSetsHandlerFunc) Handle

Handle executing the request and returning a response

type GetSetsOK

type GetSetsOK struct {

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

GetSetsOK Known Sets

swagger:response getSetsOK

func NewGetSetsOK

func NewGetSetsOK() *GetSetsOK

NewGetSetsOK creates GetSetsOK with default headers values

func (*GetSetsOK) SetPayload

func (o *GetSetsOK) SetPayload(payload *models.Sets)

SetPayload sets the payload to the get sets o k response

func (*GetSetsOK) WithPayload

func (o *GetSetsOK) WithPayload(payload *models.Sets) *GetSetsOK

WithPayload adds the payload to the get sets o k response

func (*GetSetsOK) WriteResponse

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

WriteResponse to the client

type GetSetsParams

type GetSetsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetSetsParams contains all the bound params for the get sets operation typically these are obtained from a http.Request

swagger:parameters GetSets

func NewGetSetsParams

func NewGetSetsParams() GetSetsParams

NewGetSetsParams creates a new GetSetsParams object with the default values initialized.

func (*GetSetsParams) BindRequest

func (o *GetSetsParams) 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 GetSetsURL

type GetSetsURL struct {
	// contains filtered or unexported fields
}

GetSetsURL generates an URL for the get sets operation

func (*GetSetsURL) Build

func (o *GetSetsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSetsURL) BuildFull

func (o *GetSetsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSetsURL) Must

func (o *GetSetsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSetsURL) SetBasePath

func (o *GetSetsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetSetsURL) String

func (o *GetSetsURL) String() string

String returns the string representation of the path with query string

func (*GetSetsURL) StringFull

func (o *GetSetsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSetsURL) WithBasePath

func (o *GetSetsURL) WithBasePath(bp string) *GetSetsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostSet

type PostSet struct {
	Context *middleware.Context
	Handler PostSetHandler
}

PostSet swagger:route POST /set postSet

Create a new set

func NewPostSet

func NewPostSet(ctx *middleware.Context, handler PostSetHandler) *PostSet

NewPostSet creates a new http.Handler for the post set operation

func (*PostSet) ServeHTTP

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

type PostSetBadRequest

type PostSetBadRequest struct {

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

PostSetBadRequest Standard Error Format

swagger:response postSetBadRequest

func NewPostSetBadRequest

func NewPostSetBadRequest() *PostSetBadRequest

NewPostSetBadRequest creates PostSetBadRequest with default headers values

func (*PostSetBadRequest) SetPayload

func (o *PostSetBadRequest) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the post set bad request response

func (*PostSetBadRequest) WithPayload

func (o *PostSetBadRequest) WithPayload(payload *models.ErrorModel) *PostSetBadRequest

WithPayload adds the payload to the post set bad request response

func (*PostSetBadRequest) WriteResponse

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

WriteResponse to the client

type PostSetHandler

type PostSetHandler interface {
	Handle(PostSetParams) middleware.Responder
}

PostSetHandler interface for that can handle valid post set params

type PostSetHandlerFunc

type PostSetHandlerFunc func(PostSetParams) middleware.Responder

PostSetHandlerFunc turns a function with the right signature into a post set handler

func (PostSetHandlerFunc) Handle

Handle executing the request and returning a response

type PostSetInternalServerError

type PostSetInternalServerError struct {

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

PostSetInternalServerError Standard Error Format

swagger:response postSetInternalServerError

func NewPostSetInternalServerError

func NewPostSetInternalServerError() *PostSetInternalServerError

NewPostSetInternalServerError creates PostSetInternalServerError with default headers values

func (*PostSetInternalServerError) SetPayload

func (o *PostSetInternalServerError) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the post set internal server error response

func (*PostSetInternalServerError) WithPayload

WithPayload adds the payload to the post set internal server error response

func (*PostSetInternalServerError) WriteResponse

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

WriteResponse to the client

type PostSetOK

type PostSetOK struct {

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

PostSetOK Basic successful request

swagger:response postSetOK

func NewPostSetOK

func NewPostSetOK() *PostSetOK

NewPostSetOK creates PostSetOK with default headers values

func (*PostSetOK) SetPayload

func (o *PostSetOK) SetPayload(payload *models.SuccessModel)

SetPayload sets the payload to the post set o k response

func (*PostSetOK) WithPayload

func (o *PostSetOK) WithPayload(payload *models.SuccessModel) *PostSetOK

WithPayload adds the payload to the post set o k response

func (*PostSetOK) WriteResponse

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

WriteResponse to the client

type PostSetParams

type PostSetParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Node set to store
	  Required: true
	  In: body
	*/
	Set *models.Set
}

PostSetParams contains all the bound params for the post set operation typically these are obtained from a http.Request

swagger:parameters PostSet

func NewPostSetParams

func NewPostSetParams() PostSetParams

NewPostSetParams creates a new PostSetParams object with the default values initialized.

func (*PostSetParams) BindRequest

func (o *PostSetParams) 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 PostSetURL

type PostSetURL struct {
	// contains filtered or unexported fields
}

PostSetURL generates an URL for the post set operation

func (*PostSetURL) Build

func (o *PostSetURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostSetURL) BuildFull

func (o *PostSetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostSetURL) Must

func (o *PostSetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostSetURL) SetBasePath

func (o *PostSetURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostSetURL) String

func (o *PostSetURL) String() string

String returns the string representation of the path with query string

func (*PostSetURL) StringFull

func (o *PostSetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostSetURL) WithBasePath

func (o *PostSetURL) WithBasePath(bp string) *PostSetURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PutSetSet

type PutSetSet struct {
	Context *middleware.Context
	Handler PutSetSetHandler
}

PutSetSet swagger:route PUT /set/{set} putSetSet

Update a set

func NewPutSetSet

func NewPutSetSet(ctx *middleware.Context, handler PutSetSetHandler) *PutSetSet

NewPutSetSet creates a new http.Handler for the put set set operation

func (*PutSetSet) ServeHTTP

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

type PutSetSetHandler

type PutSetSetHandler interface {
	Handle(PutSetSetParams) middleware.Responder
}

PutSetSetHandler interface for that can handle valid put set set params

type PutSetSetHandlerFunc

type PutSetSetHandlerFunc func(PutSetSetParams) middleware.Responder

PutSetSetHandlerFunc turns a function with the right signature into a put set set handler

func (PutSetSetHandlerFunc) Handle

Handle executing the request and returning a response

type PutSetSetInternalServerError

type PutSetSetInternalServerError struct {

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

PutSetSetInternalServerError Standard Error Format

swagger:response putSetSetInternalServerError

func NewPutSetSetInternalServerError

func NewPutSetSetInternalServerError() *PutSetSetInternalServerError

NewPutSetSetInternalServerError creates PutSetSetInternalServerError with default headers values

func (*PutSetSetInternalServerError) SetPayload

func (o *PutSetSetInternalServerError) SetPayload(payload *models.ErrorModel)

SetPayload sets the payload to the put set set internal server error response

func (*PutSetSetInternalServerError) WithPayload

WithPayload adds the payload to the put set set internal server error response

func (*PutSetSetInternalServerError) WriteResponse

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

WriteResponse to the client

type PutSetSetNotFound

type PutSetSetNotFound struct {
}

PutSetSetNotFound Not found

swagger:response putSetSetNotFound

func NewPutSetSetNotFound

func NewPutSetSetNotFound() *PutSetSetNotFound

NewPutSetSetNotFound creates PutSetSetNotFound with default headers values

func (*PutSetSetNotFound) WriteResponse

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

WriteResponse to the client

type PutSetSetOK

type PutSetSetOK struct {

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

PutSetSetOK Basic successful request

swagger:response putSetSetOK

func NewPutSetSetOK

func NewPutSetSetOK() *PutSetSetOK

NewPutSetSetOK creates PutSetSetOK with default headers values

func (*PutSetSetOK) SetPayload

func (o *PutSetSetOK) SetPayload(payload *models.SuccessModel)

SetPayload sets the payload to the put set set o k response

func (*PutSetSetOK) WithPayload

func (o *PutSetSetOK) WithPayload(payload *models.SuccessModel) *PutSetSetOK

WithPayload adds the payload to the put set set o k response

func (*PutSetSetOK) WriteResponse

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

WriteResponse to the client

type PutSetSetParams

type PutSetSetParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Set Properties
	  Required: true
	  In: body
	*/
	NewSet *models.Set
	/*Node set to retrieve
	  Required: true
	  In: path
	*/
	Set string
}

PutSetSetParams contains all the bound params for the put set set operation typically these are obtained from a http.Request

swagger:parameters PutSetSet

func NewPutSetSetParams

func NewPutSetSetParams() PutSetSetParams

NewPutSetSetParams creates a new PutSetSetParams object with the default values initialized.

func (*PutSetSetParams) BindRequest

func (o *PutSetSetParams) 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 PutSetSetURL

type PutSetSetURL struct {
	Set string
	// contains filtered or unexported fields
}

PutSetSetURL generates an URL for the put set set operation

func (*PutSetSetURL) Build

func (o *PutSetSetURL) Build() (*url.URL, error)

Build a url path and query string

func (*PutSetSetURL) BuildFull

func (o *PutSetSetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PutSetSetURL) Must

func (o *PutSetSetURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PutSetSetURL) SetBasePath

func (o *PutSetSetURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PutSetSetURL) String

func (o *PutSetSetURL) String() string

String returns the string representation of the path with query string

func (*PutSetSetURL) StringFull

func (o *PutSetSetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PutSetSetURL) WithBasePath

func (o *PutSetSetURL) WithBasePath(bp string) *PutSetSetURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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