authentication

package
v0.0.0-...-355e69c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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