attachments

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AttachCreatedCode int = 201

AttachCreatedCode is the HTTP code returned for type AttachCreated

View Source
const DeleteAttachOKCode int = 200

DeleteAttachOKCode is the HTTP code returned for type DeleteAttachOK

View Source
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

func (*Attach) ServeHTTP

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

type AttachCreated

type AttachCreated struct {

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

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

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) Build

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

Build a url path and query string

func (*AttachURL) BuildFull

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

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

func (*AttachURL) Must

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

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

func (*AttachURL) SetBasePath

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

func (o *AttachURL) String() string

String returns the string representation of the path with query string

func (*AttachURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AttachURL) WithBasePath

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

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

Handle executing the request and returning a response

type DeleteAttachOK

type DeleteAttachOK struct {

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

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

type DeleteAttachURL struct {
	Force *bool
	ID    int64
	// contains filtered or unexported fields
}

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

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

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

Handle executing the request and returning a response

type ListAttachmentsOK

type ListAttachmentsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Attach `json:"body,omitempty"`
}

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

type ListAttachmentsURL struct {
	ID   *int64
	Kind *string
	// contains filtered or unexported fields
}

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

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

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

Jump to

Keyboard shortcuts

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