file

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package file contains auto generated operations for Pixeldrain file API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for file API

func (*Client) DeleteFile added in v0.2.1

func (a *Client) DeleteFile(params *DeleteFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFileOK, error)

DeleteFile deletes a file

Deletes a file. Only works when the users owns the file.

func (*Client) DownloadFile added in v0.2.1

func (a *Client) DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadFileOK, error)
DownloadFile downloads a file

Returns the full file associated with the ID. Supports byte range requests.

Warning: If a file is using too much bandwidth it can be rate limited. The rate limit will be enabled if a file has three times more downloads than views. The owner of a file can always download it. When a file is rate limited the user will need to fill out a captcha in order to continue downloading the file. The captcha will only appear on the file viewer page (pixeldrain.com/u/{id}). Rate limiting has been added to prevent the spread of viruses and to stop hotlinking. Hotlinking is only allowed when files are uploaded using a Pro account. Pixeldrain also includes a virus scanner. If a virus has been detected in a file the user will also have to fill in a captcha to download it.

func (*Client) GetFileInfo added in v0.2.1

func (a *Client) GetFileInfo(params *GetFileInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileInfoOK, error)

GetFileInfo retrieves information of a file

Returns information about one or more files. You can also put a comma separated list of file IDs in the URL and it will return an array of file info, instead of a single object.

func (*Client) GetFileThumbnail added in v0.6.0

func (a *Client) GetFileThumbnail(params *GetFileThumbnailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileThumbnailOK, error)

GetFileThumbnail gets a thumbnail image representing the file

Returns a PNG thumbnail image representing the file. The thumbnail is always 100*100 px. If the source file is parsable by imagemagick the thumbnail will be generated from the file, if not it will be a generic mime type icon.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UploadFile added in v0.2.1

func (a *Client) UploadFile(params *UploadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFileCreated, error)

UploadFile uploads a file

Upload a file. I recommend that you use the PUT API instead of the POST API. It’s easier to use and the multipart encoding of the POST API can cause performance issues in certain environments.

type ClientOption added in v0.5.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.5.0

type ClientService interface {
	DeleteFile(params *DeleteFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFileOK, error)

	DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadFileOK, error)

	GetFileInfo(params *GetFileInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileInfoOK, error)

	GetFileThumbnail(params *GetFileThumbnailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileThumbnailOK, error)

	UploadFile(params *UploadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFileCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new file API client.

type DeleteFileDefault added in v0.3.1

type DeleteFileDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}

DeleteFileDefault describes a response with status code -1, with default header values.

Error Response

func NewDeleteFileDefault added in v0.3.1

func NewDeleteFileDefault(code int) *DeleteFileDefault

NewDeleteFileDefault creates a DeleteFileDefault with default headers values

func (*DeleteFileDefault) Code added in v0.3.1

func (o *DeleteFileDefault) Code() int

Code gets the status code for the delete file default response

func (*DeleteFileDefault) Error added in v0.3.1

func (o *DeleteFileDefault) Error() string

func (*DeleteFileDefault) GetPayload added in v0.5.0

func (o *DeleteFileDefault) GetPayload() *models.StandardError

func (*DeleteFileDefault) IsClientError added in v0.6.0

func (o *DeleteFileDefault) IsClientError() bool

IsClientError returns true when this delete file default response has a 4xx status code

func (*DeleteFileDefault) IsCode added in v0.6.0

func (o *DeleteFileDefault) IsCode(code int) bool

IsCode returns true when this delete file default response a status code equal to that given

func (*DeleteFileDefault) IsRedirect added in v0.6.0

func (o *DeleteFileDefault) IsRedirect() bool

IsRedirect returns true when this delete file default response has a 3xx status code

func (*DeleteFileDefault) IsServerError added in v0.6.0

func (o *DeleteFileDefault) IsServerError() bool

IsServerError returns true when this delete file default response has a 5xx status code

func (*DeleteFileDefault) IsSuccess added in v0.6.0

func (o *DeleteFileDefault) IsSuccess() bool

IsSuccess returns true when this delete file default response has a 2xx status code

func (*DeleteFileDefault) String added in v0.6.0

func (o *DeleteFileDefault) String() string

type DeleteFileOK added in v0.2.1

type DeleteFileOK struct {
	Payload *DeleteFileOKBody
}

DeleteFileOK describes a response with status code 200, with default header values.

OK

func NewDeleteFileOK added in v0.2.1

func NewDeleteFileOK() *DeleteFileOK

NewDeleteFileOK creates a DeleteFileOK with default headers values

func (*DeleteFileOK) Code added in v0.6.0

func (o *DeleteFileOK) Code() int

Code gets the status code for the delete file o k response

func (*DeleteFileOK) Error added in v0.2.1

func (o *DeleteFileOK) Error() string

func (*DeleteFileOK) GetPayload added in v0.5.0

func (o *DeleteFileOK) GetPayload() *DeleteFileOKBody

func (*DeleteFileOK) IsClientError added in v0.6.0

func (o *DeleteFileOK) IsClientError() bool

IsClientError returns true when this delete file o k response has a 4xx status code

func (*DeleteFileOK) IsCode added in v0.6.0

func (o *DeleteFileOK) IsCode(code int) bool

IsCode returns true when this delete file o k response a status code equal to that given

func (*DeleteFileOK) IsRedirect added in v0.6.0

