Documentation ¶
Index ¶
- type Client
- type GetWhoamiOK
- type GetWhoamiParams
- func (o *GetWhoamiParams) SetContext(ctx context.Context)
- func (o *GetWhoamiParams) SetHTTPClient(client *http.Client)
- func (o *GetWhoamiParams) SetTimeout(timeout time.Duration)
- func (o *GetWhoamiParams) WithContext(ctx context.Context) *GetWhoamiParams
- func (o *GetWhoamiParams) WithHTTPClient(client *http.Client) *GetWhoamiParams
- func (o *GetWhoamiParams) WithTimeout(timeout time.Duration) *GetWhoamiParams
- func (o *GetWhoamiParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWhoamiReader
- type GetWhoamiUnauthorized
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 authentication API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new authentication API client.
func (*Client) GetWhoami ¶
func (a *Client) GetWhoami(params *GetWhoamiParams, authInfo runtime.ClientAuthInfoWriter) (*GetWhoamiOK, error)
GetWhoami checks the validity of the j w t and echo the user s uid
Check the validity of the JWT and echo the user's uid
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetWhoamiOK ¶
type GetWhoamiOK struct {
Payload *secrets_models.UID
}
GetWhoamiOK handles this case with default header values.
Success
func NewGetWhoamiOK ¶
func NewGetWhoamiOK() *GetWhoamiOK
NewGetWhoamiOK creates a GetWhoamiOK with default headers values
func (*GetWhoamiOK) Error ¶
func (o *GetWhoamiOK) Error() string
type GetWhoamiParams ¶
type GetWhoamiParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWhoamiParams contains all the parameters to send to the API endpoint for the get whoami operation typically these are written to a http.Request
func NewGetWhoamiParams ¶
func NewGetWhoamiParams() *GetWhoamiParams
NewGetWhoamiParams creates a new GetWhoamiParams object with the default values initialized.
func NewGetWhoamiParamsWithContext ¶
func NewGetWhoamiParamsWithContext(ctx context.Context) *GetWhoamiParams
NewGetWhoamiParamsWithContext creates a new GetWhoamiParams object with the default values initialized, and the ability to set a context for a request
func NewGetWhoamiParamsWithHTTPClient ¶
func NewGetWhoamiParamsWithHTTPClient(client *http.Client) *GetWhoamiParams
NewGetWhoamiParamsWithHTTPClient creates a new GetWhoamiParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetWhoamiParamsWithTimeout ¶
func NewGetWhoamiParamsWithTimeout(timeout time.Duration) *GetWhoamiParams
NewGetWhoamiParamsWithTimeout creates a new GetWhoamiParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetWhoamiParams) SetContext ¶
func (o *GetWhoamiParams) SetContext(ctx context.Context)
SetContext adds the context to the get whoami params
func (*GetWhoamiParams) SetHTTPClient ¶
func (o *GetWhoamiParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get whoami params
func (*GetWhoamiParams) SetTimeout ¶
func (o *GetWhoamiParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get whoami params
func (*GetWhoamiParams) WithContext ¶
func (o *GetWhoamiParams) WithContext(ctx context.Context) *GetWhoamiParams
WithContext adds the context to the get whoami params
func (*GetWhoamiParams) WithHTTPClient ¶
func (o *GetWhoamiParams) WithHTTPClient(client *http.Client) *GetWhoamiParams
WithHTTPClient adds the HTTPClient to the get whoami params
func (*GetWhoamiParams) WithTimeout ¶
func (o *GetWhoamiParams) WithTimeout(timeout time.Duration) *GetWhoamiParams
WithTimeout adds the timeout to the get whoami params
func (*GetWhoamiParams) WriteToRequest ¶
func (o *GetWhoamiParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWhoamiReader ¶
type GetWhoamiReader struct {
// contains filtered or unexported fields
}
GetWhoamiReader is a Reader for the GetWhoami structure.
func (*GetWhoamiReader) ReadResponse ¶
func (o *GetWhoamiReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWhoamiUnauthorized ¶
type GetWhoamiUnauthorized struct {
}GetWhoamiUnauthorized handles this case with default header values.
Invalid credentials
func NewGetWhoamiUnauthorized ¶
func NewGetWhoamiUnauthorized() *GetWhoamiUnauthorized
NewGetWhoamiUnauthorized creates a GetWhoamiUnauthorized with default headers values
func (*GetWhoamiUnauthorized) Error ¶
func (o *GetWhoamiUnauthorized) Error() string