user

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: 12 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 user API

func (*Client) ListFileLists

func (a *Client) ListFileLists(params *ListFileListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFileListsOK, error)

ListFileLists returns file lists

Returns file lists.

func (*Client) ListFiles

func (a *Client) ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, error)

ListFiles returns a list of uploaded files

Returns a list of uploaded files..

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListFileLists(params *ListFileListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFileListsOK, error)

	ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, 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 user API client.

type ListFileListsDefault

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

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

Error Response

func NewListFileListsDefault

func NewListFileListsDefault(code int) *ListFileListsDefault

NewListFileListsDefault creates a ListFileListsDefault with default headers values

func (*ListFileListsDefault) Code

func (o *ListFileListsDefault) Code() int

Code gets the status code for the list file lists default response

func (*ListFileListsDefault) Error

func (o *ListFileListsDefault) Error() string

func (*ListFileListsDefault) GetPayload

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

func (*ListFileListsDefault) IsClientError

func (o *ListFileListsDefault) IsClientError() bool

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

func (*ListFileListsDefault) IsCode

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

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

func (*ListFileListsDefault) IsRedirect

func (o *ListFileListsDefault) IsRedirect() bool

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

func (*ListFileListsDefault) IsServerError

func (o *ListFileListsDefault) IsServerError() bool

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

func (*ListFileListsDefault) IsSuccess

func (o *ListFileListsDefault) IsSuccess() bool

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

func (*ListFileListsDefault) String

func (o *ListFileListsDefault) String() string

type ListFileListsOK

type ListFileListsOK struct {
	Payload *ListFileListsOKBody
}

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

OK

func NewListFileListsOK

func NewListFileListsOK() *ListFileListsOK

NewListFileListsOK creates a ListFileListsOK with default headers values

func (*ListFileListsOK) Code

func (o *ListFileListsOK) Code() int

Code gets the status code for the list file lists o k response

func (*ListFileListsOK) Error

func (o *ListFileListsOK) Error() string

func (*ListFileListsOK) GetPayload

func (o *ListFileListsOK) GetPayload() *ListFileListsOKBody

func (*ListFileListsOK) IsClientError

func (o *ListFileListsOK) IsClientError() bool

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

func (*ListFileListsOK) IsCode

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

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

func (*ListFileListsOK) IsRedirect

func (o *ListFileListsOK) IsRedirect() bool

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

func (*ListFileListsOK) IsServerError

func (o *ListFileListsOK) IsServerError() bool

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

func (*ListFileListsOK) IsSuccess

func (o *ListFileListsOK) IsSuccess() bool

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

func (*ListFileListsOK) String

func (o *ListFileListsOK) String() string

type ListFileListsOKBody

type ListFileListsOKBody struct {

	// lists
	Lists []*models.ListInfo `json:"lists"`
}

ListFileListsOKBody list file lists o k body swagger:model ListFileListsOKBody

func (*ListFileListsOKBody) ContextValidate

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

ContextValidate validate this list file lists o k body based on the context it is used

func (*ListFileListsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListFileListsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListFileListsOKBody) Validate

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

Validate validates this list file lists o k body

type ListFileListsParams

type ListFileListsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListFileListsParams contains all the parameters to send to the API endpoint

for the list file lists operation.

Typically these are written to a http.Request.

func NewListFileListsParams

func NewListFileListsParams() *ListFileListsParams

NewListFileListsParams creates a new ListFileListsParams 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 NewListFileListsParamsWithContext

func NewListFileListsParamsWithContext(ctx context.Context) *ListFileListsParams

NewListFileListsParamsWithContext creates a new ListFileListsParams object with the ability to set a context for a request.

func NewListFileListsParamsWithHTTPClient

func NewListFileListsParamsWithHTTPClient(client *http.Client) *ListFileListsParams

NewListFileListsParamsWithHTTPClient creates a new ListFileListsParams object with the ability to set a custom HTTPClient for a request.

func NewListFileListsParamsWithTimeout

func NewListFileListsParamsWithTimeout(timeout time.Duration) *ListFileListsParams

NewListFileListsParamsWithTimeout creates a new ListFileListsParams object with the ability to set a timeout on a request.

func (*ListFileListsParams) SetContext

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

SetContext adds the context to the list file lists params

func (*ListFileListsParams) SetDefaults

func (o *ListFileListsParams) SetDefaults()

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

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

