Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetOwnInfoInternalServerError
- func (o *GetOwnInfoInternalServerError) Code() int
- func (o *GetOwnInfoInternalServerError) Error() string
- func (o *GetOwnInfoInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetOwnInfoInternalServerError) IsClientError() bool
- func (o *GetOwnInfoInternalServerError) IsCode(code int) bool
- func (o *GetOwnInfoInternalServerError) IsRedirect() bool
- func (o *GetOwnInfoInternalServerError) IsServerError() bool
- func (o *GetOwnInfoInternalServerError) IsSuccess() bool
- func (o *GetOwnInfoInternalServerError) String() string
- type GetOwnInfoOK
- func (o *GetOwnInfoOK) Code() int
- func (o *GetOwnInfoOK) Error() string
- func (o *GetOwnInfoOK) GetPayload() *models.UserOwnInfo
- func (o *GetOwnInfoOK) IsClientError() bool
- func (o *GetOwnInfoOK) IsCode(code int) bool
- func (o *GetOwnInfoOK) IsRedirect() bool
- func (o *GetOwnInfoOK) IsServerError() bool
- func (o *GetOwnInfoOK) IsSuccess() bool
- func (o *GetOwnInfoOK) String() string
- type GetOwnInfoParams
- func (o *GetOwnInfoParams) SetContext(ctx context.Context)
- func (o *GetOwnInfoParams) SetDefaults()
- func (o *GetOwnInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetOwnInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetOwnInfoParams) WithContext(ctx context.Context) *GetOwnInfoParams
- func (o *GetOwnInfoParams) WithDefaults() *GetOwnInfoParams
- func (o *GetOwnInfoParams) WithHTTPClient(client *http.Client) *GetOwnInfoParams
- func (o *GetOwnInfoParams) WithTimeout(timeout time.Duration) *GetOwnInfoParams
- func (o *GetOwnInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOwnInfoReader
- type GetOwnInfoUnauthorized
- func (o *GetOwnInfoUnauthorized) Code() int
- func (o *GetOwnInfoUnauthorized) Error() string
- func (o *GetOwnInfoUnauthorized) IsClientError() bool
- func (o *GetOwnInfoUnauthorized) IsCode(code int) bool
- func (o *GetOwnInfoUnauthorized) IsRedirect() bool
- func (o *GetOwnInfoUnauthorized) IsServerError() bool
- func (o *GetOwnInfoUnauthorized) IsSuccess() bool
- func (o *GetOwnInfoUnauthorized) String() string
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 users API
func (*Client) GetOwnInfo ¶
func (a *Client) GetOwnInfo(params *GetOwnInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOwnInfoOK, error)
GetOwnInfo gets info relevant to own user e g username roles
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 {
GetOwnInfo(params *GetOwnInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOwnInfoOK, 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 users API client.
type GetOwnInfoInternalServerError ¶
type GetOwnInfoInternalServerError struct {
Payload *models.ErrorResponse
}
GetOwnInfoInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetOwnInfoInternalServerError ¶
func NewGetOwnInfoInternalServerError() *GetOwnInfoInternalServerError
NewGetOwnInfoInternalServerError creates a GetOwnInfoInternalServerError with default headers values
func (*GetOwnInfoInternalServerError) Code ¶
func (o *GetOwnInfoInternalServerError) Code() int
Code gets the status code for the get own info internal server error response
func (*GetOwnInfoInternalServerError) Error ¶
func (o *GetOwnInfoInternalServerError) Error() string
func (*GetOwnInfoInternalServerError) GetPayload ¶
func (o *GetOwnInfoInternalServerError) GetPayload() *models.ErrorResponse
func (*GetOwnInfoInternalServerError) IsClientError ¶
func (o *GetOwnInfoInternalServerError) IsClientError() bool
IsClientError returns true when this get own info internal server error response has a 4xx status code
func (*GetOwnInfoInternalServerError) IsCode ¶
func (o *GetOwnInfoInternalServerError) IsCode(code int) bool
IsCode returns true when this get own info internal server error response a status code equal to that given
func (*GetOwnInfoInternalServerError) IsRedirect ¶
func (o *GetOwnInfoInternalServerError) IsRedirect() bool
IsRedirect returns true when this get own info internal server error response has a 3xx status code
func (*GetOwnInfoInternalServerError) IsServerError ¶
func (o *GetOwnInfoInternalServerError) IsServerError() bool
IsServerError returns true when this get own info internal server error response has a 5xx status code
func (*GetOwnInfoInternalServerError) IsSuccess ¶
func (o *GetOwnInfoInternalServerError) IsSuccess() bool
IsSuccess returns true when this get own info internal server error response has a 2xx status code
func (*GetOwnInfoInternalServerError) String ¶
func (o *GetOwnInfoInternalServerError) String() string
type GetOwnInfoOK ¶
type GetOwnInfoOK struct {
Payload *models.UserOwnInfo
}
GetOwnInfoOK describes a response with status code 200, with default header values.
Info about the user
func NewGetOwnInfoOK ¶
func NewGetOwnInfoOK() *GetOwnInfoOK
NewGetOwnInfoOK creates a GetOwnInfoOK with default headers values
func (*GetOwnInfoOK) Code ¶
func (o *GetOwnInfoOK) Code() int
Code gets the status code for the get own info o k response
func (*GetOwnInfoOK) Error ¶
func (o *GetOwnInfoOK) Error() string
func (*GetOwnInfoOK) GetPayload ¶
func (o *GetOwnInfoOK) GetPayload() *models.UserOwnInfo
func (*GetOwnInfoOK) IsClientError ¶
func (o *GetOwnInfoOK) IsClientError() bool
IsClientError returns true when this get own info o k response has a 4xx status code
func (*GetOwnInfoOK) IsCode ¶
func (o *GetOwnInfoOK) IsCode(code int) bool
IsCode returns true when this get own info o k response a status code equal to that given
func (*GetOwnInfoOK) IsRedirect ¶
func (o *GetOwnInfoOK) IsRedirect() bool
IsRedirect returns true when this get own info o k response has a 3xx status code
func (*GetOwnInfoOK) IsServerError ¶
func (o *GetOwnInfoOK) IsServerError() bool
IsServerError returns true when this get own info o k response has a 5xx status code
func (*GetOwnInfoOK) IsSuccess ¶
func (o *GetOwnInfoOK) IsSuccess() bool
IsSuccess returns true when this get own info o k response has a 2xx status code
func (*GetOwnInfoOK) String ¶
func (o *GetOwnInfoOK) String() string
type GetOwnInfoParams ¶
type GetOwnInfoParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetOwnInfoParams contains all the parameters to send to the API endpoint
for the get own info operation. Typically these are written to a http.Request.
func NewGetOwnInfoParams ¶
func NewGetOwnInfoParams() *GetOwnInfoParams
NewGetOwnInfoParams creates a new GetOwnInfoParams 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 NewGetOwnInfoParamsWithContext ¶
func NewGetOwnInfoParamsWithContext(ctx context.Context) *GetOwnInfoParams
NewGetOwnInfoParamsWithContext creates a new GetOwnInfoParams object with the ability to set a context for a request.
func NewGetOwnInfoParamsWithHTTPClient ¶
func NewGetOwnInfoParamsWithHTTPClient(client *http.Client) *GetOwnInfoParams
NewGetOwnInfoParamsWithHTTPClient creates a new GetOwnInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetOwnInfoParamsWithTimeout ¶
func NewGetOwnInfoParamsWithTimeout(timeout time.Duration) *GetOwnInfoParams
NewGetOwnInfoParamsWithTimeout creates a new GetOwnInfoParams object with the ability to set a timeout on a request.
func (*GetOwnInfoParams) SetContext ¶
func (o *GetOwnInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get own info params
func (*GetOwnInfoParams) SetDefaults ¶
func (o *GetOwnInfoParams) SetDefaults()
SetDefaults hydrates default values in the get own info params (not the query body).
All values with no default are reset to their zero value.
func (*GetOwnInfoParams) SetHTTPClient ¶
func (o *GetOwnInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get own info params
func (*GetOwnInfoParams) SetTimeout ¶
func (o *GetOwnInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get own info params
func (*GetOwnInfoParams) WithContext ¶
func (o *GetOwnInfoParams) WithContext(ctx context.Context) *GetOwnInfoParams
WithContext adds the context to the get own info params
func (*GetOwnInfoParams) WithDefaults ¶
func (o *GetOwnInfoParams) WithDefaults() *GetOwnInfoParams
WithDefaults hydrates default values in the get own info params (not the query body).
All values with no default are reset to their zero value.
func (*GetOwnInfoParams) WithHTTPClient ¶
func (o *GetOwnInfoParams) WithHTTPClient(client *http.Client) *GetOwnInfoParams
WithHTTPClient adds the HTTPClient to the get own info params
func (*GetOwnInfoParams) WithTimeout ¶
func (o *GetOwnInfoParams) WithTimeout(timeout time.Duration) *GetOwnInfoParams
WithTimeout adds the timeout to the get own info params
func (*GetOwnInfoParams) WriteToRequest ¶
func (o *GetOwnInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOwnInfoReader ¶
type GetOwnInfoReader struct {
// contains filtered or unexported fields
}
GetOwnInfoReader is a Reader for the GetOwnInfo structure.
func (*GetOwnInfoReader) ReadResponse ¶
func (o *GetOwnInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOwnInfoUnauthorized ¶
type GetOwnInfoUnauthorized struct {
}
GetOwnInfoUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetOwnInfoUnauthorized ¶
func NewGetOwnInfoUnauthorized() *GetOwnInfoUnauthorized
NewGetOwnInfoUnauthorized creates a GetOwnInfoUnauthorized with default headers values
func (*GetOwnInfoUnauthorized) Code ¶
func (o *GetOwnInfoUnauthorized) Code() int
Code gets the status code for the get own info unauthorized response
func (*GetOwnInfoUnauthorized) Error ¶
func (o *GetOwnInfoUnauthorized) Error() string
func (*GetOwnInfoUnauthorized) IsClientError ¶
func (o *GetOwnInfoUnauthorized) IsClientError() bool
IsClientError returns true when this get own info unauthorized response has a 4xx status code
func (*GetOwnInfoUnauthorized) IsCode ¶
func (o *GetOwnInfoUnauthorized) IsCode(code int) bool
IsCode returns true when this get own info unauthorized response a status code equal to that given
func (*GetOwnInfoUnauthorized) IsRedirect ¶
func (o *GetOwnInfoUnauthorized) IsRedirect() bool
IsRedirect returns true when this get own info unauthorized response has a 3xx status code
func (*GetOwnInfoUnauthorized) IsServerError ¶
func (o *GetOwnInfoUnauthorized) IsServerError() bool
IsServerError returns true when this get own info unauthorized response has a 5xx status code
func (*GetOwnInfoUnauthorized) IsSuccess ¶
func (o *GetOwnInfoUnauthorized) IsSuccess() bool
IsSuccess returns true when this get own info unauthorized response has a 2xx status code
func (*GetOwnInfoUnauthorized) String ¶
func (o *GetOwnInfoUnauthorized) String() string