Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListUserDefault
- type ListUserForbidden
- type ListUserOK
- type ListUserParams
- func (o *ListUserParams) SetContext(ctx context.Context)
- func (o *ListUserParams) SetDefaults()
- func (o *ListUserParams) SetHTTPClient(client *http.Client)
- func (o *ListUserParams) SetTimeout(timeout time.Duration)
- func (o *ListUserParams) WithContext(ctx context.Context) *ListUserParams
- func (o *ListUserParams) WithDefaults() *ListUserParams
- func (o *ListUserParams) WithHTTPClient(client *http.Client) *ListUserParams
- func (o *ListUserParams) WithTimeout(timeout time.Duration) *ListUserParams
- func (o *ListUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUserReader
- type ListUserUnauthorized
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) ListUser ¶
func (a *Client) ListUser(params *ListUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserOK, error)
ListUser List users
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 { ListUser(params *ListUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserOK, 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 ListUserDefault ¶
type ListUserDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListUserDefault describes a response with status code -1, with default header values.
errorResponse
func NewListUserDefault ¶
func NewListUserDefault(code int) *ListUserDefault
NewListUserDefault creates a ListUserDefault with default headers values
func (*ListUserDefault) Code ¶
func (o *ListUserDefault) Code() int
Code gets the status code for the list user default response
func (*ListUserDefault) Error ¶
func (o *ListUserDefault) Error() string
func (*ListUserDefault) GetPayload ¶
func (o *ListUserDefault) GetPayload() *models.ErrorResponse
type ListUserForbidden ¶
type ListUserForbidden struct { }
ListUserForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListUserForbidden ¶
func NewListUserForbidden() *ListUserForbidden
NewListUserForbidden creates a ListUserForbidden with default headers values
func (*ListUserForbidden) Error ¶
func (o *ListUserForbidden) Error() string
type ListUserOK ¶
ListUserOK describes a response with status code 200, with default header values.
User
func NewListUserOK ¶
func NewListUserOK() *ListUserOK
NewListUserOK creates a ListUserOK with default headers values
func (*ListUserOK) Error ¶
func (o *ListUserOK) Error() string
func (*ListUserOK) GetPayload ¶
func (o *ListUserOK) GetPayload() []*models.User
type ListUserParams ¶
type ListUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUserParams contains all the parameters to send to the API endpoint
for the list user operation. Typically these are written to a http.Request.
func NewListUserParams ¶
func NewListUserParams() *ListUserParams
NewListUserParams creates a new ListUserParams 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 NewListUserParamsWithContext ¶
func NewListUserParamsWithContext(ctx context.Context) *ListUserParams
NewListUserParamsWithContext creates a new ListUserParams object with the ability to set a context for a request.
func NewListUserParamsWithHTTPClient ¶
func NewListUserParamsWithHTTPClient(client *http.Client) *ListUserParams
NewListUserParamsWithHTTPClient creates a new ListUserParams object with the ability to set a custom HTTPClient for a request.
func NewListUserParamsWithTimeout ¶
func NewListUserParamsWithTimeout(timeout time.Duration) *ListUserParams
NewListUserParamsWithTimeout creates a new ListUserParams object with the ability to set a timeout on a request.
func (*ListUserParams) SetContext ¶
func (o *ListUserParams) SetContext(ctx context.Context)
SetContext adds the context to the list user params
func (*ListUserParams) SetDefaults ¶
func (o *ListUserParams) SetDefaults()
SetDefaults hydrates default values in the list user params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserParams) SetHTTPClient ¶
func (o *ListUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list user params
func (*ListUserParams) SetTimeout ¶
func (o *ListUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list user params
func (*ListUserParams) WithContext ¶
func (o *ListUserParams) WithContext(ctx context.Context) *ListUserParams
WithContext adds the context to the list user params
func (*ListUserParams) WithDefaults ¶
func (o *ListUserParams) WithDefaults() *ListUserParams
WithDefaults hydrates default values in the list user params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserParams) WithHTTPClient ¶
func (o *ListUserParams) WithHTTPClient(client *http.Client) *ListUserParams
WithHTTPClient adds the HTTPClient to the list user params
func (*ListUserParams) WithTimeout ¶
func (o *ListUserParams) WithTimeout(timeout time.Duration) *ListUserParams
WithTimeout adds the timeout to the list user params
func (*ListUserParams) WriteToRequest ¶
func (o *ListUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUserReader ¶
type ListUserReader struct {
// contains filtered or unexported fields
}
ListUserReader is a Reader for the ListUser structure.
func (*ListUserReader) ReadResponse ¶
func (o *ListUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUserUnauthorized ¶
type ListUserUnauthorized struct { }
ListUserUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListUserUnauthorized ¶
func NewListUserUnauthorized() *ListUserUnauthorized
NewListUserUnauthorized creates a ListUserUnauthorized with default headers values
func (*ListUserUnauthorized) Error ¶
func (o *ListUserUnauthorized) Error() string