files

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

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 files API

func New

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

New creates a new files API client.

func (*Client) DeleteFilesFileidentifier

DeleteFilesFileidentifier deletes file based on uuid

Put file based on filename, returns the uuid of the stored file.

func (*Client) GetFilesFileidentifier

func (a *Client) GetFilesFileidentifier(params *GetFilesFileidentifierParams, authInfo runtime.ClientAuthInfoWriter) (*GetFilesFileidentifierOK, error)

GetFilesFileidentifier gets file based on uuid

Get file based on uuid.

func (*Client) PutFilesFileidentifier

PutFilesFileidentifier puts file based on filename

Put file based on filename, returns the uuid of the stored file.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteFilesFileidentifierDefault

type DeleteFilesFileidentifierDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteFilesFileidentifierDefault handles this case with default header values.

Unexpected error

func NewDeleteFilesFileidentifierDefault

func NewDeleteFilesFileidentifierDefault(code int) *DeleteFilesFileidentifierDefault

NewDeleteFilesFileidentifierDefault creates a DeleteFilesFileidentifierDefault with default headers values

func (*DeleteFilesFileidentifierDefault) Code

Code gets the status code for the delete files fileidentifier default response

func (*DeleteFilesFileidentifierDefault) Error

type DeleteFilesFileidentifierInternalServerError

type DeleteFilesFileidentifierInternalServerError struct {
	Payload *models.Error
}

DeleteFilesFileidentifierInternalServerError handles this case with default header values.

Error deleting file from the database.

func NewDeleteFilesFileidentifierInternalServerError

func NewDeleteFilesFileidentifierInternalServerError() *DeleteFilesFileidentifierInternalServerError

NewDeleteFilesFileidentifierInternalServerError creates a DeleteFilesFileidentifierInternalServerError with default headers values

func (*DeleteFilesFileidentifierInternalServerError) Error

type DeleteFilesFileidentifierNoContent

type DeleteFilesFileidentifierNoContent struct {
}

DeleteFilesFileidentifierNoContent handles this case with default header values.

File successfully deleted.

func NewDeleteFilesFileidentifierNoContent

func NewDeleteFilesFileidentifierNoContent() *DeleteFilesFileidentifierNoContent

NewDeleteFilesFileidentifierNoContent creates a DeleteFilesFileidentifierNoContent with default headers values

func (*DeleteFilesFileidentifierNoContent) Error

type DeleteFilesFileidentifierNotFound

type DeleteFilesFileidentifierNotFound struct {
	Payload *models.Error
}

DeleteFilesFileidentifierNotFound handles this case with default header values.

File not found.

func NewDeleteFilesFileidentifierNotFound

func NewDeleteFilesFileidentifierNotFound() *DeleteFilesFileidentifierNotFound

NewDeleteFilesFileidentifierNotFound creates a DeleteFilesFileidentifierNotFound with default headers values

func (*DeleteFilesFileidentifierNotFound) Error

type DeleteFilesFileidentifierParams

type DeleteFilesFileidentifierParams struct {

	/*Fileidentifier
	  filename identifier of the file you wish to delete

	*/
	Fileidentifier string
}

DeleteFilesFileidentifierParams contains all the parameters to send to the API endpoint for the delete files fileidentifier operation typically these are written to a http.Request

func NewDeleteFilesFileidentifierParams

func NewDeleteFilesFileidentifierParams() *DeleteFilesFileidentifierParams

NewDeleteFilesFileidentifierParams creates a new DeleteFilesFileidentifierParams object with the default values initialized.

func (*DeleteFilesFileidentifierParams) WithFileidentifier

func (o *DeleteFilesFileidentifierParams) WithFileidentifier(Fileidentifier string) *DeleteFilesFileidentifierParams

WithFileidentifier adds the fileidentifier to the delete files fileidentifier params

func (*DeleteFilesFileidentifierParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteFilesFileidentifierReader

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

DeleteFilesFileidentifierReader is a Reader for the DeleteFilesFileidentifier structure.

func (*DeleteFilesFileidentifierReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetFilesFileidentifierDefault

type GetFilesFileidentifierDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetFilesFileidentifierDefault handles this case with default header values.

Unexpected error

func NewGetFilesFileidentifierDefault

func NewGetFilesFileidentifierDefault(code int) *GetFilesFileidentifierDefault

NewGetFilesFileidentifierDefault creates a GetFilesFileidentifierDefault with default headers values

func (*GetFilesFileidentifierDefault) Code

Code gets the status code for the get files fileidentifier default response

func (*GetFilesFileidentifierDefault) Error

type GetFilesFileidentifierInternalServerError

type GetFilesFileidentifierInternalServerError struct {
	Payload *models.Error
}

GetFilesFileidentifierInternalServerError handles this case with default header values.

Failed to serve file request.

func NewGetFilesFileidentifierInternalServerError

func NewGetFilesFileidentifierInternalServerError() *GetFilesFileidentifierInternalServerError

NewGetFilesFileidentifierInternalServerError creates a GetFilesFileidentifierInternalServerError with default headers values

func (*GetFilesFileidentifierInternalServerError) Error

type GetFilesFileidentifierNotFound

type GetFilesFileidentifierNotFound struct {
	Payload *models.Error
}

GetFilesFileidentifierNotFound handles this case with default header values.

File not found.

func NewGetFilesFileidentifierNotFound

func NewGetFilesFileidentifierNotFound() *GetFilesFileidentifierNotFound

NewGetFilesFileidentifierNotFound creates a GetFilesFileidentifierNotFound with default headers values

func (*GetFilesFileidentifierNotFound) Error

type GetFilesFileidentifierOK

type GetFilesFileidentifierOK struct {
	Payload GetFilesFileidentifierOKBodyBody
}

GetFilesFileidentifierOK handles this case with default header values.

The file requested

func NewGetFilesFileidentifierOK

func NewGetFilesFileidentifierOK() *GetFilesFileidentifierOK

NewGetFilesFileidentifierOK creates a GetFilesFileidentifierOK with default headers values

func (*GetFilesFileidentifierOK) Error

func (o *GetFilesFileidentifierOK) Error() string

type GetFilesFileidentifierOKBodyBody

type GetFilesFileidentifierOKBodyBody interface{}

GetFilesFileidentifierOKBodyBody get files fileidentifier o k body body

swagger:model GetFilesFileidentifierOKBodyBody

type GetFilesFileidentifierParams

type GetFilesFileidentifierParams struct {

	/*Fileidentifier
	  uuid of a file as provided when you originally stored it.

	*/
	Fileidentifier string
}

GetFilesFileidentifierParams contains all the parameters to send to the API endpoint for the get files fileidentifier operation typically these are written to a http.Request

func NewGetFilesFileidentifierParams

func NewGetFilesFileidentifierParams() *GetFilesFileidentifierParams

NewGetFilesFileidentifierParams creates a new GetFilesFileidentifierParams object with the default values initialized.

func (*GetFilesFileidentifierParams) WithFileidentifier

func (o *GetFilesFileidentifierParams) WithFileidentifier(Fileidentifier string) *GetFilesFileidentifierParams

WithFileidentifier adds the fileidentifier to the get files fileidentifier params

func (*GetFilesFileidentifierParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFilesFileidentifierReader

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

GetFilesFileidentifierReader is a Reader for the GetFilesFileidentifier structure.

func (*GetFilesFileidentifierReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PutFilesFileidentifierCreated

type PutFilesFileidentifierCreated struct {
	Payload string
}

PutFilesFileidentifierCreated handles this case with default header values.

Ready.

func NewPutFilesFileidentifierCreated

func NewPutFilesFileidentifierCreated() *PutFilesFileidentifierCreated

NewPutFilesFileidentifierCreated creates a PutFilesFileidentifierCreated with default headers values

func (*PutFilesFileidentifierCreated) Error

type PutFilesFileidentifierDefault

type PutFilesFileidentifierDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PutFilesFileidentifierDefault handles this case with default header values.

Unexpected error

func NewPutFilesFileidentifierDefault

func NewPutFilesFileidentifierDefault(code int) *PutFilesFileidentifierDefault

NewPutFilesFileidentifierDefault creates a PutFilesFileidentifierDefault with default headers values

func (*PutFilesFileidentifierDefault) Code

Code gets the status code for the put files fileidentifier default response

func (*PutFilesFileidentifierDefault) Error

type PutFilesFileidentifierInternalServerError

type PutFilesFileidentifierInternalServerError struct {
	Payload *models.Error
}

PutFilesFileidentifierInternalServerError handles this case with default header values.

Failure serving file request.

func NewPutFilesFileidentifierInternalServerError

func NewPutFilesFileidentifierInternalServerError() *PutFilesFileidentifierInternalServerError

NewPutFilesFileidentifierInternalServerError creates a PutFilesFileidentifierInternalServerError with default headers values

func (*PutFilesFileidentifierInternalServerError) Error

type PutFilesFileidentifierOK

type PutFilesFileidentifierOK struct {
	Payload PutFilesFileidentifierOKBodyBody
}

PutFilesFileidentifierOK handles this case with default header values.

The file was stored

func NewPutFilesFileidentifierOK

func NewPutFilesFileidentifierOK() *PutFilesFileidentifierOK

NewPutFilesFileidentifierOK creates a PutFilesFileidentifierOK with default headers values

func (*PutFilesFileidentifierOK) Error

func (o *PutFilesFileidentifierOK) Error() string

type PutFilesFileidentifierOKBodyBody

type PutFilesFileidentifierOKBodyBody interface{}

PutFilesFileidentifierOKBodyBody put files fileidentifier o k body body

swagger:model PutFilesFileidentifierOKBodyBody

type PutFilesFileidentifierParams

type PutFilesFileidentifierParams struct {

	/*Fileidentifier
	  filename of the file you want to store

	*/
	Fileidentifier string
}

PutFilesFileidentifierParams contains all the parameters to send to the API endpoint for the put files fileidentifier operation typically these are written to a http.Request

func NewPutFilesFileidentifierParams

func NewPutFilesFileidentifierParams() *PutFilesFileidentifierParams

NewPutFilesFileidentifierParams creates a new PutFilesFileidentifierParams object with the default values initialized.

func (*PutFilesFileidentifierParams) WithFileidentifier

func (o *PutFilesFileidentifierParams) WithFileidentifier(Fileidentifier string) *PutFilesFileidentifierParams

WithFileidentifier adds the fileidentifier to the put files fileidentifier params

func (*PutFilesFileidentifierParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutFilesFileidentifierReader

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

PutFilesFileidentifierReader is a Reader for the PutFilesFileidentifier structure.

func (*PutFilesFileidentifierReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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