session

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 session API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TokenSessionCreateCreate

func (a *Client) TokenSessionCreateCreate(params *TokenSessionCreateCreateParams) (*TokenSessionCreateCreateOK, error)

TokenSessionCreateCreate creates session token

func (*Client) TokenSessionDelete

func (a *Client) TokenSessionDelete(params *TokenSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

TokenSessionDelete deletes session token

func (*Client) TokenSessionWhoAmIWhoAmI

func (a *Client) TokenSessionWhoAmIWhoAmI(params *TokenSessionWhoAmIWhoAmIParams, authInfo runtime.ClientAuthInfoWriter) (*TokenSessionWhoAmIWhoAmIOK, error)

TokenSessionWhoAmIWhoAmI finds information about the current user

type ClientService

type ClientService interface {
	TokenSessionCreateCreate(params *TokenSessionCreateCreateParams) (*TokenSessionCreateCreateOK, error)

	TokenSessionWhoAmIWhoAmI(params *TokenSessionWhoAmIWhoAmIParams, authInfo runtime.ClientAuthInfoWriter) (*TokenSessionWhoAmIWhoAmIOK, error)

	TokenSessionDelete(params *TokenSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter) 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 session API client.

type TokenSessionCreateCreateOK

type TokenSessionCreateCreateOK struct {
	Payload *models.ResponseWrapperSessionToken
}

TokenSessionCreateCreateOK handles this case with default header values.

successful operation

func NewTokenSessionCreateCreateOK

func NewTokenSessionCreateCreateOK() *TokenSessionCreateCreateOK

NewTokenSessionCreateCreateOK creates a TokenSessionCreateCreateOK with default headers values

func (*TokenSessionCreateCreateOK) Error

func (*TokenSessionCreateCreateOK) GetPayload

type TokenSessionCreateCreateParams

type TokenSessionCreateCreateParams struct {

	/*ConsumerToken
	  Token of the API consumer

	*/
	ConsumerToken string
	/*EmployeeToken
	  The employees token

	*/
	EmployeeToken string
	/*ExpirationDate
	  Expiration date for the combined token

	*/
	ExpirationDate string

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

TokenSessionCreateCreateParams contains all the parameters to send to the API endpoint for the token session create create operation typically these are written to a http.Request

func NewTokenSessionCreateCreateParams

func NewTokenSessionCreateCreateParams() *TokenSessionCreateCreateParams

NewTokenSessionCreateCreateParams creates a new TokenSessionCreateCreateParams object with the default values initialized.

func NewTokenSessionCreateCreateParamsWithContext

func NewTokenSessionCreateCreateParamsWithContext(ctx context.Context) *TokenSessionCreateCreateParams

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

func NewTokenSessionCreateCreateParamsWithHTTPClient

func NewTokenSessionCreateCreateParamsWithHTTPClient(client *http.Client) *TokenSessionCreateCreateParams

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

func NewTokenSessionCreateCreateParamsWithTimeout

func NewTokenSessionCreateCreateParamsWithTimeout(timeout time.Duration) *TokenSessionCreateCreateParams

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

func (*TokenSessionCreateCreateParams) SetConsumerToken

func (o *TokenSessionCreateCreateParams) SetConsumerToken(consumerToken string)

SetConsumerToken adds the consumerToken to the token session create create params

func (*TokenSessionCreateCreateParams) SetContext

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

SetContext adds the context to the token session create create params

func (*TokenSessionCreateCreateParams) SetEmployeeToken

func (o *TokenSessionCreateCreateParams) SetEmployeeToken(employeeToken string)

SetEmployeeToken adds the employeeToken to the token session create create params

func (*TokenSessionCreateCreateParams) SetExpirationDate

func (o *TokenSessionCreateCreateParams) SetExpirationDate(expirationDate string)

SetExpirationDate adds the expirationDate to the token session create create params

func (*TokenSessionCreateCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token session create create params

func (*TokenSessionCreateCreateParams) SetTimeout

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

SetTimeout adds the timeout to the token session create create params

func (*TokenSessionCreateCreateParams) WithConsumerToken

func (o *TokenSessionCreateCreateParams) WithConsumerToken(consumerToken string) *TokenSessionCreateCreateParams

WithConsumerToken adds the consumerToken to the token session create create params

func (*TokenSessionCreateCreateParams) WithContext

WithContext adds the context to the token session create create params

func (*TokenSessionCreateCreateParams) WithEmployeeToken

func (o *TokenSessionCreateCreateParams) WithEmployeeToken(employeeToken string) *TokenSessionCreateCreateParams

WithEmployeeToken adds the employeeToken to the token session create create params

func (*TokenSessionCreateCreateParams) WithExpirationDate

func (o *TokenSessionCreateCreateParams) WithExpirationDate(expirationDate string) *TokenSessionCreateCreateParams

WithExpirationDate adds the expirationDate to the token session create create params

func (*TokenSessionCreateCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the token session create create params

func (*TokenSessionCreateCreateParams) WithTimeout

WithTimeout adds the timeout to the token session create create params

func (*TokenSessionCreateCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenSessionCreateCreateReader

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

TokenSessionCreateCreateReader is a Reader for the TokenSessionCreateCreate structure.

func (*TokenSessionCreateCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenSessionDeleteDefault

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

TokenSessionDeleteDefault handles this case with default header values.

successful operation

func NewTokenSessionDeleteDefault

func NewTokenSessionDeleteDefault(code int) *TokenSessionDeleteDefault

NewTokenSessionDeleteDefault creates a TokenSessionDeleteDefault with default headers values

func (*TokenSessionDeleteDefault) Code

func (o *TokenSessionDeleteDefault) Code() int

Code gets the status code for the token session delete default response

func (*TokenSessionDeleteDefault) Error

func (o *TokenSessionDeleteDefault) Error() string

type TokenSessionDeleteParams

type TokenSessionDeleteParams struct {

	/*Token
	  The login token string to delete

	*/
	Token string

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

TokenSessionDeleteParams contains all the parameters to send to the API endpoint for the token session delete operation typically these are written to a http.Request

func NewTokenSessionDeleteParams

func NewTokenSessionDeleteParams() *TokenSessionDeleteParams

NewTokenSessionDeleteParams creates a new TokenSessionDeleteParams object with the default values initialized.

func NewTokenSessionDeleteParamsWithContext

func NewTokenSessionDeleteParamsWithContext(ctx context.Context) *TokenSessionDeleteParams

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

func NewTokenSessionDeleteParamsWithHTTPClient

func NewTokenSessionDeleteParamsWithHTTPClient(client *http.Client) *TokenSessionDeleteParams

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

func NewTokenSessionDeleteParamsWithTimeout

func NewTokenSessionDeleteParamsWithTimeout(timeout time.Duration) *TokenSessionDeleteParams

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

func (*TokenSessionDeleteParams) SetContext

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

SetContext adds the context to the token session delete params

func (*TokenSessionDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token session delete params

func (*TokenSessionDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the token session delete params

func (*TokenSessionDeleteParams) SetToken

func (o *TokenSessionDeleteParams) SetToken(token string)

SetToken adds the token to the token session delete params

func (*TokenSessionDeleteParams) WithContext

WithContext adds the context to the token session delete params

func (*TokenSessionDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token session delete params

func (*TokenSessionDeleteParams) WithTimeout

WithTimeout adds the timeout to the token session delete params

func (*TokenSessionDeleteParams) WithToken

WithToken adds the token to the token session delete params

func (*TokenSessionDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenSessionDeleteReader

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

TokenSessionDeleteReader is a Reader for the TokenSessionDelete structure.

func (*TokenSessionDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenSessionWhoAmIWhoAmIOK

type TokenSessionWhoAmIWhoAmIOK struct {
	Payload *models.ResponseWrapperLoggedInUserInfoDTO
}

TokenSessionWhoAmIWhoAmIOK handles this case with default header values.

successful operation

func NewTokenSessionWhoAmIWhoAmIOK

func NewTokenSessionWhoAmIWhoAmIOK() *TokenSessionWhoAmIWhoAmIOK

NewTokenSessionWhoAmIWhoAmIOK creates a TokenSessionWhoAmIWhoAmIOK with default headers values

func (*TokenSessionWhoAmIWhoAmIOK) Error

func (*TokenSessionWhoAmIWhoAmIOK) GetPayload

type TokenSessionWhoAmIWhoAmIParams

type TokenSessionWhoAmIWhoAmIParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string

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

TokenSessionWhoAmIWhoAmIParams contains all the parameters to send to the API endpoint for the token session who am i who am i operation typically these are written to a http.Request

func NewTokenSessionWhoAmIWhoAmIParams

func NewTokenSessionWhoAmIWhoAmIParams() *TokenSessionWhoAmIWhoAmIParams

NewTokenSessionWhoAmIWhoAmIParams creates a new TokenSessionWhoAmIWhoAmIParams object with the default values initialized.

func NewTokenSessionWhoAmIWhoAmIParamsWithContext

func NewTokenSessionWhoAmIWhoAmIParamsWithContext(ctx context.Context) *TokenSessionWhoAmIWhoAmIParams

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

func NewTokenSessionWhoAmIWhoAmIParamsWithHTTPClient

func NewTokenSessionWhoAmIWhoAmIParamsWithHTTPClient(client *http.Client) *TokenSessionWhoAmIWhoAmIParams

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

func NewTokenSessionWhoAmIWhoAmIParamsWithTimeout

func NewTokenSessionWhoAmIWhoAmIParamsWithTimeout(timeout time.Duration) *TokenSessionWhoAmIWhoAmIParams

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

func (*TokenSessionWhoAmIWhoAmIParams) SetContext

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

SetContext adds the context to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) SetFields

func (o *TokenSessionWhoAmIWhoAmIParams) SetFields(fields *string)

SetFields adds the fields to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) SetTimeout

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

SetTimeout adds the timeout to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) WithContext

WithContext adds the context to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) WithFields

WithFields adds the fields to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) WithTimeout

WithTimeout adds the timeout to the token session who am i who am i params

func (*TokenSessionWhoAmIWhoAmIParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenSessionWhoAmIWhoAmIReader

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

TokenSessionWhoAmIWhoAmIReader is a Reader for the TokenSessionWhoAmIWhoAmI structure.

func (*TokenSessionWhoAmIWhoAmIReader) ReadResponse

func (o *TokenSessionWhoAmIWhoAmIReader) 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