icons

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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

func New

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

New creates a new icons API client.

func (*Client) Delete

func (a *Client) Delete(params *DeleteParams) (*DeleteNoContent, error)

Delete deletes an icon

Delete an existing icon by its unique id.

func (*Client) Download

func (a *Client) Download(params *DownloadParams) (*DownloadOK, error)

Download downloads an icon

Download an existing icon by its unique id.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Upload

func (a *Client) Upload(params *UploadParams) (*UploadCreated, error)

Upload uploads an icon

Create an icon.

type DeleteForbidden

type DeleteForbidden struct {
}

DeleteForbidden handles this case with default header values.

Forbidden.

func NewDeleteForbidden

func NewDeleteForbidden() *DeleteForbidden

NewDeleteForbidden creates a DeleteForbidden with default headers values

func (*DeleteForbidden) Error

func (o *DeleteForbidden) Error() string

type DeleteNoContent

type DeleteNoContent struct {
}

DeleteNoContent handles this case with default header values.

Success - delete the icon

func NewDeleteNoContent

func NewDeleteNoContent() *DeleteNoContent

NewDeleteNoContent creates a DeleteNoContent with default headers values

func (*DeleteNoContent) Error

func (o *DeleteNoContent) Error() string

type DeleteParams

type DeleteParams struct {

	/*ID
	  Icon id

	*/
	ID strfmt.UUID

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

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

func NewDeleteParams

func NewDeleteParams() *DeleteParams

NewDeleteParams creates a new DeleteParams object with the default values initialized.

func NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteParamsWithHTTPClient

func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams

NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteParamsWithTimeout

func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams

NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteParams) SetContext

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

SetContext adds the context to the delete params

func (*DeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) SetID

func (o *DeleteParams) SetID(id strfmt.UUID)

SetID adds the id to the delete params

func (*DeleteParams) SetTimeout

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

SetTimeout adds the timeout to the delete params

func (*DeleteParams) WithContext

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

WithContext adds the context to the delete params

func (*DeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) WithID

func (o *DeleteParams) WithID(id strfmt.UUID) *DeleteParams

WithID adds the id to the delete params

func (*DeleteParams) WithTimeout

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

WithTimeout adds the timeout to the delete params

