Documentation ¶
Index ¶
- Constants
- type AddSubscription
- type AddSubscriptionBadRequest
- type AddSubscriptionConflict
- type AddSubscriptionCreated
- type AddSubscriptionDefault
- func (o *AddSubscriptionDefault) SetPayload(payload *v1.Error)
- func (o *AddSubscriptionDefault) SetStatusCode(code int)
- func (o *AddSubscriptionDefault) WithPayload(payload *v1.Error) *AddSubscriptionDefault
- func (o *AddSubscriptionDefault) WithStatusCode(code int) *AddSubscriptionDefault
- func (o *AddSubscriptionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddSubscriptionHandler
- type AddSubscriptionHandlerFunc
- type AddSubscriptionInternalServerError
- type AddSubscriptionParams
- type AddSubscriptionURL
- func (o *AddSubscriptionURL) Build() (*url.URL, error)
- func (o *AddSubscriptionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddSubscriptionURL) Must(u *url.URL, err error) *url.URL
- func (o *AddSubscriptionURL) SetBasePath(bp string)
- func (o *AddSubscriptionURL) String() string
- func (o *AddSubscriptionURL) StringFull(scheme, host string) string
- func (o *AddSubscriptionURL) WithBasePath(bp string) *AddSubscriptionURL
- type AddSubscriptionUnauthorized
- type DeleteSubscription
- type DeleteSubscriptionBadRequest
- type DeleteSubscriptionDefault
- func (o *DeleteSubscriptionDefault) SetPayload(payload *v1.Error)
- func (o *DeleteSubscriptionDefault) SetStatusCode(code int)
- func (o *DeleteSubscriptionDefault) WithPayload(payload *v1.Error) *DeleteSubscriptionDefault
- func (o *DeleteSubscriptionDefault) WithStatusCode(code int) *DeleteSubscriptionDefault
- func (o *DeleteSubscriptionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSubscriptionHandler
- type DeleteSubscriptionHandlerFunc
- type DeleteSubscriptionInternalServerError
- func (o *DeleteSubscriptionInternalServerError) SetPayload(payload *v1.Error)
- func (o *DeleteSubscriptionInternalServerError) WithPayload(payload *v1.Error) *DeleteSubscriptionInternalServerError
- func (o *DeleteSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteSubscriptionNotFound
- type DeleteSubscriptionOK
- type DeleteSubscriptionParams
- type DeleteSubscriptionURL
- func (o *DeleteSubscriptionURL) Build() (*url.URL, error)
- func (o *DeleteSubscriptionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSubscriptionURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSubscriptionURL) SetBasePath(bp string)
- func (o *DeleteSubscriptionURL) String() string
- func (o *DeleteSubscriptionURL) StringFull(scheme, host string) string
- func (o *DeleteSubscriptionURL) WithBasePath(bp string) *DeleteSubscriptionURL
- type GetSubscription
- type GetSubscriptionBadRequest
- type GetSubscriptionDefault
- func (o *GetSubscriptionDefault) SetPayload(payload *v1.Error)
- func (o *GetSubscriptionDefault) SetStatusCode(code int)
- func (o *GetSubscriptionDefault) WithPayload(payload *v1.Error) *GetSubscriptionDefault
- func (o *GetSubscriptionDefault) WithStatusCode(code int) *GetSubscriptionDefault
- func (o *GetSubscriptionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSubscriptionHandler
- type GetSubscriptionHandlerFunc
- type GetSubscriptionInternalServerError
- type GetSubscriptionNotFound
- type GetSubscriptionOK
- type GetSubscriptionParams
- type GetSubscriptionURL
- func (o *GetSubscriptionURL) Build() (*url.URL, error)
- func (o *GetSubscriptionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubscriptionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubscriptionURL) SetBasePath(bp string)
- func (o *GetSubscriptionURL) String() string
- func (o *GetSubscriptionURL) StringFull(scheme, host string) string
- func (o *GetSubscriptionURL) WithBasePath(bp string) *GetSubscriptionURL
- type GetSubscriptions
- type GetSubscriptionsBadRequest
- type GetSubscriptionsDefault
- func (o *GetSubscriptionsDefault) SetPayload(payload *v1.Error)
- func (o *GetSubscriptionsDefault) SetStatusCode(code int)
- func (o *GetSubscriptionsDefault) WithPayload(payload *v1.Error) *GetSubscriptionsDefault
- func (o *GetSubscriptionsDefault) WithStatusCode(code int) *GetSubscriptionsDefault
- func (o *GetSubscriptionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSubscriptionsHandler
- type GetSubscriptionsHandlerFunc
- type GetSubscriptionsInternalServerError
- func (o *GetSubscriptionsInternalServerError) SetPayload(payload *v1.Error)
- func (o *GetSubscriptionsInternalServerError) WithPayload(payload *v1.Error) *GetSubscriptionsInternalServerError
- func (o *GetSubscriptionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSubscriptionsOK
- type GetSubscriptionsParams
- type GetSubscriptionsURL
- func (o *GetSubscriptionsURL) Build() (*url.URL, error)
- func (o *GetSubscriptionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubscriptionsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubscriptionsURL) SetBasePath(bp string)
- func (o *GetSubscriptionsURL) String() string
- func (o *GetSubscriptionsURL) StringFull(scheme, host string) string
- func (o *GetSubscriptionsURL) WithBasePath(bp string) *GetSubscriptionsURL
- type UpdateSubscription
- type UpdateSubscriptionBadRequest
- type UpdateSubscriptionDefault
- func (o *UpdateSubscriptionDefault) SetPayload(payload *v1.Error)
- func (o *UpdateSubscriptionDefault) SetStatusCode(code int)
- func (o *UpdateSubscriptionDefault) WithPayload(payload *v1.Error) *UpdateSubscriptionDefault
- func (o *UpdateSubscriptionDefault) WithStatusCode(code int) *UpdateSubscriptionDefault
- func (o *UpdateSubscriptionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateSubscriptionHandler
- type UpdateSubscriptionHandlerFunc
- type UpdateSubscriptionInternalServerError
- func (o *UpdateSubscriptionInternalServerError) SetPayload(payload *v1.Error)
- func (o *UpdateSubscriptionInternalServerError) WithPayload(payload *v1.Error) *UpdateSubscriptionInternalServerError
- func (o *UpdateSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateSubscriptionNotFound
- type UpdateSubscriptionOK
- type UpdateSubscriptionParams
- type UpdateSubscriptionURL
- func (o *UpdateSubscriptionURL) Build() (*url.URL, error)
- func (o *UpdateSubscriptionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSubscriptionURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSubscriptionURL) SetBasePath(bp string)
- func (o *UpdateSubscriptionURL) String() string
- func (o *UpdateSubscriptionURL) StringFull(scheme, host string) string
- func (o *UpdateSubscriptionURL) WithBasePath(bp string) *UpdateSubscriptionURL
Constants ¶
const AddSubscriptionBadRequestCode int = 400
AddSubscriptionBadRequestCode is the HTTP code returned for type AddSubscriptionBadRequest
const AddSubscriptionConflictCode int = 409
AddSubscriptionConflictCode is the HTTP code returned for type AddSubscriptionConflict
const AddSubscriptionCreatedCode int = 201
AddSubscriptionCreatedCode is the HTTP code returned for type AddSubscriptionCreated
const AddSubscriptionInternalServerErrorCode int = 500
AddSubscriptionInternalServerErrorCode is the HTTP code returned for type AddSubscriptionInternalServerError
AddSubscriptionUnauthorizedCode is the HTTP code returned for type AddSubscriptionUnauthorized
const DeleteSubscriptionBadRequestCode int = 400
DeleteSubscriptionBadRequestCode is the HTTP code returned for type DeleteSubscriptionBadRequest
const DeleteSubscriptionInternalServerErrorCode int = 500
DeleteSubscriptionInternalServerErrorCode is the HTTP code returned for type DeleteSubscriptionInternalServerError
const DeleteSubscriptionNotFoundCode int = 404
DeleteSubscriptionNotFoundCode is the HTTP code returned for type DeleteSubscriptionNotFound
const DeleteSubscriptionOKCode int = 200
DeleteSubscriptionOKCode is the HTTP code returned for type DeleteSubscriptionOK
const GetSubscriptionBadRequestCode int = 400
GetSubscriptionBadRequestCode is the HTTP code returned for type GetSubscriptionBadRequest
const GetSubscriptionInternalServerErrorCode int = 500
GetSubscriptionInternalServerErrorCode is the HTTP code returned for type GetSubscriptionInternalServerError
const GetSubscriptionNotFoundCode int = 404
GetSubscriptionNotFoundCode is the HTTP code returned for type GetSubscriptionNotFound
const GetSubscriptionOKCode int = 200
GetSubscriptionOKCode is the HTTP code returned for type GetSubscriptionOK
const GetSubscriptionsBadRequestCode int = 400
GetSubscriptionsBadRequestCode is the HTTP code returned for type GetSubscriptionsBadRequest
const GetSubscriptionsInternalServerErrorCode int = 500
GetSubscriptionsInternalServerErrorCode is the HTTP code returned for type GetSubscriptionsInternalServerError
const GetSubscriptionsOKCode int = 200
GetSubscriptionsOKCode is the HTTP code returned for type GetSubscriptionsOK
const UpdateSubscriptionBadRequestCode int = 400
UpdateSubscriptionBadRequestCode is the HTTP code returned for type UpdateSubscriptionBadRequest
const UpdateSubscriptionInternalServerErrorCode int = 500
UpdateSubscriptionInternalServerErrorCode is the HTTP code returned for type UpdateSubscriptionInternalServerError
const UpdateSubscriptionNotFoundCode int = 404
UpdateSubscriptionNotFoundCode is the HTTP code returned for type UpdateSubscriptionNotFound
const UpdateSubscriptionOKCode int = 200
UpdateSubscriptionOKCode is the HTTP code returned for type UpdateSubscriptionOK
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 ¶
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 *v1.Error)
SetPayload sets the payload to the add subscription bad request response
func (*AddSubscriptionBadRequest) WithPayload ¶
func (o *AddSubscriptionBadRequest) WithPayload(payload *v1.Error) *AddSubscriptionBadRequest
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 AddSubscriptionConflict ¶ added in v0.1.13
AddSubscriptionConflict Already Exists
swagger:response addSubscriptionConflict
func NewAddSubscriptionConflict ¶ added in v0.1.13
func NewAddSubscriptionConflict() *AddSubscriptionConflict
NewAddSubscriptionConflict creates AddSubscriptionConflict with default headers values
func (*AddSubscriptionConflict) SetPayload ¶ added in v0.1.13
func (o *AddSubscriptionConflict) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add subscription conflict response
func (*AddSubscriptionConflict) WithPayload ¶ added in v0.1.13
func (o *AddSubscriptionConflict) WithPayload(payload *v1.Error) *AddSubscriptionConflict
WithPayload adds the payload to the add subscription conflict response
func (*AddSubscriptionConflict) WriteResponse ¶ added in v0.1.13
func (o *AddSubscriptionConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddSubscriptionCreated ¶
type AddSubscriptionCreated struct { /* In: Body */ Payload *v1.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 *v1.Subscription)
SetPayload sets the payload to the add subscription created response
func (*AddSubscriptionCreated) WithPayload ¶
func (o *AddSubscriptionCreated) WithPayload(payload *v1.Subscription) *AddSubscriptionCreated
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 *v1.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 *v1.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 *v1.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 *v1.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 *v1.Error)
SetPayload sets the payload to the add subscription internal server error response
func (*AddSubscriptionInternalServerError) WithPayload ¶
func (o *AddSubscriptionInternalServerError) WithPayload(payload *v1.Error) *AddSubscriptionInternalServerError
WithPayload adds the payload to the add subscription internal server error response
func (*AddSubscriptionInternalServerError) WriteResponse ¶
func (o *AddSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddSubscriptionParams ¶
type AddSubscriptionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*subscription object Required: true In: body */ Body *v1.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 no default values defined in spec.
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.
To ensure default values, the struct must have been initialized with NewAddSubscriptionParams() beforehand.
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 ¶
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 ¶
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 *v1.Error)
SetPayload sets the payload to the add subscription unauthorized response
func (*AddSubscriptionUnauthorized) WithPayload ¶
func (o *AddSubscriptionUnauthorized) WithPayload(payload *v1.Error) *AddSubscriptionUnauthorized
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 *v1.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 *v1.Error)
SetPayload sets the payload to the delete subscription bad request response
func (*DeleteSubscriptionBadRequest) WithPayload ¶
func (o *DeleteSubscriptionBadRequest) WithPayload(payload *v1.Error) *DeleteSubscriptionBadRequest
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 *v1.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 *v1.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 ¶
func (o *DeleteSubscriptionDefault) WithPayload(payload *v1.Error) *DeleteSubscriptionDefault
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 *v1.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 *v1.Error)
SetPayload sets the payload to the delete subscription internal server error response
func (*DeleteSubscriptionInternalServerError) WithPayload ¶
func (o *DeleteSubscriptionInternalServerError) WithPayload(payload *v1.Error) *DeleteSubscriptionInternalServerError
WithPayload adds the payload to the delete subscription internal server error response
func (*DeleteSubscriptionInternalServerError) WriteResponse ¶
func (o *DeleteSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubscriptionNotFound ¶
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 *v1.Error)
SetPayload sets the payload to the delete subscription not found response
func (*DeleteSubscriptionNotFound) WithPayload ¶
func (o *DeleteSubscriptionNotFound) WithPayload(payload *v1.Error) *DeleteSubscriptionNotFound
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 *v1.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 *v1.Subscription)
SetPayload sets the payload to the delete subscription o k response
func (*DeleteSubscriptionOK) WithPayload ¶
func (o *DeleteSubscriptionOK) WithPayload(payload *v1.Subscription) *DeleteSubscriptionOK
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 `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Name of the subscription to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ SubscriptionName string /*Filter based on tags In: query Collection Format: multi */ Tags []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 no default values defined in spec.
func (*DeleteSubscriptionParams) BindRequest ¶
func (o *DeleteSubscriptionParams) 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.
To ensure default values, the struct must have been initialized with NewDeleteSubscriptionParams() beforehand.
type DeleteSubscriptionURL ¶
type DeleteSubscriptionURL struct { SubscriptionName string Tags []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 ¶
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 ¶
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 *v1.Error)
SetPayload sets the payload to the get subscription bad request response
func (*GetSubscriptionBadRequest) WithPayload ¶
func (o *GetSubscriptionBadRequest) WithPayload(payload *v1.Error) *GetSubscriptionBadRequest
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 *v1.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 *v1.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 *v1.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 *v1.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 *v1.Error)
SetPayload sets the payload to the get subscription internal server error response
func (*GetSubscriptionInternalServerError) WithPayload ¶
func (o *GetSubscriptionInternalServerError) WithPayload(payload *v1.Error) *GetSubscriptionInternalServerError
WithPayload adds the payload to the get subscription internal server error response
func (*GetSubscriptionInternalServerError) WriteResponse ¶
func (o *GetSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubscriptionNotFound ¶
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 *v1.Error)
SetPayload sets the payload to the get subscription not found response
func (*GetSubscriptionNotFound) WithPayload ¶
func (o *GetSubscriptionNotFound) WithPayload(payload *v1.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 *v1.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 *v1.Subscription)
SetPayload sets the payload to the get subscription o k response
func (*GetSubscriptionOK) WithPayload ¶
func (o *GetSubscriptionOK) WithPayload(payload *v1.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 `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Name of the subscription to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ SubscriptionName string /*Filter based on tags In: query Collection Format: multi */ Tags []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 no default values defined in spec.
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.
To ensure default values, the struct must have been initialized with NewGetSubscriptionParams() beforehand.
type GetSubscriptionURL ¶
type GetSubscriptionURL struct { SubscriptionName string Tags []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 ¶
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 GetSubscriptionsBadRequest ¶ added in v0.1.13
GetSubscriptionsBadRequest Bad Request
swagger:response getSubscriptionsBadRequest
func NewGetSubscriptionsBadRequest ¶ added in v0.1.13
func NewGetSubscriptionsBadRequest() *GetSubscriptionsBadRequest
NewGetSubscriptionsBadRequest creates GetSubscriptionsBadRequest with default headers values
func (*GetSubscriptionsBadRequest) SetPayload ¶ added in v0.1.13
func (o *GetSubscriptionsBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get subscriptions bad request response
func (*GetSubscriptionsBadRequest) WithPayload ¶ added in v0.1.13
func (o *GetSubscriptionsBadRequest) WithPayload(payload *v1.Error) *GetSubscriptionsBadRequest
WithPayload adds the payload to the get subscriptions bad request response
func (*GetSubscriptionsBadRequest) WriteResponse ¶ added in v0.1.13
func (o *GetSubscriptionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubscriptionsDefault ¶
type GetSubscriptionsDefault struct { /* In: Body */ Payload *v1.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 *v1.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 *v1.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 *v1.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 *v1.Error)
SetPayload sets the payload to the get subscriptions internal server error response
func (*GetSubscriptionsInternalServerError) WithPayload ¶
func (o *GetSubscriptionsInternalServerError) WithPayload(payload *v1.Error) *GetSubscriptionsInternalServerError
WithPayload adds the payload to the get subscriptions internal server error response
func (*GetSubscriptionsInternalServerError) WriteResponse ¶
func (o *GetSubscriptionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubscriptionsOK ¶
type GetSubscriptionsOK struct { /* In: Body */ Payload []*v1.Subscription `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 []*v1.Subscription)
SetPayload sets the payload to the get subscriptions o k response
func (*GetSubscriptionsOK) WithPayload ¶
func (o *GetSubscriptionsOK) WithPayload(payload []*v1.Subscription) *GetSubscriptionsOK
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 `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Filter based on 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 no default values defined in spec.
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.
To ensure default values, the struct must have been initialized with NewGetSubscriptionsParams() beforehand.
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 ¶
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
type UpdateSubscription ¶ added in v0.1.13
type UpdateSubscription struct { Context *middleware.Context Handler UpdateSubscriptionHandler }
UpdateSubscription swagger:route PUT /subscriptions/{subscriptionName} subscriptions updateSubscription
Update subscription by Name ¶
Updates a single subscription
func NewUpdateSubscription ¶ added in v0.1.13
func NewUpdateSubscription(ctx *middleware.Context, handler UpdateSubscriptionHandler) *UpdateSubscription
NewUpdateSubscription creates a new http.Handler for the update subscription operation
func (*UpdateSubscription) ServeHTTP ¶ added in v0.1.13
func (o *UpdateSubscription) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSubscriptionBadRequest ¶ added in v0.1.13
type UpdateSubscriptionBadRequest struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
UpdateSubscriptionBadRequest Invalid Name supplied
swagger:response updateSubscriptionBadRequest
func NewUpdateSubscriptionBadRequest ¶ added in v0.1.13
func NewUpdateSubscriptionBadRequest() *UpdateSubscriptionBadRequest
NewUpdateSubscriptionBadRequest creates UpdateSubscriptionBadRequest with default headers values
func (*UpdateSubscriptionBadRequest) SetPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription bad request response
func (*UpdateSubscriptionBadRequest) WithPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionBadRequest) WithPayload(payload *v1.Error) *UpdateSubscriptionBadRequest
WithPayload adds the payload to the update subscription bad request response
func (*UpdateSubscriptionBadRequest) WriteResponse ¶ added in v0.1.13
func (o *UpdateSubscriptionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubscriptionDefault ¶ added in v0.1.13
type UpdateSubscriptionDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateSubscriptionDefault Unknown error
swagger:response updateSubscriptionDefault
func NewUpdateSubscriptionDefault ¶ added in v0.1.13
func NewUpdateSubscriptionDefault(code int) *UpdateSubscriptionDefault
NewUpdateSubscriptionDefault creates UpdateSubscriptionDefault with default headers values
func (*UpdateSubscriptionDefault) SetPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription default response
func (*UpdateSubscriptionDefault) SetStatusCode ¶ added in v0.1.13
func (o *UpdateSubscriptionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update subscription default response
func (*UpdateSubscriptionDefault) WithPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionDefault) WithPayload(payload *v1.Error) *UpdateSubscriptionDefault
WithPayload adds the payload to the update subscription default response
func (*UpdateSubscriptionDefault) WithStatusCode ¶ added in v0.1.13
func (o *UpdateSubscriptionDefault) WithStatusCode(code int) *UpdateSubscriptionDefault
WithStatusCode adds the status to the update subscription default response
func (*UpdateSubscriptionDefault) WriteResponse ¶ added in v0.1.13
func (o *UpdateSubscriptionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubscriptionHandler ¶ added in v0.1.13
type UpdateSubscriptionHandler interface {
Handle(UpdateSubscriptionParams, interface{}) middleware.Responder
}
UpdateSubscriptionHandler interface for that can handle valid update subscription params
type UpdateSubscriptionHandlerFunc ¶ added in v0.1.13
type UpdateSubscriptionHandlerFunc func(UpdateSubscriptionParams, interface{}) middleware.Responder
UpdateSubscriptionHandlerFunc turns a function with the right signature into a update subscription handler
func (UpdateSubscriptionHandlerFunc) Handle ¶ added in v0.1.13
func (fn UpdateSubscriptionHandlerFunc) Handle(params UpdateSubscriptionParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdateSubscriptionInternalServerError ¶ added in v0.1.13
type UpdateSubscriptionInternalServerError struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
UpdateSubscriptionInternalServerError Internal server error
swagger:response updateSubscriptionInternalServerError
func NewUpdateSubscriptionInternalServerError ¶ added in v0.1.13
func NewUpdateSubscriptionInternalServerError() *UpdateSubscriptionInternalServerError
NewUpdateSubscriptionInternalServerError creates UpdateSubscriptionInternalServerError with default headers values
func (*UpdateSubscriptionInternalServerError) SetPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionInternalServerError) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription internal server error response
func (*UpdateSubscriptionInternalServerError) WithPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionInternalServerError) WithPayload(payload *v1.Error) *UpdateSubscriptionInternalServerError
WithPayload adds the payload to the update subscription internal server error response
func (*UpdateSubscriptionInternalServerError) WriteResponse ¶ added in v0.1.13
func (o *UpdateSubscriptionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubscriptionNotFound ¶ added in v0.1.13
UpdateSubscriptionNotFound Subscription not found
swagger:response updateSubscriptionNotFound
func NewUpdateSubscriptionNotFound ¶ added in v0.1.13
func NewUpdateSubscriptionNotFound() *UpdateSubscriptionNotFound
NewUpdateSubscriptionNotFound creates UpdateSubscriptionNotFound with default headers values
func (*UpdateSubscriptionNotFound) SetPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionNotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription not found response
func (*UpdateSubscriptionNotFound) WithPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionNotFound) WithPayload(payload *v1.Error) *UpdateSubscriptionNotFound
WithPayload adds the payload to the update subscription not found response
func (*UpdateSubscriptionNotFound) WriteResponse ¶ added in v0.1.13
func (o *UpdateSubscriptionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubscriptionOK ¶ added in v0.1.13
type UpdateSubscriptionOK struct { /* In: Body */ Payload *v1.Subscription `json:"body,omitempty"` }
UpdateSubscriptionOK Successful operation
swagger:response updateSubscriptionOK
func NewUpdateSubscriptionOK ¶ added in v0.1.13
func NewUpdateSubscriptionOK() *UpdateSubscriptionOK
NewUpdateSubscriptionOK creates UpdateSubscriptionOK with default headers values
func (*UpdateSubscriptionOK) SetPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionOK) SetPayload(payload *v1.Subscription)
SetPayload sets the payload to the update subscription o k response
func (*UpdateSubscriptionOK) WithPayload ¶ added in v0.1.13
func (o *UpdateSubscriptionOK) WithPayload(payload *v1.Subscription) *UpdateSubscriptionOK
WithPayload adds the payload to the update subscription o k response
func (*UpdateSubscriptionOK) WriteResponse ¶ added in v0.1.13
func (o *UpdateSubscriptionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubscriptionParams ¶ added in v0.1.13
type UpdateSubscriptionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*subscription object Required: true In: body */ Body *v1.Subscription /*Name of the subscription to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ SubscriptionName string /*Filter based on tags In: query Collection Format: multi */ Tags []string }
UpdateSubscriptionParams contains all the bound params for the update subscription operation typically these are obtained from a http.Request
swagger:parameters updateSubscription
func NewUpdateSubscriptionParams ¶ added in v0.1.13
func NewUpdateSubscriptionParams() UpdateSubscriptionParams
NewUpdateSubscriptionParams creates a new UpdateSubscriptionParams object no default values defined in spec.
func (*UpdateSubscriptionParams) BindRequest ¶ added in v0.1.13
func (o *UpdateSubscriptionParams) 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.
To ensure default values, the struct must have been initialized with NewUpdateSubscriptionParams() beforehand.
type UpdateSubscriptionURL ¶ added in v0.1.13
type UpdateSubscriptionURL struct { SubscriptionName string Tags []string // contains filtered or unexported fields }
UpdateSubscriptionURL generates an URL for the update subscription operation
func (*UpdateSubscriptionURL) Build ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSubscriptionURL) BuildFull ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSubscriptionURL) Must ¶ added in v0.1.13
Must is a helper function to panic when the url builder returns an error
func (*UpdateSubscriptionURL) SetBasePath ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) 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 (*UpdateSubscriptionURL) String ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) String() string
String returns the string representation of the path with query string
func (*UpdateSubscriptionURL) StringFull ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSubscriptionURL) WithBasePath ¶ added in v0.1.13
func (o *UpdateSubscriptionURL) WithBasePath(bp string) *UpdateSubscriptionURL
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
Source Files ¶
- add_subscription.go
- add_subscription_parameters.go
- add_subscription_responses.go
- add_subscription_urlbuilder.go
- delete_subscription.go
- delete_subscription_parameters.go
- delete_subscription_responses.go
- delete_subscription_urlbuilder.go
- get_subscription.go
- get_subscription_parameters.go
- get_subscription_responses.go
- get_subscription_urlbuilder.go
- get_subscriptions.go
- get_subscriptions_parameters.go
- get_subscriptions_responses.go
- get_subscriptions_urlbuilder.go
- update_subscription.go
- update_subscription_parameters.go
- update_subscription_responses.go
- update_subscription_urlbuilder.go