Documentation ¶
Index ¶
- Constants
- type Attach
- type AttachCreated
- type AttachDefault
- func (o *AttachDefault) SetPayload(payload *models.Error)
- func (o *AttachDefault) SetStatusCode(code int)
- func (o *AttachDefault) WithPayload(payload *models.Error) *AttachDefault
- func (o *AttachDefault) WithStatusCode(code int) *AttachDefault
- func (o *AttachDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AttachHandler
- type AttachHandlerFunc
- type AttachParams
- type AttachURL
- func (o *AttachURL) Build() (*url.URL, error)
- func (o *AttachURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AttachURL) Must(u *url.URL, err error) *url.URL
- func (o *AttachURL) SetBasePath(bp string)
- func (o *AttachURL) String() string
- func (o *AttachURL) StringFull(scheme, host string) string
- func (o *AttachURL) WithBasePath(bp string) *AttachURL
- type DeleteAttach
- type DeleteAttachDefault
- func (o *DeleteAttachDefault) SetPayload(payload *models.Error)
- func (o *DeleteAttachDefault) SetStatusCode(code int)
- func (o *DeleteAttachDefault) WithPayload(payload *models.Error) *DeleteAttachDefault
- func (o *DeleteAttachDefault) WithStatusCode(code int) *DeleteAttachDefault
- func (o *DeleteAttachDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteAttachHandler
- type DeleteAttachHandlerFunc
- type DeleteAttachOK
- type DeleteAttachParams
- type DeleteAttachURL
- func (o *DeleteAttachURL) Build() (*url.URL, error)
- func (o *DeleteAttachURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAttachURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAttachURL) SetBasePath(bp string)
- func (o *DeleteAttachURL) String() string
- func (o *DeleteAttachURL) StringFull(scheme, host string) string
- func (o *DeleteAttachURL) WithBasePath(bp string) *DeleteAttachURL
- type ListAttachments
- type ListAttachmentsDefault
- func (o *ListAttachmentsDefault) SetPayload(payload *models.Error)
- func (o *ListAttachmentsDefault) SetStatusCode(code int)
- func (o *ListAttachmentsDefault) WithPayload(payload *models.Error) *ListAttachmentsDefault
- func (o *ListAttachmentsDefault) WithStatusCode(code int) *ListAttachmentsDefault
- func (o *ListAttachmentsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListAttachmentsHandler
- type ListAttachmentsHandlerFunc
- type ListAttachmentsOK
- type ListAttachmentsParams
- type ListAttachmentsURL
- func (o *ListAttachmentsURL) Build() (*url.URL, error)
- func (o *ListAttachmentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListAttachmentsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListAttachmentsURL) SetBasePath(bp string)
- func (o *ListAttachmentsURL) String() string
- func (o *ListAttachmentsURL) StringFull(scheme, host string) string
- func (o *ListAttachmentsURL) WithBasePath(bp string) *ListAttachmentsURL
Constants ¶
const AttachCreatedCode int = 201
AttachCreatedCode is the HTTP code returned for type AttachCreated
const DeleteAttachOKCode int = 200
DeleteAttachOKCode is the HTTP code returned for type DeleteAttachOK
const ListAttachmentsOKCode int = 200
ListAttachmentsOKCode is the HTTP code returned for type ListAttachmentsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attach ¶
type Attach struct { Context *middleware.Context Handler AttachHandler }
Attach swagger:route POST /attach attachments attach
Create a new attachment based on attach specification
func NewAttach ¶
func NewAttach(ctx *middleware.Context, handler AttachHandler) *Attach
NewAttach creates a new http.Handler for the attach operation
type AttachCreated ¶
AttachCreated attach succeed
swagger:response attachCreated
func NewAttachCreated ¶
func NewAttachCreated() *AttachCreated
NewAttachCreated creates AttachCreated with default headers values
func (*AttachCreated) SetPayload ¶
func (o *AttachCreated) SetPayload(payload *models.Attach)
SetPayload sets the payload to the attach created response
func (*AttachCreated) WithPayload ¶
func (o *AttachCreated) WithPayload(payload *models.Attach) *AttachCreated
WithPayload adds the payload to the attach created response
func (*AttachCreated) WriteResponse ¶
func (o *AttachCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AttachDefault ¶
type AttachDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AttachDefault error
swagger:response attachDefault
func NewAttachDefault ¶
func NewAttachDefault(code int) *AttachDefault
NewAttachDefault creates AttachDefault with default headers values
func (*AttachDefault) SetPayload ¶
func (o *AttachDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the attach default response
func (*AttachDefault) SetStatusCode ¶
func (o *AttachDefault) SetStatusCode(code int)
SetStatusCode sets the status to the attach default response
func (*AttachDefault) WithPayload ¶
func (o *AttachDefault) WithPayload(payload *models.Error) *AttachDefault
WithPayload adds the payload to the attach default response
func (*AttachDefault) WithStatusCode ¶
func (o *AttachDefault) WithStatusCode(code int) *AttachDefault
WithStatusCode adds the status to the attach default response
func (*AttachDefault) WriteResponse ¶
func (o *AttachDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AttachHandler ¶
type AttachHandler interface {
Handle(AttachParams) middleware.Responder
}
AttachHandler interface for that can handle valid attach params
type AttachHandlerFunc ¶
type AttachHandlerFunc func(AttachParams) middleware.Responder
AttachHandlerFunc turns a function with the right signature into a attach handler
func (AttachHandlerFunc) Handle ¶
func (fn AttachHandlerFunc) Handle(params AttachParams) middleware.Responder
Handle executing the request and returning a response
type AttachParams ¶
type AttachParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Attach *models.Attach }
AttachParams contains all the bound params for the attach operation typically these are obtained from a http.Request
swagger:parameters attach
func NewAttachParams ¶
func NewAttachParams() AttachParams
NewAttachParams creates a new AttachParams object
There are no default values defined in the spec.
func (*AttachParams) BindRequest ¶
func (o *AttachParams) 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 NewAttachParams() beforehand.
type AttachURL ¶
type AttachURL struct {
// contains filtered or unexported fields
}
AttachURL generates an URL for the attach operation
func (*AttachURL) SetBasePath ¶
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 (*AttachURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*AttachURL) WithBasePath ¶
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 DeleteAttach ¶
type DeleteAttach struct { Context *middleware.Context Handler DeleteAttachHandler }
DeleteAttach swagger:route DELETE /attach attachments deleteAttach
Detach a specified attachment.
func NewDeleteAttach ¶
func NewDeleteAttach(ctx *middleware.Context, handler DeleteAttachHandler) *DeleteAttach
NewDeleteAttach creates a new http.Handler for the delete attach operation
func (*DeleteAttach) ServeHTTP ¶
func (o *DeleteAttach) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteAttachDefault ¶
type DeleteAttachDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteAttachDefault Detach failed
swagger:response deleteAttachDefault
func NewDeleteAttachDefault ¶
func NewDeleteAttachDefault(code int) *DeleteAttachDefault
NewDeleteAttachDefault creates DeleteAttachDefault with default headers values
func (*DeleteAttachDefault) SetPayload ¶
func (o *DeleteAttachDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete attach default response
func (*DeleteAttachDefault) SetStatusCode ¶
func (o *DeleteAttachDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete attach default response
func (*DeleteAttachDefault) WithPayload ¶
func (o *DeleteAttachDefault) WithPayload(payload *models.Error) *DeleteAttachDefault
WithPayload adds the payload to the delete attach default response
func (*DeleteAttachDefault) WithStatusCode ¶
func (o *DeleteAttachDefault) WithStatusCode(code int) *DeleteAttachDefault
WithStatusCode adds the status to the delete attach default response
func (*DeleteAttachDefault) WriteResponse ¶
func (o *DeleteAttachDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAttachHandler ¶
type DeleteAttachHandler interface {
Handle(DeleteAttachParams) middleware.Responder
}
DeleteAttachHandler interface for that can handle valid delete attach params
type DeleteAttachHandlerFunc ¶
type DeleteAttachHandlerFunc func(DeleteAttachParams) middleware.Responder
DeleteAttachHandlerFunc turns a function with the right signature into a delete attach handler
func (DeleteAttachHandlerFunc) Handle ¶
func (fn DeleteAttachHandlerFunc) Handle(params DeleteAttachParams) middleware.Responder
Handle executing the request and returning a response
type DeleteAttachOK ¶
DeleteAttachOK Detach succeed
swagger:response deleteAttachOK
func NewDeleteAttachOK ¶
func NewDeleteAttachOK() *DeleteAttachOK
NewDeleteAttachOK creates DeleteAttachOK with default headers values
func (*DeleteAttachOK) SetPayload ¶
func (o *DeleteAttachOK) SetPayload(payload *models.Attach)
SetPayload sets the payload to the delete attach o k response
func (*DeleteAttachOK) WithPayload ¶
func (o *DeleteAttachOK) WithPayload(payload *models.Attach) *DeleteAttachOK
WithPayload adds the payload to the delete attach o k response
func (*DeleteAttachOK) WriteResponse ¶
func (o *DeleteAttachOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAttachParams ¶
type DeleteAttachParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Force deletion In: query Default: false */ Force *bool /* Required: true In: query */ ID int64 }
DeleteAttachParams contains all the bound params for the delete attach operation typically these are obtained from a http.Request
swagger:parameters DeleteAttach
func NewDeleteAttachParams ¶
func NewDeleteAttachParams() DeleteAttachParams
NewDeleteAttachParams creates a new DeleteAttachParams object with the default values initialized.
func (*DeleteAttachParams) BindRequest ¶
func (o *DeleteAttachParams) 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 NewDeleteAttachParams() beforehand.
type DeleteAttachURL ¶
DeleteAttachURL generates an URL for the delete attach operation
func (*DeleteAttachURL) Build ¶
func (o *DeleteAttachURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAttachURL) BuildFull ¶
func (o *DeleteAttachURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAttachURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteAttachURL) SetBasePath ¶
func (o *DeleteAttachURL) 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 (*DeleteAttachURL) String ¶
func (o *DeleteAttachURL) String() string
String returns the string representation of the path with query string
func (*DeleteAttachURL) StringFull ¶
func (o *DeleteAttachURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAttachURL) WithBasePath ¶
func (o *DeleteAttachURL) WithBasePath(bp string) *DeleteAttachURL
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 ListAttachments ¶
type ListAttachments struct { Context *middleware.Context Handler ListAttachmentsHandler }
ListAttachments swagger:route GET /attach attachments listAttachments
List attachments
func NewListAttachments ¶
func NewListAttachments(ctx *middleware.Context, handler ListAttachmentsHandler) *ListAttachments
NewListAttachments creates a new http.Handler for the list attachments operation
func (*ListAttachments) ServeHTTP ¶
func (o *ListAttachments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListAttachmentsDefault ¶
type ListAttachmentsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListAttachmentsDefault error
swagger:response listAttachmentsDefault
func NewListAttachmentsDefault ¶
func NewListAttachmentsDefault(code int) *ListAttachmentsDefault
NewListAttachmentsDefault creates ListAttachmentsDefault with default headers values
func (*ListAttachmentsDefault) SetPayload ¶
func (o *ListAttachmentsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list attachments default response
func (*ListAttachmentsDefault) SetStatusCode ¶
func (o *ListAttachmentsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list attachments default response
func (*ListAttachmentsDefault) WithPayload ¶
func (o *ListAttachmentsDefault) WithPayload(payload *models.Error) *ListAttachmentsDefault
WithPayload adds the payload to the list attachments default response
func (*ListAttachmentsDefault) WithStatusCode ¶
func (o *ListAttachmentsDefault) WithStatusCode(code int) *ListAttachmentsDefault
WithStatusCode adds the status to the list attachments default response
func (*ListAttachmentsDefault) WriteResponse ¶
func (o *ListAttachmentsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListAttachmentsHandler ¶
type ListAttachmentsHandler interface {
Handle(ListAttachmentsParams) middleware.Responder
}
ListAttachmentsHandler interface for that can handle valid list attachments params
type ListAttachmentsHandlerFunc ¶
type ListAttachmentsHandlerFunc func(ListAttachmentsParams) middleware.Responder
ListAttachmentsHandlerFunc turns a function with the right signature into a list attachments handler
func (ListAttachmentsHandlerFunc) Handle ¶
func (fn ListAttachmentsHandlerFunc) Handle(params ListAttachmentsParams) middleware.Responder
Handle executing the request and returning a response
type ListAttachmentsOK ¶
ListAttachmentsOK list all attachments
swagger:response listAttachmentsOK
func NewListAttachmentsOK ¶
func NewListAttachmentsOK() *ListAttachmentsOK
NewListAttachmentsOK creates ListAttachmentsOK with default headers values
func (*ListAttachmentsOK) SetPayload ¶
func (o *ListAttachmentsOK) SetPayload(payload []*models.Attach)
SetPayload sets the payload to the list attachments o k response
func (*ListAttachmentsOK) WithPayload ¶
func (o *ListAttachmentsOK) WithPayload(payload []*models.Attach) *ListAttachmentsOK
WithPayload adds the payload to the list attachments o k response
func (*ListAttachmentsOK) WriteResponse ¶
func (o *ListAttachmentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListAttachmentsParams ¶
type ListAttachmentsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of a single attachment to query. In: query */ ID *int64 /*Kind of attachments to query. In: query */ Kind *string }
ListAttachmentsParams contains all the bound params for the list attachments operation typically these are obtained from a http.Request
swagger:parameters list_attachments
func NewListAttachmentsParams ¶
func NewListAttachmentsParams() ListAttachmentsParams
NewListAttachmentsParams creates a new ListAttachmentsParams object
There are no default values defined in the spec.
func (*ListAttachmentsParams) BindRequest ¶
func (o *ListAttachmentsParams) 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 NewListAttachmentsParams() beforehand.
type ListAttachmentsURL ¶
ListAttachmentsURL generates an URL for the list attachments operation
func (*ListAttachmentsURL) Build ¶
func (o *ListAttachmentsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListAttachmentsURL) BuildFull ¶
func (o *ListAttachmentsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListAttachmentsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListAttachmentsURL) SetBasePath ¶
func (o *ListAttachmentsURL) 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 (*ListAttachmentsURL) String ¶
func (o *ListAttachmentsURL) String() string
String returns the string representation of the path with query string
func (*ListAttachmentsURL) StringFull ¶
func (o *ListAttachmentsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListAttachmentsURL) WithBasePath ¶
func (o *ListAttachmentsURL) WithBasePath(bp string) *ListAttachmentsURL
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