token_service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 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 token service API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new token service API client.

func (*Client) ResetPassword

func (a *Client) ResetPassword(params *ResetPasswordParams) (*ResetPasswordOK, error)

ResetPassword finishes up the reset password process by providing the unique token

func (*Client) ResetPasswordToken

func (a *Client) ResetPasswordToken(params *ResetPasswordTokenParams) (*ResetPasswordTokenOK, error)

ResetPasswordToken generates a unique token for the reset password process

func (*Client) Revoke

func (a *Client) Revoke(params *RevokeParams) (*RevokeOK, error)

Revoke revokes a j w t token

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ResetPasswordOK

type ResetPasswordOK struct {
	Payload *models.RestResetPasswordResponse
}

ResetPasswordOK handles this case with default header values.

ResetPasswordOK reset password o k

func NewResetPasswordOK

func NewResetPasswordOK() *ResetPasswordOK

NewResetPasswordOK creates a ResetPasswordOK with default headers values

func (*ResetPasswordOK) Error

func (o *ResetPasswordOK) Error() string

type ResetPasswordParams

type ResetPasswordParams struct {

	/*Body*/
	Body *models.RestResetPasswordRequest

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

ResetPasswordParams contains all the parameters to send to the API endpoint for the reset password operation typically these are written to a http.Request

func NewResetPasswordParams

func NewResetPasswordParams() *ResetPasswordParams

NewResetPasswordParams creates a new ResetPasswordParams object with the default values initialized.

func NewResetPasswordParamsWithContext

func NewResetPasswordParamsWithContext(ctx context.Context) *ResetPasswordParams

NewResetPasswordParamsWithContext creates a new ResetPasswordParams object with the default values initialized, and the ability to set a context for a request

func NewResetPasswordParamsWithHTTPClient

func NewResetPasswordParamsWithHTTPClient(client *http.Client) *ResetPasswordParams

NewResetPasswordParamsWithHTTPClient creates a new ResetPasswordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewResetPasswordParamsWithTimeout

func NewResetPasswordParamsWithTimeout(timeout time.Duration) *ResetPasswordParams

NewResetPasswordParamsWithTimeout creates a new ResetPasswordParams object with the default values initialized, and the ability to set a timeout on a request

func (*ResetPasswordParams) SetBody

SetBody adds the body to the reset password params

func (*ResetPasswordParams) SetContext

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

SetContext adds the context to the reset password params

func (*ResetPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WithBody

WithBody adds the body to the reset password params

func (*ResetPasswordParams) WithContext

WithContext adds the context to the reset password params

func (*ResetPasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) WithTimeout

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

WithTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ResetPasswordReader

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

ResetPasswordReader is a Reader for the ResetPassword structure.

func (*ResetPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResetPasswordTokenOK

type ResetPasswordTokenOK struct {
	Payload *models.RestResetPasswordTokenResponse
}

ResetPasswordTokenOK handles this case with default header values.

ResetPasswordTokenOK reset password token o k

func NewResetPasswordTokenOK

func NewResetPasswordTokenOK() *ResetPasswordTokenOK

NewResetPasswordTokenOK creates a ResetPasswordTokenOK with default headers values

func (*ResetPasswordTokenOK) Error

func (o *ResetPasswordTokenOK) Error() string

type ResetPasswordTokenParams

type ResetPasswordTokenParams struct {

	/*UserLogin*/
	UserLogin string

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

ResetPasswordTokenParams contains all the parameters to send to the API endpoint for the reset password token operation typically these are written to a http.Request

func NewResetPasswordTokenParams

func NewResetPasswordTokenParams() *ResetPasswordTokenParams

NewResetPasswordTokenParams creates a new ResetPasswordTokenParams object with the default values initialized.

func NewResetPasswordTokenParamsWithContext

func NewResetPasswordTokenParamsWithContext(ctx context.Context) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithContext creates a new ResetPasswordTokenParams object with the default values initialized, and the ability to set a context for a request

func NewResetPasswordTokenParamsWithHTTPClient

func NewResetPasswordTokenParamsWithHTTPClient(client *http.Client) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithHTTPClient creates a new ResetPasswordTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewResetPasswordTokenParamsWithTimeout

func NewResetPasswordTokenParamsWithTimeout(timeout time.Duration) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithTimeout creates a new ResetPasswordTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*ResetPasswordTokenParams) SetContext

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

SetContext adds the context to the reset password token params

func (*ResetPasswordTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset password token params

func (*ResetPasswordTokenParams) SetTimeout

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

SetTimeout adds the timeout to the reset password token params

func (*ResetPasswordTokenParams) SetUserLogin

func (o *ResetPasswordTokenParams) SetUserLogin(userLogin string)

SetUserLogin adds the userLogin to the reset password token params

func (*ResetPasswordTokenParams) WithContext

WithContext adds the context to the reset password token params

func (*ResetPasswordTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reset password token params

func (*ResetPasswordTokenParams) WithTimeout

WithTimeout adds the timeout to the reset password token params

func (*ResetPasswordTokenParams) WithUserLogin

func (o *ResetPasswordTokenParams) WithUserLogin(userLogin string) *ResetPasswordTokenParams

WithUserLogin adds the userLogin to the reset password token params

func (*ResetPasswordTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResetPasswordTokenReader

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

ResetPasswordTokenReader is a Reader for the ResetPasswordToken structure.

func (*ResetPasswordTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeOK

type RevokeOK struct {
	Payload *models.RestRevokeResponse
}

RevokeOK handles this case with default header values.

RevokeOK revoke o k

func NewRevokeOK

func NewRevokeOK() *RevokeOK

NewRevokeOK creates a RevokeOK with default headers values

func (*RevokeOK) Error

func (o *RevokeOK) Error() string

type RevokeParams

type RevokeParams struct {

	/*Body*/
	Body *models.RestRevokeRequest

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

RevokeParams contains all the parameters to send to the API endpoint for the revoke operation typically these are written to a http.Request

func NewRevokeParams

func NewRevokeParams() *RevokeParams

NewRevokeParams creates a new RevokeParams object with the default values initialized.

func NewRevokeParamsWithContext

func NewRevokeParamsWithContext(ctx context.Context) *RevokeParams

NewRevokeParamsWithContext creates a new RevokeParams object with the default values initialized, and the ability to set a context for a request

func NewRevokeParamsWithHTTPClient

func NewRevokeParamsWithHTTPClient(client *http.Client) *RevokeParams

NewRevokeParamsWithHTTPClient creates a new RevokeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRevokeParamsWithTimeout

func NewRevokeParamsWithTimeout(timeout time.Duration) *RevokeParams

NewRevokeParamsWithTimeout creates a new RevokeParams object with the default values initialized, and the ability to set a timeout on a request

func (*RevokeParams) SetBody

func (o *RevokeParams) SetBody(body *models.RestRevokeRequest)

SetBody adds the body to the revoke params

func (*RevokeParams) SetContext

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

SetContext adds the context to the revoke params

func (*RevokeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) SetTimeout

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

SetTimeout adds the timeout to the revoke params

func (*RevokeParams) WithBody

func (o *RevokeParams) WithBody(body *models.RestRevokeRequest) *RevokeParams

WithBody adds the body to the revoke params

func (*RevokeParams) WithContext

func (o *RevokeParams) WithContext(ctx context.Context) *RevokeParams

WithContext adds the context to the revoke params

func (*RevokeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) WithTimeout

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

WithTimeout adds the timeout to the revoke params

func (*RevokeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeReader

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

RevokeReader is a Reader for the Revoke structure.

func (*RevokeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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