authentication

package
v0.0.0-...-7426b64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 10 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 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 {
	Payload *secrets_models.Message
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL