Documentation ¶
Index ¶
- type Client
- func (a *Client) ListFileLists(params *ListFileListsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListFileListsOK, error)
- func (a *Client) ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListFilesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListFileListsDefault
- func (o *ListFileListsDefault) Code() int
- func (o *ListFileListsDefault) Error() string
- func (o *ListFileListsDefault) GetPayload() *models.StandardError
- func (o *ListFileListsDefault) IsClientError() bool
- func (o *ListFileListsDefault) IsCode(code int) bool
- func (o *ListFileListsDefault) IsRedirect() bool
- func (o *ListFileListsDefault) IsServerError() bool
- func (o *ListFileListsDefault) IsSuccess() bool
- func (o *ListFileListsDefault) String() string
- type ListFileListsOK
- func (o *ListFileListsOK) Code() int
- func (o *ListFileListsOK) Error() string
- func (o *ListFileListsOK) GetPayload() *ListFileListsOKBody
- func (o *ListFileListsOK) IsClientError() bool
- func (o *ListFileListsOK) IsCode(code int) bool
- func (o *ListFileListsOK) IsRedirect() bool
- func (o *ListFileListsOK) IsServerError() bool
- func (o *ListFileListsOK) IsSuccess() bool
- func (o *ListFileListsOK) String() string
- type ListFileListsOKBody
- type ListFileListsParams
- func (o *ListFileListsParams) SetContext(ctx context.Context)
- func (o *ListFileListsParams) SetDefaults()
- func (o *ListFileListsParams) SetHTTPClient(client *http.Client)
- func (o *ListFileListsParams) SetTimeout(timeout time.Duration)
- func (o *ListFileListsParams) WithContext(ctx context.Context) *ListFileListsParams
- func (o *ListFileListsParams) WithDefaults() *ListFileListsParams
- func (o *ListFileListsParams) WithHTTPClient(client *http.Client) *ListFileListsParams
- func (o *ListFileListsParams) WithTimeout(timeout time.Duration) *ListFileListsParams
- func (o *ListFileListsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFileListsReader
- type ListFilesDefault
- func (o *ListFilesDefault) Code() int
- func (o *ListFilesDefault) Error() string
- func (o *ListFilesDefault) GetPayload() *models.StandardError
- func (o *ListFilesDefault) IsClientError() bool
- func (o *ListFilesDefault) IsCode(code int) bool
- func (o *ListFilesDefault) IsRedirect() bool
- func (o *ListFilesDefault) IsServerError() bool
- func (o *ListFilesDefault) IsSuccess() bool
- func (o *ListFilesDefault) String() string
- type ListFilesOK
- func (o *ListFilesOK) Code() int
- func (o *ListFilesOK) Error() string
- func (o *ListFilesOK) GetPayload() *ListFilesOKBody
- func (o *ListFilesOK) IsClientError() bool
- func (o *ListFilesOK) IsCode(code int) bool
- func (o *ListFilesOK) IsRedirect() bool
- func (o *ListFilesOK) IsServerError() bool
- func (o *ListFilesOK) IsSuccess() bool
- func (o *ListFilesOK) String() string
- type ListFilesOKBody
- type ListFilesParams
- func (o *ListFilesParams) SetContext(ctx context.Context)
- func (o *ListFilesParams) SetDefaults()
- func (o *ListFilesParams) SetHTTPClient(client *http.Client)
- func (o *ListFilesParams) SetTimeout(timeout time.Duration)
- func (o *ListFilesParams) WithContext(ctx context.Context) *ListFilesParams
- func (o *ListFilesParams) WithDefaults() *ListFilesParams
- func (o *ListFilesParams) WithHTTPClient(client *http.Client) *ListFilesParams
- func (o *ListFilesParams) WithTimeout(timeout time.Duration) *ListFilesParams
- func (o *ListFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFilesReader
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 ¶
ListFileListsOKBody list file lists o k body swagger:model ListFileListsOKBody
func (*ListFileListsOKBody) ContextValidate ¶
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
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 ¶
func (o *ListFileListsParams) WithContext(ctx context.Context) *ListFileListsParams
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 ¶
ListFilesOKBody list files o k body swagger:model ListFilesOKBody
func (*ListFilesOKBody) ContextValidate ¶
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
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.