func (*DeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteReader

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

DeleteReader is a Reader for the Delete structure.

func (*DeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadBadRequest

type DownloadBadRequest struct {
}

DownloadBadRequest handles this case with default header values.

Invalid request - bad data.

func NewDownloadBadRequest

func NewDownloadBadRequest() *DownloadBadRequest

NewDownloadBadRequest creates a DownloadBadRequest with default headers values

func (*DownloadBadRequest) Error

func (o *DownloadBadRequest) Error() string

type DownloadNotFound

type DownloadNotFound struct {
}

DownloadNotFound handles this case with default header values.

Icon not found.

func NewDownloadNotFound

func NewDownloadNotFound() *DownloadNotFound

NewDownloadNotFound creates a DownloadNotFound with default headers values

func (*DownloadNotFound) Error

func (o *DownloadNotFound) Error() string

type DownloadOK

type DownloadOK struct {
	Payload strfmt.Base64
}

DownloadOK handles this case with default header values.

Success - return the catalog icon.

func NewDownloadOK

func NewDownloadOK() *DownloadOK

NewDownloadOK creates a DownloadOK with default headers values

func (*DownloadOK) Error

func (o *DownloadOK) Error() string

func (*DownloadOK) GetPayload

func (o *DownloadOK) GetPayload() strfmt.Base64

type DownloadParams

type DownloadParams struct {

	/*ID
	  Icon id

	*/
	ID strfmt.UUID

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

DownloadParams contains all the parameters to send to the API endpoint for the download operation typically these are written to a http.Request

func NewDownloadParams

func NewDownloadParams() *DownloadParams

NewDownloadParams creates a new DownloadParams object with the default values initialized.

func NewDownloadParamsWithContext

func NewDownloadParamsWithContext(ctx context.Context) *DownloadParams

NewDownloadParamsWithContext creates a new DownloadParams object with the default values initialized, and the ability to set a context for a request

func NewDownloadParamsWithHTTPClient

func NewDownloadParamsWithHTTPClient(client *http.Client) *DownloadParams

NewDownloadParamsWithHTTPClient creates a new DownloadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDownloadParamsWithTimeout

func NewDownloadParamsWithTimeout(timeout time.Duration) *DownloadParams

NewDownloadParamsWithTimeout creates a new DownloadParams object with the default values initialized, and the ability to set a timeout on a request

func (*DownloadParams) SetContext

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

SetContext adds the context to the download params

func (*DownloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download params

func (*DownloadParams) SetID

func (o *DownloadParams) SetID(id strfmt.UUID)

SetID adds the id to the download params

func (*DownloadParams) SetTimeout

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

SetTimeout adds the timeout to the download params

func (*DownloadParams) WithContext

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

WithContext adds the context to the download params

func (*DownloadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download params

func (*DownloadParams) WithID

func (o *DownloadParams) WithID(id strfmt.UUID) *DownloadParams

WithID adds the id to the download params

func (*DownloadParams) WithTimeout

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

WithTimeout adds the timeout to the download params

func (*DownloadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DownloadReader

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

DownloadReader is a Reader for the Download structure.

func (*DownloadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadBadRequest

type UploadBadRequest struct {
}

UploadBadRequest handles this case with default header values.

Invalid request - bad data.

func NewUploadBadRequest

func NewUploadBadRequest() *UploadBadRequest

NewUploadBadRequest creates a UploadBadRequest with default headers values

func (*UploadBadRequest) Error

func (o *UploadBadRequest) Error() string

type UploadCreated

type UploadCreated struct {
}

UploadCreated handles this case with default header values.

Success - create an icon.

func NewUploadCreated

func NewUploadCreated() *UploadCreated

NewUploadCreated creates a UploadCreated with default headers values

func (*UploadCreated) Error

func (o *UploadCreated) Error() string

type UploadForbidden

type UploadForbidden struct {
}

UploadForbidden handles this case with default header values.

Forbidden.

func NewUploadForbidden

func NewUploadForbidden() *UploadForbidden

NewUploadForbidden creates a UploadForbidden with default headers values

func (*UploadForbidden) Error

func (o *UploadForbidden) Error() string

type UploadParams

type UploadParams struct {

	/*File
	  Icon file

	*/
	File runtime.NamedReadCloser

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

UploadParams contains all the parameters to send to the API endpoint for the upload operation typically these are written to a http.Request

func NewUploadParams

func NewUploadParams() *UploadParams

NewUploadParams creates a new UploadParams object with the default values initialized.

func NewUploadParamsWithContext

func NewUploadParamsWithContext(ctx context.Context) *UploadParams

NewUploadParamsWithContext creates a new UploadParams object with the default values initialized, and the ability to set a context for a request

func NewUploadParamsWithHTTPClient

func NewUploadParamsWithHTTPClient(client *http.Client) *UploadParams

NewUploadParamsWithHTTPClient creates a new UploadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUploadParamsWithTimeout

func NewUploadParamsWithTimeout(timeout time.Duration) *UploadParams

NewUploadParamsWithTimeout creates a new UploadParams object with the default values initialized, and the ability to set a timeout on a request

func (*UploadParams) SetContext

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

SetContext adds the context to the upload params

func (*UploadParams) SetFile

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

SetFile adds the file to the upload params

func (*UploadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) SetTimeout

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

SetTimeout adds the timeout to the upload params

func (*UploadParams) WithContext

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

WithContext adds the context to the upload params

func (*UploadParams) WithFile

func (o *UploadParams) WithFile(file runtime.NamedReadCloser) *UploadParams

WithFile adds the file to the upload params

func (*UploadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) WithTimeout

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

WithTimeout adds the timeout to the upload params

func (*UploadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadReader

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

UploadReader is a Reader for the Upload structure.

func (*UploadReader) ReadResponse

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