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 AddSubscriptionForbidden
- type AddSubscriptionHandler
- type AddSubscriptionHandlerFunc
- 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 DeleteSubscriptionForbidden
- type DeleteSubscriptionHandler
- type DeleteSubscriptionHandlerFunc
- 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 DeleteSubscriptionUnauthorized
- 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 GetSubscriptionForbidden
- type GetSubscriptionHandler
- type GetSubscriptionHandlerFunc
- 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 GetSubscriptionUnauthorized
- 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 GetSubscriptionsForbidden
- type GetSubscriptionsHandler
- type GetSubscriptionsHandlerFunc
- 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 GetSubscriptionsUnauthorized
- 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 UpdateSubscriptionForbidden
- type UpdateSubscriptionHandler
- type UpdateSubscriptionHandlerFunc
- 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
- type UpdateSubscriptionUnauthorized
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 AddSubscriptionForbiddenCode int = 403
AddSubscriptionForbiddenCode is the HTTP code returned for type AddSubscriptionForbidden
AddSubscriptionUnauthorizedCode is the HTTP code returned for type AddSubscriptionUnauthorized
const DeleteSubscriptionBadRequestCode int = 400
DeleteSubscriptionBadRequestCode is the HTTP code returned for type DeleteSubscriptionBadRequest
const DeleteSubscriptionForbiddenCode int = 403
DeleteSubscriptionForbiddenCode is the HTTP code returned for type DeleteSubscriptionForbidden
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
DeleteSubscriptionUnauthorizedCode is the HTTP code returned for type DeleteSubscriptionUnauthorized
const GetSubscriptionBadRequestCode int = 400
GetSubscriptionBadRequestCode is the HTTP code returned for type GetSubscriptionBadRequest
const GetSubscriptionForbiddenCode int = 403
GetSubscriptionForbiddenCode is the HTTP code returned for type GetSubscriptionForbidden
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
GetSubscriptionUnauthorizedCode is the HTTP code returned for type GetSubscriptionUnauthorized
const GetSubscriptionsBadRequestCode int = 400
GetSubscriptionsBadRequestCode is the HTTP code returned for type GetSubscriptionsBadRequest
const GetSubscriptionsForbiddenCode int = 403
GetSubscriptionsForbiddenCode is the HTTP code returned for type GetSubscriptionsForbidden
const GetSubscriptionsOKCode int = 200
GetSubscriptionsOKCode is the HTTP code returned for type GetSubscriptionsOK
GetSubscriptionsUnauthorizedCode is the HTTP code returned for type GetSubscriptionsUnauthorized
const UpdateSubscriptionBadRequestCode int = 400
UpdateSubscriptionBadRequestCode is the HTTP code returned for type UpdateSubscriptionBadRequest
const UpdateSubscriptionForbiddenCode int = 403
UpdateSubscriptionForbiddenCode is the HTTP code returned for type UpdateSubscriptionForbidden
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
UpdateSubscriptionUnauthorizedCode is the HTTP code returned for type UpdateSubscriptionUnauthorized
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 AddSubscriptionForbidden ¶ added in v0.1.18
AddSubscriptionForbidden access to this resource is forbidden
swagger:response addSubscriptionForbidden
func NewAddSubscriptionForbidden ¶ added in v0.1.18
func NewAddSubscriptionForbidden() *AddSubscriptionForbidden
NewAddSubscriptionForbidden creates AddSubscriptionForbidden with default headers values
func (*AddSubscriptionForbidden) SetPayload ¶ added in v0.1.18
func (o *AddSubscriptionForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add subscription forbidden response
func (*AddSubscriptionForbidden) WithPayload ¶ added in v0.1.18
func (o *AddSubscriptionForbidden) WithPayload(payload *v1.Error) *AddSubscriptionForbidden
WithPayload adds the payload to the add subscription forbidden response
func (*AddSubscriptionForbidden) WriteResponse ¶ added in v0.1.18
func (o *AddSubscriptionForbidden) 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 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 DeleteSubscriptionForbidden ¶ added in v0.1.18
type DeleteSubscriptionForbidden struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
DeleteSubscriptionForbidden access to this resource is forbidden
swagger:response deleteSubscriptionForbidden
func NewDeleteSubscriptionForbidden ¶ added in v0.1.18
func NewDeleteSubscriptionForbidden() *DeleteSubscriptionForbidden
NewDeleteSubscriptionForbidden creates DeleteSubscriptionForbidden with default headers values
func (*DeleteSubscriptionForbidden) SetPayload ¶ added in v0.1.18
func (o *DeleteSubscriptionForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete subscription forbidden response
func (*DeleteSubscriptionForbidden) WithPayload ¶ added in v0.1.18
func (o *DeleteSubscriptionForbidden) WithPayload(payload *v1.Error) *DeleteSubscriptionForbidden
WithPayload adds the payload to the delete subscription forbidden response
func (*DeleteSubscriptionForbidden) WriteResponse ¶ added in v0.1.18
func (o *DeleteSubscriptionForbidden) 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 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 DeleteSubscriptionUnauthorized ¶ added in v0.1.18
DeleteSubscriptionUnauthorized Unauthorized Request
swagger:response deleteSubscriptionUnauthorized
func NewDeleteSubscriptionUnauthorized ¶ added in v0.1.18
func NewDeleteSubscriptionUnauthorized() *DeleteSubscriptionUnauthorized
NewDeleteSubscriptionUnauthorized creates DeleteSubscriptionUnauthorized with default headers values
func (*DeleteSubscriptionUnauthorized) SetPayload ¶ added in v0.1.18
func (o *DeleteSubscriptionUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete subscription unauthorized response
func (*DeleteSubscriptionUnauthorized) WithPayload ¶ added in v0.1.18
func (o *DeleteSubscriptionUnauthorized) WithPayload(payload *v1.Error) *DeleteSubscriptionUnauthorized
WithPayload adds the payload to the delete subscription unauthorized response
func (*DeleteSubscriptionUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *DeleteSubscriptionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 GetSubscriptionForbidden ¶ added in v0.1.18
GetSubscriptionForbidden access to this resource is forbidden
swagger:response getSubscriptionForbidden
func NewGetSubscriptionForbidden ¶ added in v0.1.18
func NewGetSubscriptionForbidden() *GetSubscriptionForbidden
NewGetSubscriptionForbidden creates GetSubscriptionForbidden with default headers values
func (*GetSubscriptionForbidden) SetPayload ¶ added in v0.1.18
func (o *GetSubscriptionForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get subscription forbidden response
func (*GetSubscriptionForbidden) WithPayload ¶ added in v0.1.18
func (o *GetSubscriptionForbidden) WithPayload(payload *v1.Error) *GetSubscriptionForbidden
WithPayload adds the payload to the get subscription forbidden response
func (*GetSubscriptionForbidden) WriteResponse ¶ added in v0.1.18
func (o *GetSubscriptionForbidden) 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 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 GetSubscriptionUnauthorized ¶ added in v0.1.18
GetSubscriptionUnauthorized Unauthorized Request
swagger:response getSubscriptionUnauthorized
func NewGetSubscriptionUnauthorized ¶ added in v0.1.18
func NewGetSubscriptionUnauthorized() *GetSubscriptionUnauthorized
NewGetSubscriptionUnauthorized creates GetSubscriptionUnauthorized with default headers values
func (*GetSubscriptionUnauthorized) SetPayload ¶ added in v0.1.18
func (o *GetSubscriptionUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get subscription unauthorized response
func (*GetSubscriptionUnauthorized) WithPayload ¶ added in v0.1.18
func (o *GetSubscriptionUnauthorized) WithPayload(payload *v1.Error) *GetSubscriptionUnauthorized
WithPayload adds the payload to the get subscription unauthorized response
func (*GetSubscriptionUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *GetSubscriptionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 GetSubscriptionsForbidden ¶ added in v0.1.18
GetSubscriptionsForbidden access to this resource is forbidden
swagger:response getSubscriptionsForbidden
func NewGetSubscriptionsForbidden ¶ added in v0.1.18
func NewGetSubscriptionsForbidden() *GetSubscriptionsForbidden
NewGetSubscriptionsForbidden creates GetSubscriptionsForbidden with default headers values
func (*GetSubscriptionsForbidden) SetPayload ¶ added in v0.1.18
func (o *GetSubscriptionsForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get subscriptions forbidden response
func (*GetSubscriptionsForbidden) WithPayload ¶ added in v0.1.18
func (o *GetSubscriptionsForbidden) WithPayload(payload *v1.Error) *GetSubscriptionsForbidden
WithPayload adds the payload to the get subscriptions forbidden response
func (*GetSubscriptionsForbidden) WriteResponse ¶ added in v0.1.18
func (o *GetSubscriptionsForbidden) 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 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 GetSubscriptionsUnauthorized ¶ added in v0.1.18
GetSubscriptionsUnauthorized Unauthorized Request
swagger:response getSubscriptionsUnauthorized
func NewGetSubscriptionsUnauthorized ¶ added in v0.1.18
func NewGetSubscriptionsUnauthorized() *GetSubscriptionsUnauthorized
NewGetSubscriptionsUnauthorized creates GetSubscriptionsUnauthorized with default headers values
func (*GetSubscriptionsUnauthorized) SetPayload ¶ added in v0.1.18
func (o *GetSubscriptionsUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get subscriptions unauthorized response
func (*GetSubscriptionsUnauthorized) WithPayload ¶ added in v0.1.18
func (o *GetSubscriptionsUnauthorized) WithPayload(payload *v1.Error) *GetSubscriptionsUnauthorized
WithPayload adds the payload to the get subscriptions unauthorized response
func (*GetSubscriptionsUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *GetSubscriptionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 UpdateSubscriptionForbidden ¶ added in v0.1.18
type UpdateSubscriptionForbidden struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` }
UpdateSubscriptionForbidden access to this resource is forbidden
swagger:response updateSubscriptionForbidden
func NewUpdateSubscriptionForbidden ¶ added in v0.1.18
func NewUpdateSubscriptionForbidden() *UpdateSubscriptionForbidden
NewUpdateSubscriptionForbidden creates UpdateSubscriptionForbidden with default headers values
func (*UpdateSubscriptionForbidden) SetPayload ¶ added in v0.1.18
func (o *UpdateSubscriptionForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription forbidden response
func (*UpdateSubscriptionForbidden) WithPayload ¶ added in v0.1.18
func (o *UpdateSubscriptionForbidden) WithPayload(payload *v1.Error) *UpdateSubscriptionForbidden
WithPayload adds the payload to the update subscription forbidden response
func (*UpdateSubscriptionForbidden) WriteResponse ¶ added in v0.1.18
func (o *UpdateSubscriptionForbidden) 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 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
type UpdateSubscriptionUnauthorized ¶ added in v0.1.18
UpdateSubscriptionUnauthorized Unauthorized Request
swagger:response updateSubscriptionUnauthorized
func NewUpdateSubscriptionUnauthorized ¶ added in v0.1.18
func NewUpdateSubscriptionUnauthorized() *UpdateSubscriptionUnauthorized
NewUpdateSubscriptionUnauthorized creates UpdateSubscriptionUnauthorized with default headers values
func (*UpdateSubscriptionUnauthorized) SetPayload ¶ added in v0.1.18
func (o *UpdateSubscriptionUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update subscription unauthorized response
func (*UpdateSubscriptionUnauthorized) WithPayload ¶ added in v0.1.18
func (o *UpdateSubscriptionUnauthorized) WithPayload(payload *v1.Error) *UpdateSubscriptionUnauthorized
WithPayload adds the payload to the update subscription unauthorized response
func (*UpdateSubscriptionUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *UpdateSubscriptionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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