auth

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 11 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 auth API

func (*Client) GetAuthValidate

func (a *Client) GetAuthValidate(params *GetAuthValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthValidateOK, error)

GetAuthValidate validates j w t token

Validate a JWT token and return its claims

func (*Client) PostAuthLogout

func (a *Client) PostAuthLogout(params *PostAuthLogoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthLogoutOK, error)

PostAuthLogout logouts invalidate token

Invalidates a JWT token by adding it to the blacklist

func (*Client) PostAuthRefresh

func (a *Client) PostAuthRefresh(params *PostAuthRefreshParams, opts ...ClientOption) (*PostAuthRefreshOK, error)

PostAuthRefresh refreshes access token

Generate a new access token using a valid refresh token

func (*Client) PostAuthToken

func (a *Client) PostAuthToken(params *PostAuthTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthTokenOK, error)

PostAuthToken generates j w t tokens

Generate new JWT access and refresh tokens using API credentials

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetAuthValidate(params *GetAuthValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthValidateOK, error)

	PostAuthLogout(params *PostAuthLogoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthLogoutOK, error)

	PostAuthRefresh(params *PostAuthRefreshParams, opts ...ClientOption) (*PostAuthRefreshOK, error)

	PostAuthToken(params *PostAuthTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthTokenOK, 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 auth API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new auth API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new auth API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetAuthValidateOK

type GetAuthValidateOK struct {
	Payload *models.ValidateResponse
}

GetAuthValidateOK describes a response with status code 200, with default header values.

OK

func NewGetAuthValidateOK

func NewGetAuthValidateOK() *GetAuthValidateOK

NewGetAuthValidateOK creates a GetAuthValidateOK with default headers values

func (*GetAuthValidateOK) Code

func (o *GetAuthValidateOK) Code() int

Code gets the status code for the get auth validate o k response

func (*GetAuthValidateOK) Error

func (o *GetAuthValidateOK) Error() string

func (*GetAuthValidateOK) GetPayload

func (o *GetAuthValidateOK) GetPayload() *models.ValidateResponse

func (*GetAuthValidateOK) IsClientError

func (o *GetAuthValidateOK) IsClientError() bool

IsClientError returns true when this get auth validate o k response has a 4xx status code

func (*GetAuthValidateOK) IsCode

func (o *GetAuthValidateOK) IsCode(code int) bool

IsCode returns true when this get auth validate o k response a status code equal to that given

func (*GetAuthValidateOK) IsRedirect

func (o *GetAuthValidateOK) IsRedirect() bool

IsRedirect returns true when this get auth validate o k response has a 3xx status code

func (*GetAuthValidateOK) IsServerError

func (o *GetAuthValidateOK) IsServerError() bool

IsServerError returns true when this get auth validate o k response has a 5xx status code

func (*GetAuthValidateOK) IsSuccess

func (o *GetAuthValidateOK) IsSuccess() bool

IsSuccess returns true when this get auth validate o k response has a 2xx status code

func (*GetAuthValidateOK) String

func (o *GetAuthValidateOK) String() string

type GetAuthValidateParams

type GetAuthValidateParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAuthValidateParams contains all the parameters to send to the API endpoint

for the get auth validate operation.

Typically these are written to a http.Request.

func NewGetAuthValidateParams

func NewGetAuthValidateParams() *GetAuthValidateParams

NewGetAuthValidateParams creates a new GetAuthValidateParams 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 NewGetAuthValidateParamsWithContext

func NewGetAuthValidateParamsWithContext(ctx context.Context) *GetAuthValidateParams

NewGetAuthValidateParamsWithContext creates a new GetAuthValidateParams object with the ability to set a context for a request.

func NewGetAuthValidateParamsWithHTTPClient

func NewGetAuthValidateParamsWithHTTPClient(client *http.Client) *GetAuthValidateParams

NewGetAuthValidateParamsWithHTTPClient creates a new GetAuthValidateParams object with the ability to set a custom HTTPClient for a request.

func NewGetAuthValidateParamsWithTimeout

func NewGetAuthValidateParamsWithTimeout(timeout time.Duration) *GetAuthValidateParams

NewGetAuthValidateParamsWithTimeout creates a new GetAuthValidateParams object with the ability to set a timeout on a request.

func (*GetAuthValidateParams) SetContext

func (o *GetAuthValidateParams) SetContext(ctx context.Context)

SetContext adds the context to the get auth validate params

func (*GetAuthValidateParams) SetDefaults

func (o *GetAuthValidateParams) SetDefaults()

SetDefaults hydrates default values in the get auth validate params (not the query body).

All values with no default are reset to their zero value.

func (*GetAuthValidateParams) SetHTTPClient

func (o *GetAuthValidateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get auth validate params

func (*GetAuthValidateParams) SetTimeout

func (o *GetAuthValidateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get auth validate params

func (*GetAuthValidateParams) WithContext

WithContext adds the context to the get auth validate params

func (*GetAuthValidateParams) WithDefaults

func (o *GetAuthValidateParams) WithDefaults() *GetAuthValidateParams

WithDefaults hydrates default values in the get auth validate params (not the query body).

All values with no default are reset to their zero value.

func (*GetAuthValidateParams) WithHTTPClient

func (o *GetAuthValidateParams) WithHTTPClient(client *http.Client) *GetAuthValidateParams

WithHTTPClient adds the HTTPClient to the get auth validate params

func (*GetAuthValidateParams) WithTimeout

func (o *GetAuthValidateParams) WithTimeout(timeout time.Duration) *GetAuthValidateParams

WithTimeout adds the timeout to the get auth validate params

func (*GetAuthValidateParams) WriteToRequest

func (o *GetAuthValidateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAuthValidateReader

type GetAuthValidateReader struct {
	// contains filtered or unexported fields
}

GetAuthValidateReader is a Reader for the GetAuthValidate structure.

func (*GetAuthValidateReader) ReadResponse

func (o *GetAuthValidateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAuthValidateUnauthorized

type GetAuthValidateUnauthorized struct {
	Payload *models.ErrorResponse
}

GetAuthValidateUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetAuthValidateUnauthorized

func NewGetAuthValidateUnauthorized() *GetAuthValidateUnauthorized

NewGetAuthValidateUnauthorized creates a GetAuthValidateUnauthorized with default headers values

func (*GetAuthValidateUnauthorized) Code

func (o *GetAuthValidateUnauthorized) Code() int

Code gets the status code for the get auth validate unauthorized response

func (*GetAuthValidateUnauthorized) Error

func (*GetAuthValidateUnauthorized) GetPayload

func (*GetAuthValidateUnauthorized) IsClientError

func (o *GetAuthValidateUnauthorized) IsClientError() bool

IsClientError returns true when this get auth validate unauthorized response has a 4xx status code

func (*GetAuthValidateUnauthorized) IsCode

func (o *GetAuthValidateUnauthorized) IsCode(code int) bool

IsCode returns true when this get auth validate unauthorized response a status code equal to that given

func (*GetAuthValidateUnauthorized) IsRedirect

func (o *GetAuthValidateUnauthorized) IsRedirect() bool

IsRedirect returns true when this get auth validate unauthorized response has a 3xx status code

func (*GetAuthValidateUnauthorized) IsServerError

func (o *GetAuthValidateUnauthorized) IsServerError() bool

IsServerError returns true when this get auth validate unauthorized response has a 5xx status code

func (*GetAuthValidateUnauthorized) IsSuccess

func (o *GetAuthValidateUnauthorized) IsSuccess() bool

IsSuccess returns true when this get auth validate unauthorized response has a 2xx status code

func (*GetAuthValidateUnauthorized) String

func (o *GetAuthValidateUnauthorized) String() string

type PostAuthLogoutOK

type PostAuthLogoutOK struct {
	Payload *models.LogoutResponse
}

PostAuthLogoutOK describes a response with status code 200, with default header values.

OK

func NewPostAuthLogoutOK

func NewPostAuthLogoutOK() *PostAuthLogoutOK

NewPostAuthLogoutOK creates a PostAuthLogoutOK with default headers values

func (*PostAuthLogoutOK) Code

func (o *PostAuthLogoutOK) Code() int

Code gets the status code for the post auth logout o k response

func (*PostAuthLogoutOK) Error

func (o *PostAuthLogoutOK) Error() string

func (*PostAuthLogoutOK) GetPayload

func (o *PostAuthLogoutOK) GetPayload() *models.LogoutResponse

func (*PostAuthLogoutOK) IsClientError

func (o *PostAuthLogoutOK) IsClientError() bool

IsClientError returns true when this post auth logout o k response has a 4xx status code

func (*PostAuthLogoutOK) IsCode

func (o *PostAuthLogoutOK) IsCode(code int) bool

IsCode returns true when this post auth logout o k response a status code equal to that given

func (*PostAuthLogoutOK) IsRedirect

func (o *PostAuthLogoutOK) IsRedirect() bool

IsRedirect returns true when this post auth logout o k response has a 3xx status code

func (*PostAuthLogoutOK) IsServerError

func (o *PostAuthLogoutOK) IsServerError() bool

IsServerError returns true when this post auth logout o k response has a 5xx status code

func (*PostAuthLogoutOK) IsSuccess

func (o *PostAuthLogoutOK) IsSuccess() bool

IsSuccess returns true when this post auth logout o k response has a 2xx status code

func (*PostAuthLogoutOK) String

func (o *PostAuthLogoutOK) String() string

type PostAuthLogoutParams

type PostAuthLogoutParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAuthLogoutParams contains all the parameters to send to the API endpoint

for the post auth logout operation.

Typically these are written to a http.Request.

func NewPostAuthLogoutParams

func NewPostAuthLogoutParams() *PostAuthLogoutParams

NewPostAuthLogoutParams creates a new PostAuthLogoutParams 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 NewPostAuthLogoutParamsWithContext

func NewPostAuthLogoutParamsWithContext(ctx context.Context) *PostAuthLogoutParams

NewPostAuthLogoutParamsWithContext creates a new PostAuthLogoutParams object with the ability to set a context for a request.

func NewPostAuthLogoutParamsWithHTTPClient

func NewPostAuthLogoutParamsWithHTTPClient(client *http.Client) *PostAuthLogoutParams

NewPostAuthLogoutParamsWithHTTPClient creates a new PostAuthLogoutParams object with the ability to set a custom HTTPClient for a request.

func NewPostAuthLogoutParamsWithTimeout

func NewPostAuthLogoutParamsWithTimeout(timeout time.Duration) *PostAuthLogoutParams

NewPostAuthLogoutParamsWithTimeout creates a new PostAuthLogoutParams object with the ability to set a timeout on a request.

func (*PostAuthLogoutParams) SetContext

func (o *PostAuthLogoutParams) SetContext(ctx context.Context)

SetContext adds the context to the post auth logout params

func (*PostAuthLogoutParams) SetDefaults

func (o *PostAuthLogoutParams) SetDefaults()

SetDefaults hydrates default values in the post auth logout params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthLogoutParams) SetHTTPClient

func (o *PostAuthLogoutParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post auth logout params

func (*PostAuthLogoutParams) SetTimeout

func (o *PostAuthLogoutParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post auth logout params

func (*PostAuthLogoutParams) WithContext

WithContext adds the context to the post auth logout params

func (*PostAuthLogoutParams) WithDefaults

func (o *PostAuthLogoutParams) WithDefaults() *PostAuthLogoutParams

WithDefaults hydrates default values in the post auth logout params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthLogoutParams) WithHTTPClient

func (o *PostAuthLogoutParams) WithHTTPClient(client *http.Client) *PostAuthLogoutParams

WithHTTPClient adds the HTTPClient to the post auth logout params

func (*PostAuthLogoutParams) WithTimeout

func (o *PostAuthLogoutParams) WithTimeout(timeout time.Duration) *PostAuthLogoutParams

WithTimeout adds the timeout to the post auth logout params

func (*PostAuthLogoutParams) WriteToRequest

func (o *PostAuthLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostAuthLogoutReader

type PostAuthLogoutReader struct {
	// contains filtered or unexported fields
}

PostAuthLogoutReader is a Reader for the PostAuthLogout structure.

func (*PostAuthLogoutReader) ReadResponse

func (o *PostAuthLogoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostAuthLogoutServiceUnavailable

type PostAuthLogoutServiceUnavailable struct {
	Payload *models.ErrorResponse
}

PostAuthLogoutServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewPostAuthLogoutServiceUnavailable

func NewPostAuthLogoutServiceUnavailable() *PostAuthLogoutServiceUnavailable

NewPostAuthLogoutServiceUnavailable creates a PostAuthLogoutServiceUnavailable with default headers values

func (*PostAuthLogoutServiceUnavailable) Code

Code gets the status code for the post auth logout service unavailable response

func (*PostAuthLogoutServiceUnavailable) Error

func (*PostAuthLogoutServiceUnavailable) GetPayload

func (*PostAuthLogoutServiceUnavailable) IsClientError

func (o *PostAuthLogoutServiceUnavailable) IsClientError() bool

IsClientError returns true when this post auth logout service unavailable response has a 4xx status code

func (*PostAuthLogoutServiceUnavailable) IsCode

func (o *PostAuthLogoutServiceUnavailable) IsCode(code int) bool

IsCode returns true when this post auth logout service unavailable response a status code equal to that given

func (*PostAuthLogoutServiceUnavailable) IsRedirect

func (o *PostAuthLogoutServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this post auth logout service unavailable response has a 3xx status code

func (*PostAuthLogoutServiceUnavailable) IsServerError

func (o *PostAuthLogoutServiceUnavailable) IsServerError() bool

IsServerError returns true when this post auth logout service unavailable response has a 5xx status code

func (*PostAuthLogoutServiceUnavailable) IsSuccess

func (o *PostAuthLogoutServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this post auth logout service unavailable response has a 2xx status code

func (*PostAuthLogoutServiceUnavailable) String

type PostAuthLogoutUnauthorized

type PostAuthLogoutUnauthorized struct {
	Payload *models.ErrorResponse
}

PostAuthLogoutUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostAuthLogoutUnauthorized

func NewPostAuthLogoutUnauthorized() *PostAuthLogoutUnauthorized

NewPostAuthLogoutUnauthorized creates a PostAuthLogoutUnauthorized with default headers values

func (*PostAuthLogoutUnauthorized) Code

func (o *PostAuthLogoutUnauthorized) Code() int

Code gets the status code for the post auth logout unauthorized response

func (*PostAuthLogoutUnauthorized) Error

func (*PostAuthLogoutUnauthorized) GetPayload

func (*PostAuthLogoutUnauthorized) IsClientError

func (o *PostAuthLogoutUnauthorized) IsClientError() bool

IsClientError returns true when this post auth logout unauthorized response has a 4xx status code

func (*PostAuthLogoutUnauthorized) IsCode

func (o *PostAuthLogoutUnauthorized) IsCode(code int) bool

IsCode returns true when this post auth logout unauthorized response a status code equal to that given

func (*PostAuthLogoutUnauthorized) IsRedirect

func (o *PostAuthLogoutUnauthorized) IsRedirect() bool

IsRedirect returns true when this post auth logout unauthorized response has a 3xx status code

func (*PostAuthLogoutUnauthorized) IsServerError

func (o *PostAuthLogoutUnauthorized) IsServerError() bool

IsServerError returns true when this post auth logout unauthorized response has a 5xx status code

func (*PostAuthLogoutUnauthorized) IsSuccess

func (o *PostAuthLogoutUnauthorized) IsSuccess() bool

IsSuccess returns true when this post auth logout unauthorized response has a 2xx status code

func (*PostAuthLogoutUnauthorized) String

func (o *PostAuthLogoutUnauthorized) String() string

type PostAuthRefreshBadRequest

type PostAuthRefreshBadRequest struct {
	Payload *models.ErrorResponse
}

PostAuthRefreshBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostAuthRefreshBadRequest

func NewPostAuthRefreshBadRequest() *PostAuthRefreshBadRequest

NewPostAuthRefreshBadRequest creates a PostAuthRefreshBadRequest with default headers values

func (*PostAuthRefreshBadRequest) Code

func (o *PostAuthRefreshBadRequest) Code() int

Code gets the status code for the post auth refresh bad request response

func (*PostAuthRefreshBadRequest) Error

func (o *PostAuthRefreshBadRequest) Error() string

func (*PostAuthRefreshBadRequest) GetPayload

func (*PostAuthRefreshBadRequest) IsClientError

func (o *PostAuthRefreshBadRequest) IsClientError() bool

IsClientError returns true when this post auth refresh bad request response has a 4xx status code

func (*PostAuthRefreshBadRequest) IsCode

func (o *PostAuthRefreshBadRequest) IsCode(code int) bool

IsCode returns true when this post auth refresh bad request response a status code equal to that given

func (*PostAuthRefreshBadRequest) IsRedirect

func (o *PostAuthRefreshBadRequest) IsRedirect() bool

IsRedirect returns true when this post auth refresh bad request response has a 3xx status code

func (*PostAuthRefreshBadRequest) IsServerError

func (o *PostAuthRefreshBadRequest) IsServerError() bool

IsServerError returns true when this post auth refresh bad request response has a 5xx status code

func (*PostAuthRefreshBadRequest) IsSuccess

func (o *PostAuthRefreshBadRequest) IsSuccess() bool

IsSuccess returns true when this post auth refresh bad request response has a 2xx status code

func (*PostAuthRefreshBadRequest) String

func (o *PostAuthRefreshBadRequest) String() string

type PostAuthRefreshOK

type PostAuthRefreshOK struct {
	Payload *models.TokenResponse
}

PostAuthRefreshOK describes a response with status code 200, with default header values.

OK

func NewPostAuthRefreshOK

func NewPostAuthRefreshOK() *PostAuthRefreshOK

NewPostAuthRefreshOK creates a PostAuthRefreshOK with default headers values

func (*PostAuthRefreshOK) Code

func (o *PostAuthRefreshOK) Code() int

Code gets the status code for the post auth refresh o k response

func (*PostAuthRefreshOK) Error

func (o *PostAuthRefreshOK) Error() string

func (*PostAuthRefreshOK) GetPayload

func (o *PostAuthRefreshOK) GetPayload() *models.TokenResponse

func (*PostAuthRefreshOK) IsClientError

func (o *PostAuthRefreshOK) IsClientError() bool

IsClientError returns true when this post auth refresh o k response has a 4xx status code

func (*PostAuthRefreshOK) IsCode

func (o *PostAuthRefreshOK) IsCode(code int) bool

IsCode returns true when this post auth refresh o k response a status code equal to that given

func (*PostAuthRefreshOK) IsRedirect

func (o *PostAuthRefreshOK) IsRedirect() bool

IsRedirect returns true when this post auth refresh o k response has a 3xx status code

func (*PostAuthRefreshOK) IsServerError

func (o *PostAuthRefreshOK) IsServerError() bool

IsServerError returns true when this post auth refresh o k response has a 5xx status code

func (*PostAuthRefreshOK) IsSuccess

func (o *PostAuthRefreshOK) IsSuccess() bool

IsSuccess returns true when this post auth refresh o k response has a 2xx status code

func (*PostAuthRefreshOK) String

func (o *PostAuthRefreshOK) String() string

type PostAuthRefreshParams

type PostAuthRefreshParams struct {

	/* Request.

	   Refresh request
	*/
	Request *models.RefreshRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAuthRefreshParams contains all the parameters to send to the API endpoint

for the post auth refresh operation.

Typically these are written to a http.Request.

func NewPostAuthRefreshParams

func NewPostAuthRefreshParams() *PostAuthRefreshParams

NewPostAuthRefreshParams creates a new PostAuthRefreshParams 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 NewPostAuthRefreshParamsWithContext

func NewPostAuthRefreshParamsWithContext(ctx context.Context) *PostAuthRefreshParams

NewPostAuthRefreshParamsWithContext creates a new PostAuthRefreshParams object with the ability to set a context for a request.

func NewPostAuthRefreshParamsWithHTTPClient

func NewPostAuthRefreshParamsWithHTTPClient(client *http.Client) *PostAuthRefreshParams

NewPostAuthRefreshParamsWithHTTPClient creates a new PostAuthRefreshParams object with the ability to set a custom HTTPClient for a request.

func NewPostAuthRefreshParamsWithTimeout

func NewPostAuthRefreshParamsWithTimeout(timeout time.Duration) *PostAuthRefreshParams

NewPostAuthRefreshParamsWithTimeout creates a new PostAuthRefreshParams object with the ability to set a timeout on a request.

func (*PostAuthRefreshParams) SetContext

func (o *PostAuthRefreshParams) SetContext(ctx context.Context)

SetContext adds the context to the post auth refresh params

func (*PostAuthRefreshParams) SetDefaults

func (o *PostAuthRefreshParams) SetDefaults()

SetDefaults hydrates default values in the post auth refresh params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthRefreshParams) SetHTTPClient

func (o *PostAuthRefreshParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post auth refresh params

func (*PostAuthRefreshParams) SetRequest

func (o *PostAuthRefreshParams) SetRequest(request *models.RefreshRequest)

SetRequest adds the request to the post auth refresh params

func (*PostAuthRefreshParams) SetTimeout

func (o *PostAuthRefreshParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post auth refresh params

func (*PostAuthRefreshParams) WithContext

WithContext adds the context to the post auth refresh params

func (*PostAuthRefreshParams) WithDefaults

func (o *PostAuthRefreshParams) WithDefaults() *PostAuthRefreshParams

WithDefaults hydrates default values in the post auth refresh params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthRefreshParams) WithHTTPClient

func (o *PostAuthRefreshParams) WithHTTPClient(client *http.Client) *PostAuthRefreshParams

WithHTTPClient adds the HTTPClient to the post auth refresh params

func (*PostAuthRefreshParams) WithRequest

WithRequest adds the request to the post auth refresh params

func (*PostAuthRefreshParams) WithTimeout

func (o *PostAuthRefreshParams) WithTimeout(timeout time.Duration) *PostAuthRefreshParams

WithTimeout adds the timeout to the post auth refresh params

func (*PostAuthRefreshParams) WriteToRequest

func (o *PostAuthRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostAuthRefreshReader

type PostAuthRefreshReader struct {
	// contains filtered or unexported fields
}

PostAuthRefreshReader is a Reader for the PostAuthRefresh structure.

func (*PostAuthRefreshReader) ReadResponse

func (o *PostAuthRefreshReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostAuthRefreshUnauthorized

type PostAuthRefreshUnauthorized struct {
	Payload *models.ErrorResponse
}

PostAuthRefreshUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostAuthRefreshUnauthorized

func NewPostAuthRefreshUnauthorized() *PostAuthRefreshUnauthorized

NewPostAuthRefreshUnauthorized creates a PostAuthRefreshUnauthorized with default headers values

func (*PostAuthRefreshUnauthorized) Code

func (o *PostAuthRefreshUnauthorized) Code() int

Code gets the status code for the post auth refresh unauthorized response

func (*PostAuthRefreshUnauthorized) Error

func (*PostAuthRefreshUnauthorized) GetPayload

func (*PostAuthRefreshUnauthorized) IsClientError

func (o *PostAuthRefreshUnauthorized) IsClientError() bool

IsClientError returns true when this post auth refresh unauthorized response has a 4xx status code

func (*PostAuthRefreshUnauthorized) IsCode

func (o *PostAuthRefreshUnauthorized) IsCode(code int) bool

IsCode returns true when this post auth refresh unauthorized response a status code equal to that given

func (*PostAuthRefreshUnauthorized) IsRedirect

func (o *PostAuthRefreshUnauthorized) IsRedirect() bool

IsRedirect returns true when this post auth refresh unauthorized response has a 3xx status code

func (*PostAuthRefreshUnauthorized) IsServerError

func (o *PostAuthRefreshUnauthorized) IsServerError() bool

IsServerError returns true when this post auth refresh unauthorized response has a 5xx status code

func (*PostAuthRefreshUnauthorized) IsSuccess

func (o *PostAuthRefreshUnauthorized) IsSuccess() bool

IsSuccess returns true when this post auth refresh unauthorized response has a 2xx status code

func (*PostAuthRefreshUnauthorized) String

func (o *PostAuthRefreshUnauthorized) String() string

type PostAuthTokenBadRequest

type PostAuthTokenBadRequest struct {
	Payload *models.ErrorResponse
}

PostAuthTokenBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostAuthTokenBadRequest

func NewPostAuthTokenBadRequest() *PostAuthTokenBadRequest

NewPostAuthTokenBadRequest creates a PostAuthTokenBadRequest with default headers values

func (*PostAuthTokenBadRequest) Code

func (o *PostAuthTokenBadRequest) Code() int

Code gets the status code for the post auth token bad request response

func (*PostAuthTokenBadRequest) Error

func (o *PostAuthTokenBadRequest) Error() string

func (*PostAuthTokenBadRequest) GetPayload

func (o *PostAuthTokenBadRequest) GetPayload() *models.ErrorResponse

func (*PostAuthTokenBadRequest) IsClientError

func (o *PostAuthTokenBadRequest) IsClientError() bool

IsClientError returns true when this post auth token bad request response has a 4xx status code

func (*PostAuthTokenBadRequest) IsCode

func (o *PostAuthTokenBadRequest) IsCode(code int) bool

IsCode returns true when this post auth token bad request response a status code equal to that given

func (*PostAuthTokenBadRequest) IsRedirect

func (o *PostAuthTokenBadRequest) IsRedirect() bool

IsRedirect returns true when this post auth token bad request response has a 3xx status code

func (*PostAuthTokenBadRequest) IsServerError

func (o *PostAuthTokenBadRequest) IsServerError() bool

IsServerError returns true when this post auth token bad request response has a 5xx status code

func (*PostAuthTokenBadRequest) IsSuccess

func (o *PostAuthTokenBadRequest) IsSuccess() bool

IsSuccess returns true when this post auth token bad request response has a 2xx status code

func (*PostAuthTokenBadRequest) String

func (o *PostAuthTokenBadRequest) String() string

type PostAuthTokenOK

type PostAuthTokenOK struct {
	Payload *models.TokenResponse
}

PostAuthTokenOK describes a response with status code 200, with default header values.

OK

func NewPostAuthTokenOK

func NewPostAuthTokenOK() *PostAuthTokenOK

NewPostAuthTokenOK creates a PostAuthTokenOK with default headers values

func (*PostAuthTokenOK) Code

func (o *PostAuthTokenOK) Code() int

Code gets the status code for the post auth token o k response

func (*PostAuthTokenOK) Error

func (o *PostAuthTokenOK) Error() string

func (*PostAuthTokenOK) GetPayload

func (o *PostAuthTokenOK) GetPayload() *models.TokenResponse

func (*PostAuthTokenOK) IsClientError

func (o *PostAuthTokenOK) IsClientError() bool

IsClientError returns true when this post auth token o k response has a 4xx status code

func (*PostAuthTokenOK) IsCode

func (o *PostAuthTokenOK) IsCode(code int) bool

IsCode returns true when this post auth token o k response a status code equal to that given

func (*PostAuthTokenOK) IsRedirect

func (o *PostAuthTokenOK) IsRedirect() bool

IsRedirect returns true when this post auth token o k response has a 3xx status code

func (*PostAuthTokenOK) IsServerError

func (o *PostAuthTokenOK) IsServerError() bool

IsServerError returns true when this post auth token o k response has a 5xx status code

func (*PostAuthTokenOK) IsSuccess

func (o *PostAuthTokenOK) IsSuccess() bool

IsSuccess returns true when this post auth token o k response has a 2xx status code

func (*PostAuthTokenOK) String

func (o *PostAuthTokenOK) String() string

type PostAuthTokenParams

type PostAuthTokenParams struct {

	/* Request.

	   Token request
	*/
	Request *models.TokenRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAuthTokenParams contains all the parameters to send to the API endpoint

for the post auth token operation.

Typically these are written to a http.Request.

func NewPostAuthTokenParams

func NewPostAuthTokenParams() *PostAuthTokenParams

NewPostAuthTokenParams creates a new PostAuthTokenParams 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 NewPostAuthTokenParamsWithContext

func NewPostAuthTokenParamsWithContext(ctx context.Context) *PostAuthTokenParams

NewPostAuthTokenParamsWithContext creates a new PostAuthTokenParams object with the ability to set a context for a request.

func NewPostAuthTokenParamsWithHTTPClient

func NewPostAuthTokenParamsWithHTTPClient(client *http.Client) *PostAuthTokenParams

NewPostAuthTokenParamsWithHTTPClient creates a new PostAuthTokenParams object with the ability to set a custom HTTPClient for a request.

func NewPostAuthTokenParamsWithTimeout

func NewPostAuthTokenParamsWithTimeout(timeout time.Duration) *PostAuthTokenParams

NewPostAuthTokenParamsWithTimeout creates a new PostAuthTokenParams object with the ability to set a timeout on a request.

func (*PostAuthTokenParams) SetContext

func (o *PostAuthTokenParams) SetContext(ctx context.Context)

SetContext adds the context to the post auth token params

func (*PostAuthTokenParams) SetDefaults

func (o *PostAuthTokenParams) SetDefaults()

SetDefaults hydrates default values in the post auth token params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthTokenParams) SetHTTPClient

func (o *PostAuthTokenParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post auth token params

func (*PostAuthTokenParams) SetRequest

func (o *PostAuthTokenParams) SetRequest(request *models.TokenRequest)

SetRequest adds the request to the post auth token params

func (*PostAuthTokenParams) SetTimeout

func (o *PostAuthTokenParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post auth token params

func (*PostAuthTokenParams) WithContext

WithContext adds the context to the post auth token params

func (*PostAuthTokenParams) WithDefaults

func (o *PostAuthTokenParams) WithDefaults() *PostAuthTokenParams

WithDefaults hydrates default values in the post auth token params (not the query body).

All values with no default are reset to their zero value.

func (*PostAuthTokenParams) WithHTTPClient

func (o *PostAuthTokenParams) WithHTTPClient(client *http.Client) *PostAuthTokenParams

WithHTTPClient adds the HTTPClient to the post auth token params

func (*PostAuthTokenParams) WithRequest

func (o *PostAuthTokenParams) WithRequest(request *models.TokenRequest) *PostAuthTokenParams

WithRequest adds the request to the post auth token params

func (*PostAuthTokenParams) WithTimeout

func (o *PostAuthTokenParams) WithTimeout(timeout time.Duration) *PostAuthTokenParams

WithTimeout adds the timeout to the post auth token params

func (*PostAuthTokenParams) WriteToRequest

func (o *PostAuthTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostAuthTokenReader

type PostAuthTokenReader struct {
	// contains filtered or unexported fields
}

PostAuthTokenReader is a Reader for the PostAuthToken structure.

func (*PostAuthTokenReader) ReadResponse

func (o *PostAuthTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostAuthTokenUnauthorized

type PostAuthTokenUnauthorized struct {
	Payload *models.ErrorResponse
}

PostAuthTokenUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostAuthTokenUnauthorized

func NewPostAuthTokenUnauthorized() *PostAuthTokenUnauthorized

NewPostAuthTokenUnauthorized creates a PostAuthTokenUnauthorized with default headers values

func (*PostAuthTokenUnauthorized) Code

func (o *PostAuthTokenUnauthorized) Code() int

Code gets the status code for the post auth token unauthorized response

func (*PostAuthTokenUnauthorized) Error

func (o *PostAuthTokenUnauthorized) Error() string

func (*PostAuthTokenUnauthorized) GetPayload

func (*PostAuthTokenUnauthorized) IsClientError

func (o *PostAuthTokenUnauthorized) IsClientError() bool

IsClientError returns true when this post auth token unauthorized response has a 4xx status code

func (*PostAuthTokenUnauthorized) IsCode

func (o *PostAuthTokenUnauthorized) IsCode(code int) bool

IsCode returns true when this post auth token unauthorized response a status code equal to that given

func (*PostAuthTokenUnauthorized) IsRedirect

func (o *PostAuthTokenUnauthorized) IsRedirect() bool

IsRedirect returns true when this post auth token unauthorized response has a 3xx status code

func (*PostAuthTokenUnauthorized) IsServerError

func (o *PostAuthTokenUnauthorized) IsServerError() bool

IsServerError returns true when this post auth token unauthorized response has a 5xx status code

func (*PostAuthTokenUnauthorized) IsSuccess

func (o *PostAuthTokenUnauthorized) IsSuccess() bool

IsSuccess returns true when this post auth token unauthorized response has a 2xx status code

func (*PostAuthTokenUnauthorized) String

func (o *PostAuthTokenUnauthorized) String() string

Jump to

Keyboard shortcuts

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