func (o *DeleteFileOK) IsRedirect() bool

IsRedirect returns true when this delete file o k response has a 3xx status code

func (*DeleteFileOK) IsServerError added in v0.6.0

func (o *DeleteFileOK) IsServerError() bool

IsServerError returns true when this delete file o k response has a 5xx status code

func (*DeleteFileOK) IsSuccess added in v0.6.0

func (o *DeleteFileOK) IsSuccess() bool

IsSuccess returns true when this delete file o k response has a 2xx status code

func (*DeleteFileOK) String added in v0.6.0

func (o *DeleteFileOK) String() string

type DeleteFileOKBody added in v0.2.1

type DeleteFileOKBody struct {

	// message
	// Example: The file has been deleted.
	Message string `json:"message,omitempty"`

	// success
	// Example: true
	Success bool `json:"success,omitempty"`

	// value
	// Example: file_deleted
	Value string `json:"value,omitempty"`
}

DeleteFileOKBody delete file o k body swagger:model DeleteFileOKBody

func (*DeleteFileOKBody) ContextValidate added in v0.5.0

func (o *DeleteFileOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete file o k body based on context it is used

func (*DeleteFileOKBody) MarshalBinary added in v0.2.1

func (o *DeleteFileOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteFileOKBody) UnmarshalBinary added in v0.2.1

func (o *DeleteFileOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteFileOKBody) Validate added in v0.2.1

func (o *DeleteFileOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete file o k body

type DeleteFileParams added in v0.2.1

type DeleteFileParams struct {

	/* ID.

	   ID of the file to request
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteFileParams contains all the parameters to send to the API endpoint

for the delete file operation.

Typically these are written to a http.Request.

func NewDeleteFileParams added in v0.2.1

func NewDeleteFileParams() *DeleteFileParams

NewDeleteFileParams creates a new DeleteFileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteFileParamsWithContext added in v0.2.1

func NewDeleteFileParamsWithContext(ctx context.Context) *DeleteFileParams

NewDeleteFileParamsWithContext creates a new DeleteFileParams object with the ability to set a context for a request.

func NewDeleteFileParamsWithHTTPClient added in v0.2.1

func NewDeleteFileParamsWithHTTPClient(client *http.Client) *DeleteFileParams

NewDeleteFileParamsWithHTTPClient creates a new DeleteFileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteFileParamsWithTimeout added in v0.2.1

func NewDeleteFileParamsWithTimeout(timeout time.Duration) *DeleteFileParams

NewDeleteFileParamsWithTimeout creates a new DeleteFileParams object with the ability to set a timeout on a request.

func (*DeleteFileParams) SetContext added in v0.2.1

func (o *DeleteFileParams) SetContext(ctx context.Context)

SetContext adds the context to the delete file params

func (*DeleteFileParams) SetDefaults added in v0.5.0

func (o *DeleteFileParams) SetDefaults()

SetDefaults hydrates default values in the delete file params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteFileParams) SetHTTPClient added in v0.2.1

func (o *DeleteFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete file params

func (*DeleteFileParams) SetID added in v0.2.1

func (o *DeleteFileParams) SetID(id string)

SetID adds the id to the delete file params

func (*DeleteFileParams) SetTimeout added in v0.2.1

func (o *DeleteFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete file params

func (*DeleteFileParams) WithContext added in v0.2.1

func (o *DeleteFileParams) WithContext(ctx context.Context) *DeleteFileParams

WithContext adds the context to the delete file params

func (*DeleteFileParams) WithDefaults added in v0.5.0

func (o *DeleteFileParams) WithDefaults() *DeleteFileParams

WithDefaults hydrates default values in the delete file params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteFileParams) WithHTTPClient added in v0.2.1

func (o *DeleteFileParams) WithHTTPClient(client *http.Client) *DeleteFileParams

WithHTTPClient adds the HTTPClient to the delete file params

func (*DeleteFileParams) WithID added in v0.2.1

func (o *DeleteFileParams) WithID(id string) *DeleteFileParams

WithID adds the id to the delete file params

func (*DeleteFileParams) WithTimeout added in v0.2.1

func (o *DeleteFileParams) WithTimeout(timeout time.Duration) *DeleteFileParams

WithTimeout adds the timeout to the delete file params

func (*DeleteFileParams) WriteToRequest added in v0.2.1

func (o *DeleteFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteFileReader added in v0.2.1

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

DeleteFileReader is a Reader for the DeleteFile structure.

func (*DeleteFileReader) ReadResponse added in v0.2.1

func (o *DeleteFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DownloadFileDefault added in v0.2.1

type DownloadFileDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}

DownloadFileDefault describes a response with status code -1, with default header values.

Error Response

func NewDownloadFileDefault added in v0.2.1

func NewDownloadFileDefault(code int) *DownloadFileDefault

NewDownloadFileDefault creates a DownloadFileDefault with default headers values

func (*DownloadFileDefault) Code added in v0.2.1

func (o *DownloadFileDefault) Code() int

Code gets the status code for the download file default response

func (*DownloadFileDefault) Error added in v0.2.1

func (o *DownloadFileDefault) Error() string

func (*DownloadFileDefault) GetPayload added in v0.5.0

func (o *DownloadFileDefault) GetPayload() *models.StandardError

func (*DownloadFileDefault) IsClientError added in v0.6.0

func (o *DownloadFileDefault) IsClientError() bool

IsClientError returns true when this download file default response has a 4xx status code

func (*DownloadFileDefault) IsCode added in v0.6.0

func (o *DownloadFileDefault) IsCode(code int) bool

IsCode returns true when this download file default response a status code equal to that given

func (*DownloadFileDefault) IsRedirect added in v0.6.0

func (o *DownloadFileDefault) IsRedirect() bool

IsRedirect returns true when this download file default response has a 3xx status code

func (*DownloadFileDefault) IsServerError added in v0.6.0

func (o *DownloadFileDefault) IsServerError() bool

IsServerError returns true when this download file default response has a 5xx status code

func (*DownloadFileDefault) IsSuccess added in v0.6.0

func (o *DownloadFileDefault) IsSuccess() bool

IsSuccess returns true when this download file default response has a 2xx status code

func (*DownloadFileDefault) String added in v0.6.0

func (o *DownloadFileDefault) String() string

type DownloadFileOK added in v0.2.1

type DownloadFileOK struct {
	Payload io.Writer
}

DownloadFileOK describes a response with status code 200, with default header values.

A file output stream.

func NewDownloadFileOK added in v0.2.1

func NewDownloadFileOK(writer io.Writer) *DownloadFileOK

NewDownloadFileOK creates a DownloadFileOK with default headers values

func (*DownloadFileOK) Code added in v0.6.0

func (o *DownloadFileOK) Code() int

Code gets the status code for the download file o k response

func (*DownloadFileOK) Error added in v0.2.1

func (o *DownloadFileOK) Error() string

func (*DownloadFileOK) GetPayload added in v0.5.0

func (o *DownloadFileOK) GetPayload() io.Writer

func (*DownloadFileOK) IsClientError added in v0.6.0

func (o *DownloadFileOK) IsClientError() bool

IsClientError returns true when this download file o k response has a 4xx status code

func (*DownloadFileOK) IsCode added in v0.6.0

func (o *DownloadFileOK) IsCode(code int) bool

IsCode returns true when this download file o k response a status code equal to that given

func (*DownloadFileOK) IsRedirect added in v0.6.0

func (o *DownloadFileOK) IsRedirect() bool

IsRedirect returns true when this download file o k response has a 3xx status code

func (*DownloadFileOK) IsServerError added in v0.6.0

func (o *DownloadFileOK) IsServerError() bool

IsServerError returns true when this download file o k response has a 5xx status code

func (*DownloadFileOK) IsSuccess added in v0.6.0

func (o *DownloadFileOK) IsSuccess() bool

IsSuccess returns true when this download file o k response has a 2xx status code

func (*DownloadFileOK) String added in v0.6.0

func (o *DownloadFileOK) String() string

type DownloadFileParams added in v0.2.1

type DownloadFileParams struct {

	/* ID.

	   ID of the file to request
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DownloadFileParams contains all the parameters to send to the API endpoint

for the download file operation.

Typically these are written to a http.Request.

func NewDownloadFileParams added in v0.2.1

func NewDownloadFileParams() *DownloadFileParams

NewDownloadFileParams creates a new DownloadFileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDownloadFileParamsWithContext added in v0.2.1

func NewDownloadFileParamsWithContext(ctx context.Context) *DownloadFileParams

NewDownloadFileParamsWithContext creates a new DownloadFileParams object with the ability to set a context for a request.

func NewDownloadFileParamsWithHTTPClient added in v0.2.1

func NewDownloadFileParamsWithHTTPClient(client *http.Client) *DownloadFileParams

NewDownloadFileParamsWithHTTPClient creates a new DownloadFileParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadFileParamsWithTimeout added in v0.2.1

func NewDownloadFileParamsWithTimeout(timeout time.Duration) *DownloadFileParams

NewDownloadFileParamsWithTimeout creates a new DownloadFileParams object with the ability to set a timeout on a request.

func (*DownloadFileParams) SetContext added in v0.2.1

func (o *DownloadFileParams) SetContext(ctx context.Context)

SetContext adds the context to the download file params

func (*DownloadFileParams) SetDefaults added in v0.5.0

func (o *DownloadFileParams) SetDefaults()

SetDefaults hydrates default values in the download file params (not the query body).

All values with no default are reset to their zero value.

func (*DownloadFileParams) SetHTTPClient added in v0.2.1

func (o *DownloadFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) SetID added in v0.2.1

func (o *DownloadFileParams) SetID(id string)

SetID adds the id to the download file params

func (*DownloadFileParams) SetTimeout added in v0.2.1

func (o *DownloadFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the download file params

func (*DownloadFileParams) WithContext added in v0.2.1

WithContext adds the context to the download file params

func (*DownloadFileParams) WithDefaults added in v0.5.0

func (o *DownloadFileParams) WithDefaults() *DownloadFileParams

WithDefaults hydrates default values in the download file params (not the query body).

All values with no default are reset to their zero value.

func (*DownloadFileParams) WithHTTPClient added in v0.2.1

func (o *DownloadFileParams) WithHTTPClient(client *http.Client) *DownloadFileParams

WithHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) WithID added in v0.2.1

WithID adds the id to the download file params

func (*DownloadFileParams) WithTimeout added in v0.2.1

func (o *DownloadFileParams) WithTimeout(timeout time.Duration) *DownloadFileParams

WithTimeout adds the timeout to the download file params

func (*DownloadFileParams) WriteToRequest added in v0.2.1

func (o *DownloadFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DownloadFileReader added in v0.2.1

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

DownloadFileReader is a Reader for the DownloadFile structure.

func (*DownloadFileReader) ReadResponse added in v0.2.1

func (o *DownloadFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetFileIDThumbnailDefault

type GetFileIDThumbnailDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}
GetFileIDThumbnailDefault describes a response with status code -1, with default header values.

Error Response

func NewGetFileIDThumbnailDefault

func NewGetFileIDThumbnailDefault(code int) *GetFileIDThumbnailDefault

NewGetFileIDThumbnailDefault creates a GetFileIDThumbnailDefault with default headers values

func (*GetFileIDThumbnailDefault) Code

func (o *GetFileIDThumbnailDefault) Code() int

Code gets the status code for the get file ID thumbnail default response

func (*GetFileIDThumbnailDefault) Error

func (o *GetFileIDThumbnailDefault) Error() string

func (*GetFileIDThumbnailDefault) GetPayload added in v0.5.0

type GetFileIDThumbnailOK

type GetFileIDThumbnailOK struct {
}
GetFileIDThumbnailOK describes a response with status code 200, with default header values.

A PNG image of 100*100 px.

func NewGetFileIDThumbnailOK

func NewGetFileIDThumbnailOK() *GetFileIDThumbnailOK

NewGetFileIDThumbnailOK creates a GetFileIDThumbnailOK with default headers values

func (*GetFileIDThumbnailOK) Error

func (o *GetFileIDThumbnailOK) Error() string

type GetFileIDThumbnailParams

type GetFileIDThumbnailParams struct {

	/* ID.

	   ID of the file to get a thumbnail for
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFileIDThumbnailParams contains all the parameters to send to the API endpoint

for the get file ID thumbnail operation.

Typically these are written to a http.Request.

func NewGetFileIDThumbnailParams

func NewGetFileIDThumbnailParams() *GetFileIDThumbnailParams

NewGetFileIDThumbnailParams creates a new GetFileIDThumbnailParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetFileIDThumbnailParamsWithContext

func NewGetFileIDThumbnailParamsWithContext(ctx context.Context) *GetFileIDThumbnailParams

NewGetFileIDThumbnailParamsWithContext creates a new GetFileIDThumbnailParams object with the ability to set a context for a request.

func NewGetFileIDThumbnailParamsWithHTTPClient

func NewGetFileIDThumbnailParamsWithHTTPClient(client *http.Client) *GetFileIDThumbnailParams

NewGetFileIDThumbnailParamsWithHTTPClient creates a new GetFileIDThumbnailParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileIDThumbnailParamsWithTimeout

func NewGetFileIDThumbnailParamsWithTimeout(timeout time.Duration) *GetFileIDThumbnailParams

NewGetFileIDThumbnailParamsWithTimeout creates a new GetFileIDThumbnailParams object with the ability to set a timeout on a request.

func (*GetFileIDThumbnailParams) SetContext

func (o *GetFileIDThumbnailParams) SetContext(ctx context.Context)

SetContext adds the context to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) SetDefaults added in v0.5.0

func (o *GetFileIDThumbnailParams) SetDefaults()

SetDefaults hydrates default values in the get file ID thumbnail params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileIDThumbnailParams) SetHTTPClient

func (o *GetFileIDThumbnailParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) SetID

func (o *GetFileIDThumbnailParams) SetID(id string)

SetID adds the id to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) SetTimeout

func (o *GetFileIDThumbnailParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) WithContext

WithContext adds the context to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) WithDefaults added in v0.5.0

WithDefaults hydrates default values in the get file ID thumbnail params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileIDThumbnailParams) WithHTTPClient

func (o *GetFileIDThumbnailParams) WithHTTPClient(client *http.Client) *GetFileIDThumbnailParams

WithHTTPClient adds the HTTPClient to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) WithID

WithID adds the id to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) WithTimeout

WithTimeout adds the timeout to the get file ID thumbnail params

func (*GetFileIDThumbnailParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFileIDThumbnailReader

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

GetFileIDThumbnailReader is a Reader for the GetFileIDThumbnail structure.

func (*GetFileIDThumbnailReader) ReadResponse

func (o *GetFileIDThumbnailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetFileInfoDefault added in v0.3.1

type GetFileInfoDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}

GetFileInfoDefault describes a response with status code -1, with default header values.

Error Response

func NewGetFileInfoDefault added in v0.3.1

func NewGetFileInfoDefault(code int) *GetFileInfoDefault

NewGetFileInfoDefault creates a GetFileInfoDefault with default headers values

func (*GetFileInfoDefault) Code added in v0.3.1

func (o *GetFileInfoDefault) Code() int

Code gets the status code for the get file info default response

func (*GetFileInfoDefault) Error added in v0.3.1

func (o *GetFileInfoDefault) Error() string

func (*GetFileInfoDefault) GetPayload added in v0.5.0

func (o *GetFileInfoDefault) GetPayload() *models.StandardError

func (*GetFileInfoDefault) IsClientError added in v0.6.0

func (o *GetFileInfoDefault) IsClientError() bool

IsClientError returns true when this get file info default response has a 4xx status code

func (*GetFileInfoDefault) IsCode added in v0.6.0

func (o *GetFileInfoDefault) IsCode(code int) bool

IsCode returns true when this get file info default response a status code equal to that given

func (*GetFileInfoDefault) IsRedirect added in v0.6.0

func (o *GetFileInfoDefault) IsRedirect() bool

IsRedirect returns true when this get file info default response has a 3xx status code

func (*GetFileInfoDefault) IsServerError added in v0.6.0

func (o *GetFileInfoDefault) IsServerError() bool

IsServerError returns true when this get file info default response has a 5xx status code

func (*GetFileInfoDefault) IsSuccess added in v0.6.0

func (o *GetFileInfoDefault) IsSuccess() bool

IsSuccess returns true when this get file info default response has a 2xx status code

func (*GetFileInfoDefault) String added in v0.6.0

func (o *GetFileInfoDefault) String() string

type GetFileInfoOK added in v0.2.1

type GetFileInfoOK struct {
	Payload *models.FileInfo
}

GetFileInfoOK describes a response with status code 200, with default header values.

OK

func NewGetFileInfoOK added in v0.2.1

func NewGetFileInfoOK() *GetFileInfoOK

NewGetFileInfoOK creates a GetFileInfoOK with default headers values

func (*GetFileInfoOK) Code added in v0.6.0

func (o *GetFileInfoOK) Code() int

Code gets the status code for the get file info o k response

func (*GetFileInfoOK) Error added in v0.2.1

func (o *GetFileInfoOK) Error() string

func (*GetFileInfoOK) GetPayload added in v0.5.0

func (o *GetFileInfoOK) GetPayload() *models.FileInfo

func (*GetFileInfoOK) IsClientError added in v0.6.0

func (o *GetFileInfoOK) IsClientError() bool

IsClientError returns true when this get file info o k response has a 4xx status code

func (*GetFileInfoOK) IsCode added in v0.6.0

func (o *GetFileInfoOK) IsCode(code int) bool

IsCode returns true when this get file info o k response a status code equal to that given

func (*GetFileInfoOK) IsRedirect added in v0.6.0

func (o *GetFileInfoOK) IsRedirect() bool

IsRedirect returns true when this get file info o k response has a 3xx status code

func (*GetFileInfoOK) IsServerError added in v0.6.0

func (o *GetFileInfoOK) IsServerError() bool

IsServerError returns true when this get file info o k response has a 5xx status code

func (*GetFileInfoOK) IsSuccess added in v0.6.0

func (o *GetFileInfoOK) IsSuccess() bool

IsSuccess returns true when this get file info o k response has a 2xx status code

func (*GetFileInfoOK) String added in v0.6.0

func (o *GetFileInfoOK) String() string

type GetFileInfoParams added in v0.2.1

type GetFileInfoParams struct {

	/* ID.

	   ID(s) of the file
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFileInfoParams contains all the parameters to send to the API endpoint

for the get file info operation.

Typically these are written to a http.Request.

func NewGetFileInfoParams added in v0.2.1

func NewGetFileInfoParams() *GetFileInfoParams

NewGetFileInfoParams creates a new GetFileInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetFileInfoParamsWithContext added in v0.2.1

func NewGetFileInfoParamsWithContext(ctx context.Context) *GetFileInfoParams

NewGetFileInfoParamsWithContext creates a new GetFileInfoParams object with the ability to set a context for a request.

func NewGetFileInfoParamsWithHTTPClient added in v0.2.1

func NewGetFileInfoParamsWithHTTPClient(client *http.Client) *GetFileInfoParams

NewGetFileInfoParamsWithHTTPClient creates a new GetFileInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileInfoParamsWithTimeout added in v0.2.1

func NewGetFileInfoParamsWithTimeout(timeout time.Duration) *GetFileInfoParams

NewGetFileInfoParamsWithTimeout creates a new GetFileInfoParams object with the ability to set a timeout on a request.

func (*GetFileInfoParams) SetContext added in v0.2.1

func (o *GetFileInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get file info params

func (*GetFileInfoParams) SetDefaults added in v0.5.0

func (o *GetFileInfoParams) SetDefaults()

SetDefaults hydrates default values in the get file info params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileInfoParams) SetHTTPClient added in v0.2.1

func (o *GetFileInfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get file info params

func (*GetFileInfoParams) SetID added in v0.2.1

func (o *GetFileInfoParams) SetID(id string)

SetID adds the id to the get file info params

func (*GetFileInfoParams) SetTimeout added in v0.2.1

func (o *GetFileInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get file info params

func (*GetFileInfoParams) WithContext added in v0.2.1

func (o *GetFileInfoParams) WithContext(ctx context.Context) *GetFileInfoParams

WithContext adds the context to the get file info params

func (*GetFileInfoParams) WithDefaults added in v0.5.0

func (o *GetFileInfoParams) WithDefaults() *GetFileInfoParams

WithDefaults hydrates default values in the get file info params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileInfoParams) WithHTTPClient added in v0.2.1

func (o *GetFileInfoParams) WithHTTPClient(client *http.Client) *GetFileInfoParams

WithHTTPClient adds the HTTPClient to the get file info params

func (*GetFileInfoParams) WithID added in v0.2.1

WithID adds the id to the get file info params

func (*GetFileInfoParams) WithTimeout added in v0.2.1

func (o *GetFileInfoParams) WithTimeout(timeout time.Duration) *GetFileInfoParams

WithTimeout adds the timeout to the get file info params

func (*GetFileInfoParams) WriteToRequest added in v0.2.1

func (o *GetFileInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetFileInfoReader added in v0.2.1

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

GetFileInfoReader is a Reader for the GetFileInfo structure.

func (*GetFileInfoReader) ReadResponse added in v0.2.1

func (o *GetFileInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetFileThumbnailDefault added in v0.6.0

type GetFileThumbnailDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}

GetFileThumbnailDefault describes a response with status code -1, with default header values.

Error Response

func NewGetFileThumbnailDefault added in v0.6.0

func NewGetFileThumbnailDefault(code int) *GetFileThumbnailDefault

NewGetFileThumbnailDefault creates a GetFileThumbnailDefault with default headers values

func (*GetFileThumbnailDefault) Code added in v0.6.0

func (o *GetFileThumbnailDefault) Code() int

Code gets the status code for the get file thumbnail default response

func (*GetFileThumbnailDefault) Error added in v0.6.0

func (o *GetFileThumbnailDefault) Error() string

func (*GetFileThumbnailDefault) GetPayload added in v0.6.0

func (o *GetFileThumbnailDefault) GetPayload() *models.StandardError

func (*GetFileThumbnailDefault) IsClientError added in v0.6.0

func (o *GetFileThumbnailDefault) IsClientError() bool

IsClientError returns true when this get file thumbnail default response has a 4xx status code

func (*GetFileThumbnailDefault) IsCode added in v0.6.0

func (o *GetFileThumbnailDefault) IsCode(code int) bool

IsCode returns true when this get file thumbnail default response a status code equal to that given

func (*GetFileThumbnailDefault) IsRedirect added in v0.6.0

func (o *GetFileThumbnailDefault) IsRedirect() bool

IsRedirect returns true when this get file thumbnail default response has a 3xx status code

func (*GetFileThumbnailDefault) IsServerError added in v0.6.0

func (o *GetFileThumbnailDefault) IsServerError() bool

IsServerError returns true when this get file thumbnail default response has a 5xx status code

func (*GetFileThumbnailDefault) IsSuccess added in v0.6.0

func (o *GetFileThumbnailDefault) IsSuccess() bool

IsSuccess returns true when this get file thumbnail default response has a 2xx status code

func (*GetFileThumbnailDefault) String added in v0.6.0

func (o *GetFileThumbnailDefault) String() string

type GetFileThumbnailOK added in v0.6.0

type GetFileThumbnailOK struct {
}

GetFileThumbnailOK describes a response with status code 200, with default header values.

A PNG image if a thumbnail can be generated. If a thumbnail cannot be generated you will get a 301 redirect to an image representing the type of the file.

func NewGetFileThumbnailOK added in v0.6.0

func NewGetFileThumbnailOK() *GetFileThumbnailOK

NewGetFileThumbnailOK creates a GetFileThumbnailOK with default headers values

func (*GetFileThumbnailOK) Code added in v0.6.0

func (o *GetFileThumbnailOK) Code() int

Code gets the status code for the get file thumbnail o k response

func (*GetFileThumbnailOK) Error added in v0.6.0

func (o *GetFileThumbnailOK) Error() string

func (*GetFileThumbnailOK) IsClientError added in v0.6.0

func (o *GetFileThumbnailOK) IsClientError() bool

IsClientError returns true when this get file thumbnail o k response has a 4xx status code

func (*GetFileThumbnailOK) IsCode added in v0.6.0

func (o *GetFileThumbnailOK) IsCode(code int) bool

IsCode returns true when this get file thumbnail o k response a status code equal to that given

func (*GetFileThumbnailOK) IsRedirect added in v0.6.0

func (o *GetFileThumbnailOK) IsRedirect() bool

IsRedirect returns true when this get file thumbnail o k response has a 3xx status code

func (*GetFileThumbnailOK) IsServerError added in v0.6.0

func (o *GetFileThumbnailOK) IsServerError() bool

IsServerError returns true when this get file thumbnail o k response has a 5xx status code

func (*GetFileThumbnailOK) IsSuccess added in v0.6.0

func (o *GetFileThumbnailOK) IsSuccess() bool

IsSuccess returns true when this get file thumbnail o k response has a 2xx status code

func (*GetFileThumbnailOK) String added in v0.6.0

func (o *GetFileThumbnailOK) String() string

type GetFileThumbnailParams added in v0.6.0

type GetFileThumbnailParams struct {

	/* Height.

	   Height of the thumbnail image
	*/
	Height *int64

	/* ID.

	   ID of the file to get a thumbnail for
	*/
	ID string

	/* Width.

	   Width of the thumbnail image
	*/
	Width *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFileThumbnailParams contains all the parameters to send to the API endpoint

for the get file thumbnail operation.

Typically these are written to a http.Request.

func NewGetFileThumbnailParams added in v0.6.0

func NewGetFileThumbnailParams() *GetFileThumbnailParams

NewGetFileThumbnailParams creates a new GetFileThumbnailParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetFileThumbnailParamsWithContext added in v0.6.0

func NewGetFileThumbnailParamsWithContext(ctx context.Context) *GetFileThumbnailParams

NewGetFileThumbnailParamsWithContext creates a new GetFileThumbnailParams object with the ability to set a context for a request.

func NewGetFileThumbnailParamsWithHTTPClient added in v0.6.0

func NewGetFileThumbnailParamsWithHTTPClient(client *http.Client) *GetFileThumbnailParams

NewGetFileThumbnailParamsWithHTTPClient creates a new GetFileThumbnailParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileThumbnailParamsWithTimeout added in v0.6.0

func NewGetFileThumbnailParamsWithTimeout(timeout time.Duration) *GetFileThumbnailParams

NewGetFileThumbnailParamsWithTimeout creates a new GetFileThumbnailParams object with the ability to set a timeout on a request.

func (*GetFileThumbnailParams) SetContext added in v0.6.0

func (o *GetFileThumbnailParams) SetContext(ctx context.Context)

SetContext adds the context to the get file thumbnail params

func (*GetFileThumbnailParams) SetDefaults added in v0.6.0

func (o *GetFileThumbnailParams) SetDefaults()

SetDefaults hydrates default values in the get file thumbnail params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileThumbnailParams) SetHTTPClient added in v0.6.0

func (o *GetFileThumbnailParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get file thumbnail params

func (*GetFileThumbnailParams) SetHeight added in v0.6.0

func (o *GetFileThumbnailParams) SetHeight(height *int64)

SetHeight adds the height to the get file thumbnail params

func (*GetFileThumbnailParams) SetID added in v0.6.0

func (o *GetFileThumbnailParams) SetID(id string)

SetID adds the id to the get file thumbnail params

func (*GetFileThumbnailParams) SetTimeout added in v0.6.0

func (o *GetFileThumbnailParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get file thumbnail params

func (*GetFileThumbnailParams) SetWidth added in v0.6.0

func (o *GetFileThumbnailParams) SetWidth(width *int64)

SetWidth adds the width to the get file thumbnail params

func (*GetFileThumbnailParams) WithContext added in v0.6.0

WithContext adds the context to the get file thumbnail params

func (*GetFileThumbnailParams) WithDefaults added in v0.6.0

WithDefaults hydrates default values in the get file thumbnail params (not the query body).

All values with no default are reset to their zero value.

func (*GetFileThumbnailParams) WithHTTPClient added in v0.6.0

func (o *GetFileThumbnailParams) WithHTTPClient(client *http.Client) *GetFileThumbnailParams

WithHTTPClient adds the HTTPClient to the get file thumbnail params

func (*GetFileThumbnailParams) WithHeight added in v0.6.0

func (o *GetFileThumbnailParams) WithHeight(height *int64) *GetFileThumbnailParams

WithHeight adds the height to the get file thumbnail params

func (*GetFileThumbnailParams) WithID added in v0.6.0

WithID adds the id to the get file thumbnail params

func (*GetFileThumbnailParams) WithTimeout added in v0.6.0

WithTimeout adds the timeout to the get file thumbnail params

func (*GetFileThumbnailParams) WithWidth added in v0.6.0

func (o *GetFileThumbnailParams) WithWidth(width *int64) *GetFileThumbnailParams

WithWidth adds the width to the get file thumbnail params

func (*GetFileThumbnailParams) WriteToRequest added in v0.6.0

WriteToRequest writes these params to a swagger request

type GetFileThumbnailReader added in v0.6.0

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

GetFileThumbnailReader is a Reader for the GetFileThumbnail structure.

func (*GetFileThumbnailReader) ReadResponse added in v0.6.0

func (o *GetFileThumbnailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UploadFileCreated added in v0.2.1

type UploadFileCreated struct {
	Payload *models.SuccessResponse
}

UploadFileCreated describes a response with status code 201, with default header values.

File is uploaded

func NewUploadFileCreated added in v0.2.1

func NewUploadFileCreated() *UploadFileCreated

NewUploadFileCreated creates a UploadFileCreated with default headers values

func (*UploadFileCreated) Code added in v0.6.0

func (o *UploadFileCreated) Code() int

Code gets the status code for the upload file created response

func (*UploadFileCreated) Error added in v0.2.1

func (o *UploadFileCreated) Error() string

func (*UploadFileCreated) GetPayload added in v0.5.0

func (o *UploadFileCreated) GetPayload() *models.SuccessResponse

func (*UploadFileCreated) IsClientError added in v0.6.0

func (o *UploadFileCreated) IsClientError() bool

IsClientError returns true when this upload file created response has a 4xx status code

func (*UploadFileCreated) IsCode added in v0.6.0

func (o *UploadFileCreated) IsCode(code int) bool

IsCode returns true when this upload file created response a status code equal to that given

func (*UploadFileCreated) IsRedirect added in v0.6.0

func (o *UploadFileCreated) IsRedirect() bool

IsRedirect returns true when this upload file created response has a 3xx status code

func (*UploadFileCreated) IsServerError added in v0.6.0

func (o *UploadFileCreated) IsServerError() bool

IsServerError returns true when this upload file created response has a 5xx status code

func (*UploadFileCreated) IsSuccess added in v0.6.0

func (o *UploadFileCreated) IsSuccess() bool

IsSuccess returns true when this upload file created response has a 2xx status code

func (*UploadFileCreated) String added in v0.6.0

func (o *UploadFileCreated) String() string

type UploadFileDefault added in v0.3.1

type UploadFileDefault struct {
	Payload *models.StandardError
	// contains filtered or unexported fields
}

UploadFileDefault describes a response with status code -1, with default header values.

Error Response

func NewUploadFileDefault added in v0.3.1

func NewUploadFileDefault(code int) *UploadFileDefault

NewUploadFileDefault creates a UploadFileDefault with default headers values

func (*UploadFileDefault) Code added in v0.3.1

func (o *UploadFileDefault) Code() int

Code gets the status code for the upload file default response

func (*UploadFileDefault) Error added in v0.3.1

func (o *UploadFileDefault) Error() string

func (*UploadFileDefault) GetPayload added in v0.5.0

func (o *UploadFileDefault) GetPayload() *models.StandardError

func (*UploadFileDefault) IsClientError added in v0.6.0

func (o *UploadFileDefault) IsClientError() bool

IsClientError returns true when this upload file default response has a 4xx status code

func (*UploadFileDefault) IsCode added in v0.6.0

func (o *UploadFileDefault) IsCode(code int) bool

IsCode returns true when this upload file default response a status code equal to that given

func (*UploadFileDefault) IsRedirect added in v0.6.0

func (o *UploadFileDefault) IsRedirect() bool

IsRedirect returns true when this upload file default response has a 3xx status code

func (*UploadFileDefault) IsServerError added in v0.6.0

func (o *UploadFileDefault) IsServerError() bool

IsServerError returns true when this upload file default response has a 5xx status code

func (*UploadFileDefault) IsSuccess added in v0.6.0

func (o *UploadFileDefault) IsSuccess() bool

IsSuccess returns true when this upload file default response has a 2xx status code

func (*UploadFileDefault) String added in v0.6.0

func (o *UploadFileDefault) String() string

type UploadFileParams added in v0.2.1

type UploadFileParams struct {

	/* Anonymous.

	   File is not linked to user if true
	*/
	Anonymous *bool

	/* File.

	   File to upload
	*/
	File runtime.NamedReadCloser

	/* Name.

	   Name of the file to upload

	   Default: "multipart file name"
	*/
	Name *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UploadFileParams contains all the parameters to send to the API endpoint

for the upload file operation.

Typically these are written to a http.Request.

func NewUploadFileParams added in v0.2.1

func NewUploadFileParams() *UploadFileParams

NewUploadFileParams creates a new UploadFileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUploadFileParamsWithContext added in v0.2.1

func NewUploadFileParamsWithContext(ctx context.Context) *UploadFileParams

NewUploadFileParamsWithContext creates a new UploadFileParams object with the ability to set a context for a request.

func NewUploadFileParamsWithHTTPClient added in v0.2.1

func NewUploadFileParamsWithHTTPClient(client *http.Client) *UploadFileParams

NewUploadFileParamsWithHTTPClient creates a new UploadFileParams object with the ability to set a custom HTTPClient for a request.

func NewUploadFileParamsWithTimeout added in v0.2.1

func NewUploadFileParamsWithTimeout(timeout time.Duration) *UploadFileParams

NewUploadFileParamsWithTimeout creates a new UploadFileParams object with the ability to set a timeout on a request.

func (*UploadFileParams) SetAnonymous added in v0.6.0

func (o *UploadFileParams) SetAnonymous(anonymous *bool)

SetAnonymous adds the anonymous to the upload file params

func (*UploadFileParams) SetContext added in v0.2.1

func (o *UploadFileParams) SetContext(ctx context.Context)

SetContext adds the context to the upload file params

func (*UploadFileParams) SetDefaults added in v0.5.0

func (o *UploadFileParams) SetDefaults()

SetDefaults hydrates default values in the upload file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadFileParams) SetFile added in v0.2.1

func (o *UploadFileParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the upload file params

func (*UploadFileParams) SetHTTPClient added in v0.2.1

func (o *UploadFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload file params

func (*UploadFileParams) SetName added in v0.2.1

func (o *UploadFileParams) SetName(name *string)

SetName adds the name to the upload file params

func (*UploadFileParams) SetTimeout added in v0.2.1

func (o *UploadFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload file params

func (*UploadFileParams) WithAnonymous added in v0.6.0

func (o *UploadFileParams) WithAnonymous(anonymous *bool) *UploadFileParams

WithAnonymous adds the anonymous to the upload file params

func (*UploadFileParams) WithContext added in v0.2.1

func (o *UploadFileParams) WithContext(ctx context.Context) *UploadFileParams

WithContext adds the context to the upload file params

func (*UploadFileParams) WithDefaults added in v0.5.0

func (o *UploadFileParams) WithDefaults() *UploadFileParams

WithDefaults hydrates default values in the upload file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadFileParams) WithFile added in v0.2.1

WithFile adds the file to the upload file params

func (*UploadFileParams) WithHTTPClient added in v0.2.1

func (o *UploadFileParams) WithHTTPClient(client *http.Client) *UploadFileParams

WithHTTPClient adds the HTTPClient to the upload file params

func (*UploadFileParams) WithName added in v0.2.1

func (o *UploadFileParams) WithName(name *string) *UploadFileParams

WithName adds the name to the upload file params

func (*UploadFileParams) WithTimeout added in v0.2.1

func (o *UploadFileParams) WithTimeout(timeout time.Duration) *UploadFileParams

WithTimeout adds the timeout to the upload file params

func (*UploadFileParams) WriteToRequest added in v0.2.1

func (o *UploadFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadFileReader added in v0.2.1

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

UploadFileReader is a Reader for the UploadFile structure.

func (*UploadFileReader) ReadResponse added in v0.2.1

func (o *UploadFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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