subscriptions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddSubscriptionBadRequestCode int = 400

AddSubscriptionBadRequestCode is the HTTP code returned for type AddSubscriptionBadRequest

View Source
const AddSubscriptionCreatedCode int = 201

AddSubscriptionCreatedCode is the HTTP code returned for type AddSubscriptionCreated

View Source
const AddSubscriptionInternalServerErrorCode int = 500

AddSubscriptionInternalServerErrorCode is the HTTP code returned for type AddSubscriptionInternalServerError

View Source
const AddSubscriptionUnauthorizedCode int = 401

AddSubscriptionUnauthorizedCode is the HTTP code returned for type AddSubscriptionUnauthorized

View Source
const DeleteSubscriptionBadRequestCode int = 400

DeleteSubscriptionBadRequestCode is the HTTP code returned for type DeleteSubscriptionBadRequest

View Source
const DeleteSubscriptionInternalServerErrorCode int = 500

DeleteSubscriptionInternalServerErrorCode is the HTTP code returned for type DeleteSubscriptionInternalServerError

View Source
const DeleteSubscriptionNotFoundCode int = 404

DeleteSubscriptionNotFoundCode is the HTTP code returned for type DeleteSubscriptionNotFound

View Source
const DeleteSubscriptionOKCode int = 200

DeleteSubscriptionOKCode is the HTTP code returned for type DeleteSubscriptionOK

View Source
const GetSubscriptionBadRequestCode int = 400

GetSubscriptionBadRequestCode is the HTTP code returned for type GetSubscriptionBadRequest

View Source
const GetSubscriptionInternalServerErrorCode int = 500

GetSubscriptionInternalServerErrorCode is the HTTP code returned for type GetSubscriptionInternalServerError

View Source
const GetSubscriptionNotFoundCode int = 404

GetSubscriptionNotFoundCode is the HTTP code returned for type GetSubscriptionNotFound

View Source
const GetSubscriptionOKCode int = 200

GetSubscriptionOKCode is the HTTP code returned for type GetSubscriptionOK

View Source
const GetSubscriptionsInternalServerErrorCode int = 500

GetSubscriptionsInternalServerErrorCode is the HTTP code returned for type GetSubscriptionsInternalServerError

View Source
const GetSubscriptionsOKCode int = 200

GetSubscriptionsOKCode is the HTTP code returned for type GetSubscriptionsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSubscription

type AddSubscription struct {
	Context *middleware.Context
	Handler AddSubscriptionHandler
}

AddSubscription swagger:route POST /subscriptions subscriptions addSubscription

Add a new subscription

func NewAddSubscription

func NewAddSubscription(ctx *middleware.Context, handler AddSubscriptionHandler) *AddSubscription

NewAddSubscription creates a new http.Handler for the add subscription operation

func (*AddSubscription) ServeHTTP

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

type AddSubscriptionBadRequest

