Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, *CreateTokenCreated, error)
- func (a *Client) InvalidateRefreshToken(params *InvalidateRefreshTokenParams, opts ...ClientOption) (*InvalidateRefreshTokenNoContent, error)
- func (a *Client) RefreshAccessToken(params *RefreshAccessTokenParams, opts ...ClientOption) (*RefreshAccessTokenOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateTokenBadRequest
- func (o *CreateTokenBadRequest) Error() string
- func (o *CreateTokenBadRequest) GetPayload() *models.Error
- func (o *CreateTokenBadRequest) IsClientError() bool
- func (o *CreateTokenBadRequest) IsCode(code int) bool
- func (o *CreateTokenBadRequest) IsRedirect() bool
- func (o *CreateTokenBadRequest) IsServerError() bool
- func (o *CreateTokenBadRequest) IsSuccess() bool
- func (o *CreateTokenBadRequest) String() string
- type CreateTokenCreated
- func (o *CreateTokenCreated) Error() string
- func (o *CreateTokenCreated) GetPayload() *models.TokenPair
- func (o *CreateTokenCreated) IsClientError() bool
- func (o *CreateTokenCreated) IsCode(code int) bool
- func (o *CreateTokenCreated) IsRedirect() bool
- func (o *CreateTokenCreated) IsServerError() bool
- func (o *CreateTokenCreated) IsSuccess() bool
- func (o *CreateTokenCreated) String() string
- type CreateTokenInternalServerError
- func (o *CreateTokenInternalServerError) Error() string
- func (o *CreateTokenInternalServerError) GetPayload() *models.Error
- func (o *CreateTokenInternalServerError) IsClientError() bool
- func (o *CreateTokenInternalServerError) IsCode(code int) bool
- func (o *CreateTokenInternalServerError) IsRedirect() bool
- func (o *CreateTokenInternalServerError) IsServerError() bool
- func (o *CreateTokenInternalServerError) IsSuccess() bool
- func (o *CreateTokenInternalServerError) String() string
- type CreateTokenOK
- func (o *CreateTokenOK) Error() string
- func (o *CreateTokenOK) GetPayload() *models.TokenPair
- func (o *CreateTokenOK) IsClientError() bool
- func (o *CreateTokenOK) IsCode(code int) bool
- func (o *CreateTokenOK) IsRedirect() bool
- func (o *CreateTokenOK) IsServerError() bool
- func (o *CreateTokenOK) IsSuccess() bool
- func (o *CreateTokenOK) String() string
- type CreateTokenParams
- func (o *CreateTokenParams) SetContext(ctx context.Context)
- func (o *CreateTokenParams) SetDefaults()
- func (o *CreateTokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateTokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateTokenParams) SetTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec)
- func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams
- func (o *CreateTokenParams) WithDefaults() *CreateTokenParams
- func (o *CreateTokenParams) WithHTTPClient(client *http.Client) *CreateTokenParams
- func (o *CreateTokenParams) WithTimeout(timeout time.Duration) *CreateTokenParams
- func (o *CreateTokenParams) WithTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec) *CreateTokenParams
- func (o *CreateTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTokenReader
- type InvalidateRefreshTokenNoContent
- func (o *InvalidateRefreshTokenNoContent) Error() string
- func (o *InvalidateRefreshTokenNoContent) IsClientError() bool
- func (o *InvalidateRefreshTokenNoContent) IsCode(code int) bool
- func (o *InvalidateRefreshTokenNoContent) IsRedirect() bool
- func (o *InvalidateRefreshTokenNoContent) IsServerError() bool
- func (o *InvalidateRefreshTokenNoContent) IsSuccess() bool
- func (o *InvalidateRefreshTokenNoContent) String() string
- type InvalidateRefreshTokenParams
- func NewInvalidateRefreshTokenParams() *InvalidateRefreshTokenParams
- func NewInvalidateRefreshTokenParamsWithContext(ctx context.Context) *InvalidateRefreshTokenParams
- func NewInvalidateRefreshTokenParamsWithHTTPClient(client *http.Client) *InvalidateRefreshTokenParams
- func NewInvalidateRefreshTokenParamsWithTimeout(timeout time.Duration) *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) SetContext(ctx context.Context)
- func (o *InvalidateRefreshTokenParams) SetDefaults()
- func (o *InvalidateRefreshTokenParams) SetHTTPClient(client *http.Client)
- func (o *InvalidateRefreshTokenParams) SetRefreshToken(refreshToken string)
- func (o *InvalidateRefreshTokenParams) SetTimeout(timeout time.Duration)
- func (o *InvalidateRefreshTokenParams) WithContext(ctx context.Context) *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) WithDefaults() *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) WithHTTPClient(client *http.Client) *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) WithRefreshToken(refreshToken string) *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) WithTimeout(timeout time.Duration) *InvalidateRefreshTokenParams
- func (o *InvalidateRefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InvalidateRefreshTokenReader
- type RefreshAccessTokenBadRequest
- func (o *RefreshAccessTokenBadRequest) Error() string
- func (o *RefreshAccessTokenBadRequest) GetPayload() *models.Error
- func (o *RefreshAccessTokenBadRequest) IsClientError() bool
- func (o *RefreshAccessTokenBadRequest) IsCode(code int) bool
- func (o *RefreshAccessTokenBadRequest) IsRedirect() bool
- func (o *RefreshAccessTokenBadRequest) IsServerError() bool
- func (o *RefreshAccessTokenBadRequest) IsSuccess() bool
- func (o *RefreshAccessTokenBadRequest) String() string
- type RefreshAccessTokenInternalServerError
- func (o *RefreshAccessTokenInternalServerError) Error() string
- func (o *RefreshAccessTokenInternalServerError) GetPayload() *models.Error
- func (o *RefreshAccessTokenInternalServerError) IsClientError() bool
- func (o *RefreshAccessTokenInternalServerError) IsCode(code int) bool
- func (o *RefreshAccessTokenInternalServerError) IsRedirect() bool
- func (o *RefreshAccessTokenInternalServerError) IsServerError() bool
- func (o *RefreshAccessTokenInternalServerError) IsSuccess() bool
- func (o *RefreshAccessTokenInternalServerError) String() string
- type RefreshAccessTokenNotFound
- func (o *RefreshAccessTokenNotFound) Error() string
- func (o *RefreshAccessTokenNotFound) GetPayload() *models.Error
- func (o *RefreshAccessTokenNotFound) IsClientError() bool
- func (o *RefreshAccessTokenNotFound) IsCode(code int) bool
- func (o *RefreshAccessTokenNotFound) IsRedirect() bool
- func (o *RefreshAccessTokenNotFound) IsServerError() bool
- func (o *RefreshAccessTokenNotFound) IsSuccess() bool
- func (o *RefreshAccessTokenNotFound) String() string
- type RefreshAccessTokenOK
- func (o *RefreshAccessTokenOK) Error() string
- func (o *RefreshAccessTokenOK) GetPayload() string
- func (o *RefreshAccessTokenOK) IsClientError() bool
- func (o *RefreshAccessTokenOK) IsCode(code int) bool
- func (o *RefreshAccessTokenOK) IsRedirect() bool
- func (o *RefreshAccessTokenOK) IsServerError() bool
- func (o *RefreshAccessTokenOK) IsSuccess() bool
- func (o *RefreshAccessTokenOK) String() string
- type RefreshAccessTokenParams
- func NewRefreshAccessTokenParams() *RefreshAccessTokenParams
- func NewRefreshAccessTokenParamsWithContext(ctx context.Context) *RefreshAccessTokenParams
- func NewRefreshAccessTokenParamsWithHTTPClient(client *http.Client) *RefreshAccessTokenParams
- func NewRefreshAccessTokenParamsWithTimeout(timeout time.Duration) *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) SetContext(ctx context.Context)
- func (o *RefreshAccessTokenParams) SetDefaults()
- func (o *RefreshAccessTokenParams) SetHTTPClient(client *http.Client)
- func (o *RefreshAccessTokenParams) SetRefreshToken(refreshToken string)
- func (o *RefreshAccessTokenParams) SetTimeout(timeout time.Duration)
- func (o *RefreshAccessTokenParams) WithContext(ctx context.Context) *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) WithDefaults() *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) WithHTTPClient(client *http.Client) *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) WithRefreshToken(refreshToken string) *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) WithTimeout(timeout time.Duration) *RefreshAccessTokenParams
- func (o *RefreshAccessTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RefreshAccessTokenReader
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 tokens API
func (*Client) CreateToken ¶
func (a *Client) CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, *CreateTokenCreated, error)
CreateToken creates token pair
Creates access token and refresh token for user access
func (*Client) InvalidateRefreshToken ¶
func (a *Client) InvalidateRefreshToken(params *InvalidateRefreshTokenParams, opts ...ClientOption) (*InvalidateRefreshTokenNoContent, error)
InvalidateRefreshToken invalidates refresh token
Invalidate the provided refresh token
func (*Client) RefreshAccessToken ¶
func (a *Client) RefreshAccessToken(params *RefreshAccessTokenParams, opts ...ClientOption) (*RefreshAccessTokenOK, error)
RefreshAccessToken refreshes access token
Refresh the access token associated with the given refresh token
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 { CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, *CreateTokenCreated, error) InvalidateRefreshToken(params *InvalidateRefreshTokenParams, opts ...ClientOption) (*InvalidateRefreshTokenNoContent, error) RefreshAccessToken(params *RefreshAccessTokenParams, opts ...ClientOption) (*RefreshAccessTokenOK, 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 tokens API client.
type CreateTokenBadRequest ¶
CreateTokenBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateTokenBadRequest ¶
func NewCreateTokenBadRequest() *CreateTokenBadRequest
NewCreateTokenBadRequest creates a CreateTokenBadRequest with default headers values
func (*CreateTokenBadRequest) Error ¶
func (o *CreateTokenBadRequest) Error() string
func (*CreateTokenBadRequest) GetPayload ¶
func (o *CreateTokenBadRequest) GetPayload() *models.Error
func (*CreateTokenBadRequest) IsClientError ¶
func (o *CreateTokenBadRequest) IsClientError() bool
IsClientError returns true when this create token bad request response has a 4xx status code
func (*CreateTokenBadRequest) IsCode ¶
func (o *CreateTokenBadRequest) IsCode(code int) bool
IsCode returns true when this create token bad request response a status code equal to that given
func (*CreateTokenBadRequest) IsRedirect ¶
func (o *CreateTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this create token bad request response has a 3xx status code
func (*CreateTokenBadRequest) IsServerError ¶
func (o *CreateTokenBadRequest) IsServerError() bool
IsServerError returns true when this create token bad request response has a 5xx status code
func (*CreateTokenBadRequest) IsSuccess ¶
func (o *CreateTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this create token bad request response has a 2xx status code
func (*CreateTokenBadRequest) String ¶
func (o *CreateTokenBadRequest) String() string
type CreateTokenCreated ¶
CreateTokenCreated describes a response with status code 201, with default header values.
Created
func NewCreateTokenCreated ¶
func NewCreateTokenCreated() *CreateTokenCreated
NewCreateTokenCreated creates a CreateTokenCreated with default headers values
func (*CreateTokenCreated) Error ¶
func (o *CreateTokenCreated) Error() string
func (*CreateTokenCreated) GetPayload ¶
func (o *CreateTokenCreated) GetPayload() *models.TokenPair
func (*CreateTokenCreated) IsClientError ¶
func (o *CreateTokenCreated) IsClientError() bool
IsClientError returns true when this create token created response has a 4xx status code
func (*CreateTokenCreated) IsCode ¶
func (o *CreateTokenCreated) IsCode(code int) bool
IsCode returns true when this create token created response a status code equal to that given
func (*CreateTokenCreated) IsRedirect ¶
func (o *CreateTokenCreated) IsRedirect() bool
IsRedirect returns true when this create token created response has a 3xx status code
func (*CreateTokenCreated) IsServerError ¶
func (o *CreateTokenCreated) IsServerError() bool
IsServerError returns true when this create token created response has a 5xx status code
func (*CreateTokenCreated) IsSuccess ¶
func (o *CreateTokenCreated) IsSuccess() bool
IsSuccess returns true when this create token created response has a 2xx status code
func (*CreateTokenCreated) String ¶
func (o *CreateTokenCreated) String() string
type CreateTokenInternalServerError ¶
CreateTokenInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewCreateTokenInternalServerError ¶
func NewCreateTokenInternalServerError() *CreateTokenInternalServerError
NewCreateTokenInternalServerError creates a CreateTokenInternalServerError with default headers values
func (*CreateTokenInternalServerError) Error ¶
func (o *CreateTokenInternalServerError) Error() string
func (*CreateTokenInternalServerError) GetPayload ¶
func (o *CreateTokenInternalServerError) GetPayload() *models.Error
func (*CreateTokenInternalServerError) IsClientError ¶
func (o *CreateTokenInternalServerError) IsClientError() bool
IsClientError returns true when this create token internal server error response has a 4xx status code
func (*CreateTokenInternalServerError) IsCode ¶
func (o *CreateTokenInternalServerError) IsCode(code int) bool
IsCode returns true when this create token internal server error response a status code equal to that given
func (*CreateTokenInternalServerError) IsRedirect ¶
func (o *CreateTokenInternalServerError) IsRedirect() bool
IsRedirect returns true when this create token internal server error response has a 3xx status code
func (*CreateTokenInternalServerError) IsServerError ¶
func (o *CreateTokenInternalServerError) IsServerError() bool
IsServerError returns true when this create token internal server error response has a 5xx status code
func (*CreateTokenInternalServerError) IsSuccess ¶
func (o *CreateTokenInternalServerError) IsSuccess() bool
IsSuccess returns true when this create token internal server error response has a 2xx status code
func (*CreateTokenInternalServerError) String ¶
func (o *CreateTokenInternalServerError) String() string
type CreateTokenOK ¶
CreateTokenOK describes a response with status code 200, with default header values.
OK
func NewCreateTokenOK ¶
func NewCreateTokenOK() *CreateTokenOK
NewCreateTokenOK creates a CreateTokenOK with default headers values
func (*CreateTokenOK) Error ¶
func (o *CreateTokenOK) Error() string
func (*CreateTokenOK) GetPayload ¶
func (o *CreateTokenOK) GetPayload() *models.TokenPair
func (*CreateTokenOK) IsClientError ¶
func (o *CreateTokenOK) IsClientError() bool
IsClientError returns true when this create token o k response has a 4xx status code
func (*CreateTokenOK) IsCode ¶
func (o *CreateTokenOK) IsCode(code int) bool
IsCode returns true when this create token o k response a status code equal to that given
func (*CreateTokenOK) IsRedirect ¶
func (o *CreateTokenOK) IsRedirect() bool
IsRedirect returns true when this create token o k response has a 3xx status code
func (*CreateTokenOK) IsServerError ¶
func (o *CreateTokenOK) IsServerError() bool
IsServerError returns true when this create token o k response has a 5xx status code
func (*CreateTokenOK) IsSuccess ¶
func (o *CreateTokenOK) IsSuccess() bool
IsSuccess returns true when this create token o k response has a 2xx status code
func (*CreateTokenOK) String ¶
func (o *CreateTokenOK) String() string
type CreateTokenParams ¶
type CreateTokenParams struct { /* TokenCreationSpec. The spec used to sign the token */ TokenCreationSpec *models.TokenCreationSpec Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateTokenParams contains all the parameters to send to the API endpoint
for the create token operation. Typically these are written to a http.Request.
func NewCreateTokenParams ¶
func NewCreateTokenParams() *CreateTokenParams
NewCreateTokenParams creates a new CreateTokenParams 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 NewCreateTokenParamsWithContext ¶
func NewCreateTokenParamsWithContext(ctx context.Context) *CreateTokenParams
NewCreateTokenParamsWithContext creates a new CreateTokenParams object with the ability to set a context for a request.
func NewCreateTokenParamsWithHTTPClient ¶
func NewCreateTokenParamsWithHTTPClient(client *http.Client) *CreateTokenParams
NewCreateTokenParamsWithHTTPClient creates a new CreateTokenParams object with the ability to set a custom HTTPClient for a request.
func NewCreateTokenParamsWithTimeout ¶
func NewCreateTokenParamsWithTimeout(timeout time.Duration) *CreateTokenParams
NewCreateTokenParamsWithTimeout creates a new CreateTokenParams object with the ability to set a timeout on a request.
func (*CreateTokenParams) SetContext ¶
func (o *CreateTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the create token params
func (*CreateTokenParams) SetDefaults ¶
func (o *CreateTokenParams) SetDefaults()
SetDefaults hydrates default values in the create token params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTokenParams) SetHTTPClient ¶
func (o *CreateTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create token params
func (*CreateTokenParams) SetTimeout ¶
func (o *CreateTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create token params
func (*CreateTokenParams) SetTokenCreationSpec ¶
func (o *CreateTokenParams) SetTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec)
SetTokenCreationSpec adds the tokenCreationSpec to the create token params
func (*CreateTokenParams) WithContext ¶
func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams
WithContext adds the context to the create token params
func (*CreateTokenParams) WithDefaults ¶
func (o *CreateTokenParams) WithDefaults() *CreateTokenParams
WithDefaults hydrates default values in the create token params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTokenParams) WithHTTPClient ¶
func (o *CreateTokenParams) WithHTTPClient(client *http.Client) *CreateTokenParams
WithHTTPClient adds the HTTPClient to the create token params
func (*CreateTokenParams) WithTimeout ¶
func (o *CreateTokenParams) WithTimeout(timeout time.Duration) *CreateTokenParams
WithTimeout adds the timeout to the create token params
func (*CreateTokenParams) WithTokenCreationSpec ¶
func (o *CreateTokenParams) WithTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec) *CreateTokenParams
WithTokenCreationSpec adds the tokenCreationSpec to the create token params
func (*CreateTokenParams) WriteToRequest ¶
func (o *CreateTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateTokenReader ¶
type CreateTokenReader struct {
// contains filtered or unexported fields
}
CreateTokenReader is a Reader for the CreateToken structure.
func (*CreateTokenReader) ReadResponse ¶
func (o *CreateTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InvalidateRefreshTokenNoContent ¶
type InvalidateRefreshTokenNoContent struct { }
InvalidateRefreshTokenNoContent describes a response with status code 204, with default header values.
No content
func NewInvalidateRefreshTokenNoContent ¶
func NewInvalidateRefreshTokenNoContent() *InvalidateRefreshTokenNoContent
NewInvalidateRefreshTokenNoContent creates a InvalidateRefreshTokenNoContent with default headers values
func (*InvalidateRefreshTokenNoContent) Error ¶
func (o *InvalidateRefreshTokenNoContent) Error() string
func (*InvalidateRefreshTokenNoContent) IsClientError ¶
func (o *InvalidateRefreshTokenNoContent) IsClientError() bool
IsClientError returns true when this invalidate refresh token no content response has a 4xx status code
func (*InvalidateRefreshTokenNoContent) IsCode ¶
func (o *InvalidateRefreshTokenNoContent) IsCode(code int) bool
IsCode returns true when this invalidate refresh token no content response a status code equal to that given
func (*InvalidateRefreshTokenNoContent) IsRedirect ¶
func (o *InvalidateRefreshTokenNoContent) IsRedirect() bool
IsRedirect returns true when this invalidate refresh token no content response has a 3xx status code
func (*InvalidateRefreshTokenNoContent) IsServerError ¶
func (o *InvalidateRefreshTokenNoContent) IsServerError() bool
IsServerError returns true when this invalidate refresh token no content response has a 5xx status code
func (*InvalidateRefreshTokenNoContent) IsSuccess ¶
func (o *InvalidateRefreshTokenNoContent) IsSuccess() bool
IsSuccess returns true when this invalidate refresh token no content response has a 2xx status code
func (*InvalidateRefreshTokenNoContent) String ¶
func (o *InvalidateRefreshTokenNoContent) String() string
type InvalidateRefreshTokenParams ¶
type InvalidateRefreshTokenParams struct { /* RefreshToken. ID of the refresh token */ RefreshToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InvalidateRefreshTokenParams contains all the parameters to send to the API endpoint
for the invalidate refresh token operation. Typically these are written to a http.Request.
func NewInvalidateRefreshTokenParams ¶
func NewInvalidateRefreshTokenParams() *InvalidateRefreshTokenParams
NewInvalidateRefreshTokenParams creates a new InvalidateRefreshTokenParams 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 NewInvalidateRefreshTokenParamsWithContext ¶
func NewInvalidateRefreshTokenParamsWithContext(ctx context.Context) *InvalidateRefreshTokenParams
NewInvalidateRefreshTokenParamsWithContext creates a new InvalidateRefreshTokenParams object with the ability to set a context for a request.
func NewInvalidateRefreshTokenParamsWithHTTPClient ¶
func NewInvalidateRefreshTokenParamsWithHTTPClient(client *http.Client) *InvalidateRefreshTokenParams
NewInvalidateRefreshTokenParamsWithHTTPClient creates a new InvalidateRefreshTokenParams object with the ability to set a custom HTTPClient for a request.
func NewInvalidateRefreshTokenParamsWithTimeout ¶
func NewInvalidateRefreshTokenParamsWithTimeout(timeout time.Duration) *InvalidateRefreshTokenParams
NewInvalidateRefreshTokenParamsWithTimeout creates a new InvalidateRefreshTokenParams object with the ability to set a timeout on a request.
func (*InvalidateRefreshTokenParams) SetContext ¶
func (o *InvalidateRefreshTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) SetDefaults ¶
func (o *InvalidateRefreshTokenParams) SetDefaults()
SetDefaults hydrates default values in the invalidate refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*InvalidateRefreshTokenParams) SetHTTPClient ¶
func (o *InvalidateRefreshTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) SetRefreshToken ¶
func (o *InvalidateRefreshTokenParams) SetRefreshToken(refreshToken string)
SetRefreshToken adds the refreshToken to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) SetTimeout ¶
func (o *InvalidateRefreshTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) WithContext ¶
func (o *InvalidateRefreshTokenParams) WithContext(ctx context.Context) *InvalidateRefreshTokenParams
WithContext adds the context to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) WithDefaults ¶
func (o *InvalidateRefreshTokenParams) WithDefaults() *InvalidateRefreshTokenParams
WithDefaults hydrates default values in the invalidate refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*InvalidateRefreshTokenParams) WithHTTPClient ¶
func (o *InvalidateRefreshTokenParams) WithHTTPClient(client *http.Client) *InvalidateRefreshTokenParams
WithHTTPClient adds the HTTPClient to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) WithRefreshToken ¶
func (o *InvalidateRefreshTokenParams) WithRefreshToken(refreshToken string) *InvalidateRefreshTokenParams
WithRefreshToken adds the refreshToken to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) WithTimeout ¶
func (o *InvalidateRefreshTokenParams) WithTimeout(timeout time.Duration) *InvalidateRefreshTokenParams
WithTimeout adds the timeout to the invalidate refresh token params
func (*InvalidateRefreshTokenParams) WriteToRequest ¶
func (o *InvalidateRefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InvalidateRefreshTokenReader ¶
type InvalidateRefreshTokenReader struct {
// contains filtered or unexported fields
}
InvalidateRefreshTokenReader is a Reader for the InvalidateRefreshToken structure.
func (*InvalidateRefreshTokenReader) ReadResponse ¶
func (o *InvalidateRefreshTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RefreshAccessTokenBadRequest ¶
RefreshAccessTokenBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewRefreshAccessTokenBadRequest ¶
func NewRefreshAccessTokenBadRequest() *RefreshAccessTokenBadRequest
NewRefreshAccessTokenBadRequest creates a RefreshAccessTokenBadRequest with default headers values
func (*RefreshAccessTokenBadRequest) Error ¶
func (o *RefreshAccessTokenBadRequest) Error() string
func (*RefreshAccessTokenBadRequest) GetPayload ¶
func (o *RefreshAccessTokenBadRequest) GetPayload() *models.Error
func (*RefreshAccessTokenBadRequest) IsClientError ¶
func (o *RefreshAccessTokenBadRequest) IsClientError() bool
IsClientError returns true when this refresh access token bad request response has a 4xx status code
func (*RefreshAccessTokenBadRequest) IsCode ¶
func (o *RefreshAccessTokenBadRequest) IsCode(code int) bool
IsCode returns true when this refresh access token bad request response a status code equal to that given
func (*RefreshAccessTokenBadRequest) IsRedirect ¶
func (o *RefreshAccessTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this refresh access token bad request response has a 3xx status code
func (*RefreshAccessTokenBadRequest) IsServerError ¶
func (o *RefreshAccessTokenBadRequest) IsServerError() bool
IsServerError returns true when this refresh access token bad request response has a 5xx status code
func (*RefreshAccessTokenBadRequest) IsSuccess ¶
func (o *RefreshAccessTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this refresh access token bad request response has a 2xx status code
func (*RefreshAccessTokenBadRequest) String ¶
func (o *RefreshAccessTokenBadRequest) String() string
type RefreshAccessTokenInternalServerError ¶
RefreshAccessTokenInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewRefreshAccessTokenInternalServerError ¶
func NewRefreshAccessTokenInternalServerError() *RefreshAccessTokenInternalServerError
NewRefreshAccessTokenInternalServerError creates a RefreshAccessTokenInternalServerError with default headers values
func (*RefreshAccessTokenInternalServerError) Error ¶
func (o *RefreshAccessTokenInternalServerError) Error() string
func (*RefreshAccessTokenInternalServerError) GetPayload ¶
func (o *RefreshAccessTokenInternalServerError) GetPayload() *models.Error
func (*RefreshAccessTokenInternalServerError) IsClientError ¶
func (o *RefreshAccessTokenInternalServerError) IsClientError() bool
IsClientError returns true when this refresh access token internal server error response has a 4xx status code
func (*RefreshAccessTokenInternalServerError) IsCode ¶
func (o *RefreshAccessTokenInternalServerError) IsCode(code int) bool
IsCode returns true when this refresh access token internal server error response a status code equal to that given
func (*RefreshAccessTokenInternalServerError) IsRedirect ¶
func (o *RefreshAccessTokenInternalServerError) IsRedirect() bool
IsRedirect returns true when this refresh access token internal server error response has a 3xx status code
func (*RefreshAccessTokenInternalServerError) IsServerError ¶
func (o *RefreshAccessTokenInternalServerError) IsServerError() bool
IsServerError returns true when this refresh access token internal server error response has a 5xx status code
func (*RefreshAccessTokenInternalServerError) IsSuccess ¶
func (o *RefreshAccessTokenInternalServerError) IsSuccess() bool
IsSuccess returns true when this refresh access token internal server error response has a 2xx status code
func (*RefreshAccessTokenInternalServerError) String ¶
func (o *RefreshAccessTokenInternalServerError) String() string
type RefreshAccessTokenNotFound ¶
RefreshAccessTokenNotFound describes a response with status code 404, with default header values.
Not Found
func NewRefreshAccessTokenNotFound ¶
func NewRefreshAccessTokenNotFound() *RefreshAccessTokenNotFound
NewRefreshAccessTokenNotFound creates a RefreshAccessTokenNotFound with default headers values
func (*RefreshAccessTokenNotFound) Error ¶
func (o *RefreshAccessTokenNotFound) Error() string
func (*RefreshAccessTokenNotFound) GetPayload ¶
func (o *RefreshAccessTokenNotFound) GetPayload() *models.Error
func (*RefreshAccessTokenNotFound) IsClientError ¶
func (o *RefreshAccessTokenNotFound) IsClientError() bool
IsClientError returns true when this refresh access token not found response has a 4xx status code
func (*RefreshAccessTokenNotFound) IsCode ¶
func (o *RefreshAccessTokenNotFound) IsCode(code int) bool
IsCode returns true when this refresh access token not found response a status code equal to that given
func (*RefreshAccessTokenNotFound) IsRedirect ¶
func (o *RefreshAccessTokenNotFound) IsRedirect() bool
IsRedirect returns true when this refresh access token not found response has a 3xx status code
func (*RefreshAccessTokenNotFound) IsServerError ¶
func (o *RefreshAccessTokenNotFound) IsServerError() bool
IsServerError returns true when this refresh access token not found response has a 5xx status code
func (*RefreshAccessTokenNotFound) IsSuccess ¶
func (o *RefreshAccessTokenNotFound) IsSuccess() bool
IsSuccess returns true when this refresh access token not found response has a 2xx status code
func (*RefreshAccessTokenNotFound) String ¶
func (o *RefreshAccessTokenNotFound) String() string
type RefreshAccessTokenOK ¶
type RefreshAccessTokenOK struct {
Payload string
}
RefreshAccessTokenOK describes a response with status code 200, with default header values.
OK
func NewRefreshAccessTokenOK ¶
func NewRefreshAccessTokenOK() *RefreshAccessTokenOK
NewRefreshAccessTokenOK creates a RefreshAccessTokenOK with default headers values
func (*RefreshAccessTokenOK) Error ¶
func (o *RefreshAccessTokenOK) Error() string
func (*RefreshAccessTokenOK) GetPayload ¶
func (o *RefreshAccessTokenOK) GetPayload() string
func (*RefreshAccessTokenOK) IsClientError ¶
func (o *RefreshAccessTokenOK) IsClientError() bool
IsClientError returns true when this refresh access token o k response has a 4xx status code
func (*RefreshAccessTokenOK) IsCode ¶
func (o *RefreshAccessTokenOK) IsCode(code int) bool
IsCode returns true when this refresh access token o k response a status code equal to that given
func (*RefreshAccessTokenOK) IsRedirect ¶
func (o *RefreshAccessTokenOK) IsRedirect() bool
IsRedirect returns true when this refresh access token o k response has a 3xx status code
func (*RefreshAccessTokenOK) IsServerError ¶
func (o *RefreshAccessTokenOK) IsServerError() bool
IsServerError returns true when this refresh access token o k response has a 5xx status code
func (*RefreshAccessTokenOK) IsSuccess ¶
func (o *RefreshAccessTokenOK) IsSuccess() bool
IsSuccess returns true when this refresh access token o k response has a 2xx status code
func (*RefreshAccessTokenOK) String ¶
func (o *RefreshAccessTokenOK) String() string
type RefreshAccessTokenParams ¶
type RefreshAccessTokenParams struct { /* RefreshToken. ID of the refresh token */ RefreshToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RefreshAccessTokenParams contains all the parameters to send to the API endpoint
for the refresh access token operation. Typically these are written to a http.Request.
func NewRefreshAccessTokenParams ¶
func NewRefreshAccessTokenParams() *RefreshAccessTokenParams
NewRefreshAccessTokenParams creates a new RefreshAccessTokenParams 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 NewRefreshAccessTokenParamsWithContext ¶
func NewRefreshAccessTokenParamsWithContext(ctx context.Context) *RefreshAccessTokenParams
NewRefreshAccessTokenParamsWithContext creates a new RefreshAccessTokenParams object with the ability to set a context for a request.
func NewRefreshAccessTokenParamsWithHTTPClient ¶
func NewRefreshAccessTokenParamsWithHTTPClient(client *http.Client) *RefreshAccessTokenParams
NewRefreshAccessTokenParamsWithHTTPClient creates a new RefreshAccessTokenParams object with the ability to set a custom HTTPClient for a request.
func NewRefreshAccessTokenParamsWithTimeout ¶
func NewRefreshAccessTokenParamsWithTimeout(timeout time.Duration) *RefreshAccessTokenParams
NewRefreshAccessTokenParamsWithTimeout creates a new RefreshAccessTokenParams object with the ability to set a timeout on a request.
func (*RefreshAccessTokenParams) SetContext ¶
func (o *RefreshAccessTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the refresh access token params
func (*RefreshAccessTokenParams) SetDefaults ¶
func (o *RefreshAccessTokenParams) SetDefaults()
SetDefaults hydrates default values in the refresh access token params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshAccessTokenParams) SetHTTPClient ¶
func (o *RefreshAccessTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the refresh access token params
func (*RefreshAccessTokenParams) SetRefreshToken ¶
func (o *RefreshAccessTokenParams) SetRefreshToken(refreshToken string)
SetRefreshToken adds the refreshToken to the refresh access token params
func (*RefreshAccessTokenParams) SetTimeout ¶
func (o *RefreshAccessTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the refresh access token params
func (*RefreshAccessTokenParams) WithContext ¶
func (o *RefreshAccessTokenParams) WithContext(ctx context.Context) *RefreshAccessTokenParams
WithContext adds the context to the refresh access token params
func (*RefreshAccessTokenParams) WithDefaults ¶
func (o *RefreshAccessTokenParams) WithDefaults() *RefreshAccessTokenParams
WithDefaults hydrates default values in the refresh access token params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshAccessTokenParams) WithHTTPClient ¶
func (o *RefreshAccessTokenParams) WithHTTPClient(client *http.Client) *RefreshAccessTokenParams
WithHTTPClient adds the HTTPClient to the refresh access token params
func (*RefreshAccessTokenParams) WithRefreshToken ¶
func (o *RefreshAccessTokenParams) WithRefreshToken(refreshToken string) *RefreshAccessTokenParams
WithRefreshToken adds the refreshToken to the refresh access token params
func (*RefreshAccessTokenParams) WithTimeout ¶
func (o *RefreshAccessTokenParams) WithTimeout(timeout time.Duration) *RefreshAccessTokenParams
WithTimeout adds the timeout to the refresh access token params
func (*RefreshAccessTokenParams) WriteToRequest ¶
func (o *RefreshAccessTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RefreshAccessTokenReader ¶
type RefreshAccessTokenReader struct {
// contains filtered or unexported fields
}
RefreshAccessTokenReader is a Reader for the RefreshAccessToken structure.
func (*RefreshAccessTokenReader) ReadResponse ¶
func (o *RefreshAccessTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.