Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TokenSessionCreateCreate(params *TokenSessionCreateCreateParams) (*TokenSessionCreateCreateOK, error)
- func (a *Client) TokenSessionDelete(params *TokenSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter) error
- func (a *Client) TokenSessionWhoAmIWhoAmI(params *TokenSessionWhoAmIWhoAmIParams, authInfo runtime.ClientAuthInfoWriter) (*TokenSessionWhoAmIWhoAmIOK, error)
- type ClientService
- type TokenSessionCreateCreateOK
- type TokenSessionCreateCreateParams
- func NewTokenSessionCreateCreateParams() *TokenSessionCreateCreateParams
- func NewTokenSessionCreateCreateParamsWithContext(ctx context.Context) *TokenSessionCreateCreateParams
- func NewTokenSessionCreateCreateParamsWithHTTPClient(client *http.Client) *TokenSessionCreateCreateParams
- func NewTokenSessionCreateCreateParamsWithTimeout(timeout time.Duration) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) SetConsumerToken(consumerToken string)
- func (o *TokenSessionCreateCreateParams) SetContext(ctx context.Context)
- func (o *TokenSessionCreateCreateParams) SetEmployeeToken(employeeToken string)
- func (o *TokenSessionCreateCreateParams) SetExpirationDate(expirationDate string)
- func (o *TokenSessionCreateCreateParams) SetHTTPClient(client *http.Client)
- func (o *TokenSessionCreateCreateParams) SetTimeout(timeout time.Duration)
- func (o *TokenSessionCreateCreateParams) WithConsumerToken(consumerToken string) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WithContext(ctx context.Context) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WithEmployeeToken(employeeToken string) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WithExpirationDate(expirationDate string) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WithHTTPClient(client *http.Client) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WithTimeout(timeout time.Duration) *TokenSessionCreateCreateParams
- func (o *TokenSessionCreateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TokenSessionCreateCreateReader
- type TokenSessionDeleteDefault
- type TokenSessionDeleteParams
- func NewTokenSessionDeleteParams() *TokenSessionDeleteParams
- func NewTokenSessionDeleteParamsWithContext(ctx context.Context) *TokenSessionDeleteParams
- func NewTokenSessionDeleteParamsWithHTTPClient(client *http.Client) *TokenSessionDeleteParams
- func NewTokenSessionDeleteParamsWithTimeout(timeout time.Duration) *TokenSessionDeleteParams
- func (o *TokenSessionDeleteParams) SetContext(ctx context.Context)
- func (o *TokenSessionDeleteParams) SetHTTPClient(client *http.Client)
- func (o *TokenSessionDeleteParams) SetTimeout(timeout time.Duration)
- func (o *TokenSessionDeleteParams) SetToken(token string)
- func (o *TokenSessionDeleteParams) WithContext(ctx context.Context) *TokenSessionDeleteParams
- func (o *TokenSessionDeleteParams) WithHTTPClient(client *http.Client) *TokenSessionDeleteParams
- func (o *TokenSessionDeleteParams) WithTimeout(timeout time.Duration) *TokenSessionDeleteParams
- func (o *TokenSessionDeleteParams) WithToken(token string) *TokenSessionDeleteParams
- func (o *TokenSessionDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TokenSessionDeleteReader
- type TokenSessionWhoAmIWhoAmIOK
- type TokenSessionWhoAmIWhoAmIParams
- func NewTokenSessionWhoAmIWhoAmIParams() *TokenSessionWhoAmIWhoAmIParams
- func NewTokenSessionWhoAmIWhoAmIParamsWithContext(ctx context.Context) *TokenSessionWhoAmIWhoAmIParams
- func NewTokenSessionWhoAmIWhoAmIParamsWithHTTPClient(client *http.Client) *TokenSessionWhoAmIWhoAmIParams
- func NewTokenSessionWhoAmIWhoAmIParamsWithTimeout(timeout time.Duration) *TokenSessionWhoAmIWhoAmIParams
- func (o *TokenSessionWhoAmIWhoAmIParams) SetContext(ctx context.Context)
- func (o *TokenSessionWhoAmIWhoAmIParams) SetFields(fields *string)
- func (o *TokenSessionWhoAmIWhoAmIParams) SetHTTPClient(client *http.Client)
- func (o *TokenSessionWhoAmIWhoAmIParams) SetTimeout(timeout time.Duration)
- func (o *TokenSessionWhoAmIWhoAmIParams) WithContext(ctx context.Context) *TokenSessionWhoAmIWhoAmIParams
- func (o *TokenSessionWhoAmIWhoAmIParams) WithFields(fields *string) *TokenSessionWhoAmIWhoAmIParams
- func (o *TokenSessionWhoAmIWhoAmIParams) WithHTTPClient(client *http.Client) *TokenSessionWhoAmIWhoAmIParams
- func (o *TokenSessionWhoAmIWhoAmIParams) WithTimeout(timeout time.Duration) *TokenSessionWhoAmIWhoAmIParams
- func (o *TokenSessionWhoAmIWhoAmIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TokenSessionWhoAmIWhoAmIReader
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) TokenSessionDelete(params *TokenSessionDeleteParams, authInfo runtime.ClientAuthInfoWriter) error TokenSessionWhoAmIWhoAmI(params *TokenSessionWhoAmIWhoAmIParams, authInfo runtime.ClientAuthInfoWriter) (*TokenSessionWhoAmIWhoAmIOK, 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 (o *TokenSessionCreateCreateOK) Error() string
func (*TokenSessionCreateCreateOK) GetPayload ¶
func (o *TokenSessionCreateCreateOK) GetPayload() *models.ResponseWrapperSessionToken
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 ¶
func (o *TokenSessionCreateCreateParams) WithContext(ctx context.Context) *TokenSessionCreateCreateParams
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 ¶
func (o *TokenSessionCreateCreateParams) WithHTTPClient(client *http.Client) *TokenSessionCreateCreateParams
WithHTTPClient adds the HTTPClient to the token session create create params
func (*TokenSessionCreateCreateParams) WithTimeout ¶
func (o *TokenSessionCreateCreateParams) WithTimeout(timeout time.Duration) *TokenSessionCreateCreateParams
WithTimeout adds the timeout to the token session create create params
func (*TokenSessionCreateCreateParams) WriteToRequest ¶
func (o *TokenSessionCreateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *TokenSessionDeleteParams) WithContext(ctx context.Context) *TokenSessionDeleteParams
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 ¶
func (o *TokenSessionDeleteParams) WithTimeout(timeout time.Duration) *TokenSessionDeleteParams
WithTimeout adds the timeout to the token session delete params
func (*TokenSessionDeleteParams) WithToken ¶
func (o *TokenSessionDeleteParams) WithToken(token string) *TokenSessionDeleteParams
WithToken adds the token to the token session delete params
func (*TokenSessionDeleteParams) WriteToRequest ¶
func (o *TokenSessionDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *TokenSessionWhoAmIWhoAmIOK) Error() string
func (*TokenSessionWhoAmIWhoAmIOK) GetPayload ¶
func (o *TokenSessionWhoAmIWhoAmIOK) GetPayload() *models.ResponseWrapperLoggedInUserInfoDTO
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 ¶
func (o *TokenSessionWhoAmIWhoAmIParams) WithContext(ctx context.Context) *TokenSessionWhoAmIWhoAmIParams
WithContext adds the context to the token session who am i who am i params
func (*TokenSessionWhoAmIWhoAmIParams) WithFields ¶
func (o *TokenSessionWhoAmIWhoAmIParams) WithFields(fields *string) *TokenSessionWhoAmIWhoAmIParams
WithFields adds the fields to the token session who am i who am i params
func (*TokenSessionWhoAmIWhoAmIParams) WithHTTPClient ¶
func (o *TokenSessionWhoAmIWhoAmIParams) WithHTTPClient(client *http.Client) *TokenSessionWhoAmIWhoAmIParams
WithHTTPClient adds the HTTPClient to the token session who am i who am i params
func (*TokenSessionWhoAmIWhoAmIParams) WithTimeout ¶
func (o *TokenSessionWhoAmIWhoAmIParams) WithTimeout(timeout time.Duration) *TokenSessionWhoAmIWhoAmIParams
WithTimeout adds the timeout to the token session who am i who am i params
func (*TokenSessionWhoAmIWhoAmIParams) WriteToRequest ¶
func (o *TokenSessionWhoAmIWhoAmIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.