type AddSubscriptionBadRequest struct {

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

AddSubscriptionBadRequest Invalid input

swagger:response addSubscriptionBadRequest

func NewAddSubscriptionBadRequest

func NewAddSubscriptionBadRequest() *AddSubscriptionBadRequest

NewAddSubscriptionBadRequest creates AddSubscriptionBadRequest with default headers values

func (*AddSubscriptionBadRequest) SetPayload

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

SetPayload sets the payload to the add subscription bad request response

func (*AddSubscriptionBadRequest) WithPayload

WithPayload adds the payload to the add subscription bad request response

func (*AddSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type AddSubscriptionCreated

type AddSubscriptionCreated struct {

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

AddSubscriptionCreated Subscription created

swagger:response addSubscriptionCreated

func NewAddSubscriptionCreated

func NewAddSubscriptionCreated() *AddSubscriptionCreated

NewAddSubscriptionCreated creates AddSubscriptionCreated with default headers values

func (*AddSubscriptionCreated) SetPayload

func (o *AddSubscriptionCreated) SetPayload(payload *models.Subscription)

SetPayload sets the payload to the add subscription created response

func (*AddSubscriptionCreated) WithPayload

WithPayload adds the payload to the add subscription created response

func (*AddSubscriptionCreated) WriteResponse

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

WriteResponse to the client

type AddSubscriptionDefault

type AddSubscriptionDefault struct {

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

AddSubscriptionDefault Unknown error

swagger:response addSubscriptionDefault

func NewAddSubscriptionDefault

func NewAddSubscriptionDefault(code int) *AddSubscriptionDefault

NewAddSubscriptionDefault creates AddSubscriptionDefault with default headers values

func (*AddSubscriptionDefault) SetPayload

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

SetPayload sets the payload to the add subscription default response

func (*AddSubscriptionDefault) SetStatusCode

func (o *AddSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add subscription default response

func (*AddSubscriptionDefault) WithPayload

func (o *AddSubscriptionDefault) WithPayload(payload *models.Error) *AddSubscriptionDefault

WithPayload adds the payload to the add subscription default response

func (*AddSubscriptionDefault) WithStatusCode

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

WithStatusCode adds the status to the add subscription default response

func (*AddSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type AddSubscriptionHandler

type AddSubscriptionHandler interface {
	Handle(AddSubscriptionParams, interface{}) middleware.Responder
}

AddSubscriptionHandler interface for that can handle valid add subscription params

type AddSubscriptionHandlerFunc

type AddSubscriptionHandlerFunc func(AddSubscriptionParams, interface{}) middleware.Responder

AddSubscriptionHandlerFunc turns a function with the right signature into a add subscription handler

func (AddSubscriptionHandlerFunc) Handle

func (fn AddSubscriptionHandlerFunc) Handle(params AddSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddSubscriptionInternalServerError

type AddSubscriptionInternalServerError struct {

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

AddSubscriptionInternalServerError Internal server error

swagger:response addSubscriptionInternalServerError

func NewAddSubscriptionInternalServerError

func NewAddSubscriptionInternalServerError() *AddSubscriptionInternalServerError

NewAddSubscriptionInternalServerError creates AddSubscriptionInternalServerError with default headers values

func (*AddSubscriptionInternalServerError) SetPayload

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

SetPayload sets the payload to the add subscription internal server error response

func (*AddSubscriptionInternalServerError) WithPayload

WithPayload adds the payload to the add subscription internal server error response

func (*AddSubscriptionInternalServerError) WriteResponse

WriteResponse to the client

type AddSubscriptionParams

type AddSubscriptionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*subscription object
	  Required: true
	  In: body
	*/
	Body *models.Subscription
}

AddSubscriptionParams contains all the bound params for the add subscription operation typically these are obtained from a http.Request

swagger:parameters addSubscription

func NewAddSubscriptionParams

func NewAddSubscriptionParams() AddSubscriptionParams

NewAddSubscriptionParams creates a new AddSubscriptionParams object with the default values initialized.

func (*AddSubscriptionParams) BindRequest

func (o *AddSubscriptionParams) 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 AddSubscriptionURL

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

AddSubscriptionURL generates an URL for the add subscription operation

func (*AddSubscriptionURL) Build

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

Build a url path and query string

func (*AddSubscriptionURL) BuildFull

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

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

func (*AddSubscriptionURL) Must

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

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

func (*AddSubscriptionURL) SetBasePath

func (o *AddSubscriptionURL) 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 (*AddSubscriptionURL) String

func (o *AddSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*AddSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddSubscriptionURL) WithBasePath

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

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 AddSubscriptionUnauthorized

type AddSubscriptionUnauthorized struct {

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

AddSubscriptionUnauthorized Unauthorized Request

swagger:response addSubscriptionUnauthorized

func NewAddSubscriptionUnauthorized

func NewAddSubscriptionUnauthorized() *AddSubscriptionUnauthorized

NewAddSubscriptionUnauthorized creates AddSubscriptionUnauthorized with default headers values

func (*AddSubscriptionUnauthorized) SetPayload

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

SetPayload sets the payload to the add subscription unauthorized response

func (*AddSubscriptionUnauthorized) WithPayload

WithPayload adds the payload to the add subscription unauthorized response

func (*AddSubscriptionUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteSubscription

type DeleteSubscription struct {
	Context *middleware.Context
	Handler DeleteSubscriptionHandler
}

DeleteSubscription swagger:route DELETE /subscriptions/{subscriptionName} subscriptions deleteSubscription

Deletes a subscription

func NewDeleteSubscription

func NewDeleteSubscription(ctx *middleware.Context, handler DeleteSubscriptionHandler) *DeleteSubscription

NewDeleteSubscription creates a new http.Handler for the delete subscription operation

func (*DeleteSubscription) ServeHTTP

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

type DeleteSubscriptionBadRequest

type DeleteSubscriptionBadRequest struct {

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

DeleteSubscriptionBadRequest Invalid ID supplied

swagger:response deleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest() *DeleteSubscriptionBadRequest

NewDeleteSubscriptionBadRequest creates DeleteSubscriptionBadRequest with default headers values

func (*DeleteSubscriptionBadRequest) SetPayload

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

SetPayload sets the payload to the delete subscription bad request response

func (*DeleteSubscriptionBadRequest) WithPayload

WithPayload adds the payload to the delete subscription bad request response

func (*DeleteSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionDefault

type DeleteSubscriptionDefault struct {

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

DeleteSubscriptionDefault Generic error response

swagger:response deleteSubscriptionDefault

func NewDeleteSubscriptionDefault

func NewDeleteSubscriptionDefault(code int) *DeleteSubscriptionDefault

NewDeleteSubscriptionDefault creates DeleteSubscriptionDefault with default headers values

func (*DeleteSubscriptionDefault) SetPayload

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

SetPayload sets the payload to the delete subscription default response

func (*DeleteSubscriptionDefault) SetStatusCode

func (o *DeleteSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete subscription default response

func (*DeleteSubscriptionDefault) WithPayload

WithPayload adds the payload to the delete subscription default response

func (*DeleteSubscriptionDefault) WithStatusCode

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

WithStatusCode adds the status to the delete subscription default response

func (*DeleteSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionHandler

type DeleteSubscriptionHandler interface {
	Handle(DeleteSubscriptionParams, interface{}) middleware.Responder
}

DeleteSubscriptionHandler interface for that can handle valid delete subscription params

type DeleteSubscriptionHandlerFunc

type DeleteSubscriptionHandlerFunc func(DeleteSubscriptionParams, interface{}) middleware.Responder

DeleteSubscriptionHandlerFunc turns a function with the right signature into a delete subscription handler

func (DeleteSubscriptionHandlerFunc) Handle

func (fn DeleteSubscriptionHandlerFunc) Handle(params DeleteSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteSubscriptionInternalServerError

type DeleteSubscriptionInternalServerError struct {

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

DeleteSubscriptionInternalServerError Internal server error

swagger:response deleteSubscriptionInternalServerError

func NewDeleteSubscriptionInternalServerError

func NewDeleteSubscriptionInternalServerError() *DeleteSubscriptionInternalServerError

NewDeleteSubscriptionInternalServerError creates DeleteSubscriptionInternalServerError with default headers values

func (*DeleteSubscriptionInternalServerError) SetPayload

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

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

func (*DeleteSubscriptionInternalServerError) WithPayload

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

func (*DeleteSubscriptionInternalServerError) WriteResponse

WriteResponse to the client

type DeleteSubscriptionNotFound

type DeleteSubscriptionNotFound struct {

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

DeleteSubscriptionNotFound Subscription not found

swagger:response deleteSubscriptionNotFound

func NewDeleteSubscriptionNotFound

func NewDeleteSubscriptionNotFound() *DeleteSubscriptionNotFound

NewDeleteSubscriptionNotFound creates DeleteSubscriptionNotFound with default headers values

func (*DeleteSubscriptionNotFound) SetPayload

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

SetPayload sets the payload to the delete subscription not found response

func (*DeleteSubscriptionNotFound) WithPayload

WithPayload adds the payload to the delete subscription not found response

func (*DeleteSubscriptionNotFound) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionOK

type DeleteSubscriptionOK struct {

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

DeleteSubscriptionOK successful operation

swagger:response deleteSubscriptionOK

func NewDeleteSubscriptionOK

func NewDeleteSubscriptionOK() *DeleteSubscriptionOK

NewDeleteSubscriptionOK creates DeleteSubscriptionOK with default headers values

func (*DeleteSubscriptionOK) SetPayload

func (o *DeleteSubscriptionOK) SetPayload(payload *models.Subscription)

SetPayload sets the payload to the delete subscription o k response

func (*DeleteSubscriptionOK) WithPayload

WithPayload adds the payload to the delete subscription o k response

func (*DeleteSubscriptionOK) WriteResponse

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

WriteResponse to the client

type DeleteSubscriptionParams

type DeleteSubscriptionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SubscriptionName string
}

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

swagger:parameters deleteSubscription

func NewDeleteSubscriptionParams

func NewDeleteSubscriptionParams() DeleteSubscriptionParams

NewDeleteSubscriptionParams creates a new DeleteSubscriptionParams object with the default values initialized.

func (*DeleteSubscriptionParams) BindRequest

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 DeleteSubscriptionURL

type DeleteSubscriptionURL struct {
	SubscriptionName string
	// contains filtered or unexported fields
}

DeleteSubscriptionURL generates an URL for the delete subscription operation

func (*DeleteSubscriptionURL) Build

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

Build a url path and query string

func (*DeleteSubscriptionURL) BuildFull

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

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

func (*DeleteSubscriptionURL) Must

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

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

func (*DeleteSubscriptionURL) SetBasePath

func (o *DeleteSubscriptionURL) 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 (*DeleteSubscriptionURL) String

func (o *DeleteSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*DeleteSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteSubscriptionURL) WithBasePath

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

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 GetSubscription

type GetSubscription struct {
	Context *middleware.Context
	Handler GetSubscriptionHandler
}

GetSubscription swagger:route GET /subscriptions/{subscriptionName} subscriptions getSubscription

Find subscription by Name

Returns a single subscription

func NewGetSubscription

func NewGetSubscription(ctx *middleware.Context, handler GetSubscriptionHandler) *GetSubscription

NewGetSubscription creates a new http.Handler for the get subscription operation

func (*GetSubscription) ServeHTTP

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

type GetSubscriptionBadRequest

type GetSubscriptionBadRequest struct {

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

GetSubscriptionBadRequest Invalid Name supplied

swagger:response getSubscriptionBadRequest

func NewGetSubscriptionBadRequest

func NewGetSubscriptionBadRequest() *GetSubscriptionBadRequest

NewGetSubscriptionBadRequest creates GetSubscriptionBadRequest with default headers values

func (*GetSubscriptionBadRequest) SetPayload

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

SetPayload sets the payload to the get subscription bad request response

func (*GetSubscriptionBadRequest) WithPayload

WithPayload adds the payload to the get subscription bad request response

func (*GetSubscriptionBadRequest) WriteResponse

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

WriteResponse to the client

type GetSubscriptionDefault

type GetSubscriptionDefault struct {

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

GetSubscriptionDefault Unknown error

swagger:response getSubscriptionDefault

func NewGetSubscriptionDefault

func NewGetSubscriptionDefault(code int) *GetSubscriptionDefault

NewGetSubscriptionDefault creates GetSubscriptionDefault with default headers values

func (*GetSubscriptionDefault) SetPayload

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

SetPayload sets the payload to the get subscription default response

func (*GetSubscriptionDefault) SetStatusCode

func (o *GetSubscriptionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get subscription default response

func (*GetSubscriptionDefault) WithPayload

func (o *GetSubscriptionDefault) WithPayload(payload *models.Error) *GetSubscriptionDefault

WithPayload adds the payload to the get subscription default response

func (*GetSubscriptionDefault) WithStatusCode

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

WithStatusCode adds the status to the get subscription default response

func (*GetSubscriptionDefault) WriteResponse

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

WriteResponse to the client

type GetSubscriptionHandler

type GetSubscriptionHandler interface {
	Handle(GetSubscriptionParams, interface{}) middleware.Responder
}

GetSubscriptionHandler interface for that can handle valid get subscription params

type GetSubscriptionHandlerFunc

type GetSubscriptionHandlerFunc func(GetSubscriptionParams, interface{}) middleware.Responder

GetSubscriptionHandlerFunc turns a function with the right signature into a get subscription handler

func (GetSubscriptionHandlerFunc) Handle

func (fn GetSubscriptionHandlerFunc) Handle(params GetSubscriptionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSubscriptionInternalServerError

type GetSubscriptionInternalServerError struct {

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

GetSubscriptionInternalServerError Internal server error

swagger:response getSubscriptionInternalServerError

func NewGetSubscriptionInternalServerError

func NewGetSubscriptionInternalServerError() *GetSubscriptionInternalServerError

NewGetSubscriptionInternalServerError creates GetSubscriptionInternalServerError with default headers values

func (*GetSubscriptionInternalServerError) SetPayload

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

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

func (*GetSubscriptionInternalServerError) WithPayload

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

func (*GetSubscriptionInternalServerError) WriteResponse

WriteResponse to the client

type GetSubscriptionNotFound

type GetSubscriptionNotFound struct {

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

GetSubscriptionNotFound Subscription not found

swagger:response getSubscriptionNotFound

func NewGetSubscriptionNotFound

func NewGetSubscriptionNotFound() *GetSubscriptionNotFound

NewGetSubscriptionNotFound creates GetSubscriptionNotFound with default headers values

func (*GetSubscriptionNotFound) SetPayload

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

SetPayload sets the payload to the get subscription not found response

func (*GetSubscriptionNotFound) WithPayload

func (o *GetSubscriptionNotFound) WithPayload(payload *models.Error) *GetSubscriptionNotFound

WithPayload adds the payload to the get subscription not found response

func (*GetSubscriptionNotFound) WriteResponse

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

WriteResponse to the client

type GetSubscriptionOK

type GetSubscriptionOK struct {

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

GetSubscriptionOK Successful operation

swagger:response getSubscriptionOK

func NewGetSubscriptionOK

func NewGetSubscriptionOK() *GetSubscriptionOK

NewGetSubscriptionOK creates GetSubscriptionOK with default headers values

func (*GetSubscriptionOK) SetPayload

func (o *GetSubscriptionOK) SetPayload(payload *models.Subscription)

SetPayload sets the payload to the get subscription o k response

func (*GetSubscriptionOK) WithPayload

func (o *GetSubscriptionOK) WithPayload(payload *models.Subscription) *GetSubscriptionOK

WithPayload adds the payload to the get subscription o k response

func (*GetSubscriptionOK) WriteResponse

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

WriteResponse to the client

type GetSubscriptionParams

type GetSubscriptionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	SubscriptionName string
}

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

swagger:parameters getSubscription

func NewGetSubscriptionParams

func NewGetSubscriptionParams() GetSubscriptionParams

NewGetSubscriptionParams creates a new GetSubscriptionParams object with the default values initialized.

func (*GetSubscriptionParams) BindRequest

func (o *GetSubscriptionParams) 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 GetSubscriptionURL

type GetSubscriptionURL struct {
	SubscriptionName string
	// contains filtered or unexported fields
}

GetSubscriptionURL generates an URL for the get subscription operation

func (*GetSubscriptionURL) Build

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

Build a url path and query string

func (*GetSubscriptionURL) BuildFull

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

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

func (*GetSubscriptionURL) Must

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

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

func (*GetSubscriptionURL) SetBasePath

func (o *GetSubscriptionURL) 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 (*GetSubscriptionURL) String

func (o *GetSubscriptionURL) String() string

String returns the string representation of the path with query string

func (*GetSubscriptionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSubscriptionURL) WithBasePath

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

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 GetSubscriptions

type GetSubscriptions struct {
	Context *middleware.Context
	Handler GetSubscriptionsHandler
}

GetSubscriptions swagger:route GET /subscriptions subscriptions getSubscriptions

List all existing subscriptions

func NewGetSubscriptions

func NewGetSubscriptions(ctx *middleware.Context, handler GetSubscriptionsHandler) *GetSubscriptions

NewGetSubscriptions creates a new http.Handler for the get subscriptions operation

func (*GetSubscriptions) ServeHTTP

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

type GetSubscriptionsDefault

type GetSubscriptionsDefault struct {

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

GetSubscriptionsDefault Unknown error

swagger:response getSubscriptionsDefault

func NewGetSubscriptionsDefault

func NewGetSubscriptionsDefault(code int) *GetSubscriptionsDefault

NewGetSubscriptionsDefault creates GetSubscriptionsDefault with default headers values

func (*GetSubscriptionsDefault) SetPayload

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

SetPayload sets the payload to the get subscriptions default response

func (*GetSubscriptionsDefault) SetStatusCode

func (o *GetSubscriptionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get subscriptions default response

func (*GetSubscriptionsDefault) WithPayload

func (o *GetSubscriptionsDefault) WithPayload(payload *models.Error) *GetSubscriptionsDefault

WithPayload adds the payload to the get subscriptions default response

func (*GetSubscriptionsDefault) WithStatusCode

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

WithStatusCode adds the status to the get subscriptions default response

func (*GetSubscriptionsDefault) WriteResponse

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

WriteResponse to the client

type GetSubscriptionsHandler

type GetSubscriptionsHandler interface {
	Handle(GetSubscriptionsParams, interface{}) middleware.Responder
}

GetSubscriptionsHandler interface for that can handle valid get subscriptions params

type GetSubscriptionsHandlerFunc

type GetSubscriptionsHandlerFunc func(GetSubscriptionsParams, interface{}) middleware.Responder

GetSubscriptionsHandlerFunc turns a function with the right signature into a get subscriptions handler

func (GetSubscriptionsHandlerFunc) Handle

func (fn GetSubscriptionsHandlerFunc) Handle(params GetSubscriptionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSubscriptionsInternalServerError

type GetSubscriptionsInternalServerError struct {

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

GetSubscriptionsInternalServerError Internal server error

swagger:response getSubscriptionsInternalServerError

func NewGetSubscriptionsInternalServerError

func NewGetSubscriptionsInternalServerError() *GetSubscriptionsInternalServerError

NewGetSubscriptionsInternalServerError creates GetSubscriptionsInternalServerError with default headers values

func (*GetSubscriptionsInternalServerError) SetPayload

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

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

func (*GetSubscriptionsInternalServerError) WithPayload

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

func (*GetSubscriptionsInternalServerError) WriteResponse

WriteResponse to the client

type GetSubscriptionsOK

type GetSubscriptionsOK struct {

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

GetSubscriptionsOK Successful operation

swagger:response getSubscriptionsOK

func NewGetSubscriptionsOK

func NewGetSubscriptionsOK() *GetSubscriptionsOK

NewGetSubscriptionsOK creates GetSubscriptionsOK with default headers values

func (*GetSubscriptionsOK) SetPayload

func (o *GetSubscriptionsOK) SetPayload(payload models.GetSubscriptionsOKBody)

SetPayload sets the payload to the get subscriptions o k response

func (*GetSubscriptionsOK) WithPayload

WithPayload adds the payload to the get subscriptions o k response

func (*GetSubscriptionsOK) WriteResponse

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

WriteResponse to the client

type GetSubscriptionsParams

type GetSubscriptionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Filter on subscription tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

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

swagger:parameters getSubscriptions

func NewGetSubscriptionsParams

func NewGetSubscriptionsParams() GetSubscriptionsParams

NewGetSubscriptionsParams creates a new GetSubscriptionsParams object with the default values initialized.

func (*GetSubscriptionsParams) BindRequest

func (o *GetSubscriptionsParams) 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 GetSubscriptionsURL

type GetSubscriptionsURL struct {
	Tags []string
	// contains filtered or unexported fields
}

GetSubscriptionsURL generates an URL for the get subscriptions operation

func (*GetSubscriptionsURL) Build

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

Build a url path and query string

func (*GetSubscriptionsURL) BuildFull

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

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

func (*GetSubscriptionsURL) Must

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

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

func (*GetSubscriptionsURL) SetBasePath

func (o *GetSubscriptionsURL) 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 (*GetSubscriptionsURL) String

func (o *GetSubscriptionsURL) String() string

String returns the string representation of the path with query string

func (*GetSubscriptionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSubscriptionsURL) WithBasePath

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

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