func (*ListFileListsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list file lists params

func (*ListFileListsParams) SetTimeout

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

SetTimeout adds the timeout to the list file lists params

func (*ListFileListsParams) WithContext

WithContext adds the context to the list file lists params

func (*ListFileListsParams) WithDefaults

func (o *ListFileListsParams) WithDefaults() *ListFileListsParams

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

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

func (*ListFileListsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list file lists params

func (*ListFileListsParams) WithTimeout

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

WithTimeout adds the timeout to the list file lists params

func (*ListFileListsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListFileListsReader

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

ListFileListsReader is a Reader for the ListFileLists structure.

func (*ListFileListsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListFilesDefault

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

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

Error Response

func NewListFilesDefault

func NewListFilesDefault(code int) *ListFilesDefault

NewListFilesDefault creates a ListFilesDefault with default headers values

func (*ListFilesDefault) Code

func (o *ListFilesDefault) Code() int

Code gets the status code for the list files default response

func (*ListFilesDefault) Error

func (o *ListFilesDefault) Error() string

func (*ListFilesDefault) GetPayload

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

func (*ListFilesDefault) IsClientError

func (o *ListFilesDefault) IsClientError() bool

IsClientError returns true when this list files default response has a 4xx status code

func (*ListFilesDefault) IsCode

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

IsCode returns true when this list files default response a status code equal to that given

func (*ListFilesDefault) IsRedirect

func (o *ListFilesDefault) IsRedirect() bool

IsRedirect returns true when this list files default response has a 3xx status code

func (*ListFilesDefault) IsServerError

func (o *ListFilesDefault) IsServerError() bool

IsServerError returns true when this list files default response has a 5xx status code

func (*ListFilesDefault) IsSuccess

func (o *ListFilesDefault) IsSuccess() bool

IsSuccess returns true when this list files default response has a 2xx status code

func (*ListFilesDefault) String

func (o *ListFilesDefault) String() string

type ListFilesOK

type ListFilesOK struct {
	Payload *ListFilesOKBody
}

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

OK

func NewListFilesOK

func NewListFilesOK() *ListFilesOK

NewListFilesOK creates a ListFilesOK with default headers values

func (*ListFilesOK) Code

func (o *ListFilesOK) Code() int

Code gets the status code for the list files o k response

func (*ListFilesOK) Error

func (o *ListFilesOK) Error() string

func (*ListFilesOK) GetPayload

func (o *ListFilesOK) GetPayload() *ListFilesOKBody

func (*ListFilesOK) IsClientError

func (o *ListFilesOK) IsClientError() bool

IsClientError returns true when this list files o k response has a 4xx status code

func (*ListFilesOK) IsCode

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

IsCode returns true when this list files o k response a status code equal to that given

func (*ListFilesOK) IsRedirect

func (o *ListFilesOK) IsRedirect() bool

IsRedirect returns true when this list files o k response has a 3xx status code

func (*ListFilesOK) IsServerError

func (o *ListFilesOK) IsServerError() bool

IsServerError returns true when this list files o k response has a 5xx status code

func (*ListFilesOK) IsSuccess

func (o *ListFilesOK) IsSuccess() bool

IsSuccess returns true when this list files o k response has a 2xx status code

func (*ListFilesOK) String

func (o *ListFilesOK) String() string

type ListFilesOKBody

type ListFilesOKBody struct {

	// files
	Files []*models.FileInfo `json:"files"`
}

ListFilesOKBody list files o k body swagger:model ListFilesOKBody

func (*ListFilesOKBody) ContextValidate

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

ContextValidate validate this list files o k body based on the context it is used

func (*ListFilesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListFilesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListFilesOKBody) Validate

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

Validate validates this list files o k body

type ListFilesParams

type ListFilesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListFilesParams contains all the parameters to send to the API endpoint

for the list files operation.

Typically these are written to a http.Request.

func NewListFilesParams

func NewListFilesParams() *ListFilesParams

NewListFilesParams creates a new ListFilesParams 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 NewListFilesParamsWithContext

func NewListFilesParamsWithContext(ctx context.Context) *ListFilesParams

NewListFilesParamsWithContext creates a new ListFilesParams object with the ability to set a context for a request.

func NewListFilesParamsWithHTTPClient

func NewListFilesParamsWithHTTPClient(client *http.Client) *ListFilesParams

NewListFilesParamsWithHTTPClient creates a new ListFilesParams object with the ability to set a custom HTTPClient for a request.

func NewListFilesParamsWithTimeout

func NewListFilesParamsWithTimeout(timeout time.Duration) *ListFilesParams

NewListFilesParamsWithTimeout creates a new ListFilesParams object with the ability to set a timeout on a request.

func (*ListFilesParams) SetContext

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

SetContext adds the context to the list files params

func (*ListFilesParams) SetDefaults

func (o *ListFilesParams) SetDefaults()

SetDefaults hydrates default values in the list files params (not the query body).

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

func (*ListFilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) SetTimeout

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

SetTimeout adds the timeout to the list files params

func (*ListFilesParams) WithContext

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

WithContext adds the context to the list files params

func (*ListFilesParams) WithDefaults

func (o *ListFilesParams) WithDefaults() *ListFilesParams

WithDefaults hydrates default values in the list files params (not the query body).

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

func (*ListFilesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) WithTimeout

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

WithTimeout adds the timeout to the list files params

func (*ListFilesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListFilesReader

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

ListFilesReader is a Reader for the ListFiles structure.

func (*ListFilesReader) ReadResponse

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