session_service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 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 service API

func (*Client) SessionServiceCreate

func (a *Client) SessionServiceCreate(params *SessionServiceCreateParams, opts ...ClientOption) (*SessionServiceCreateOK, error)

SessionServiceCreate creates a new j w t for authentication and set a cookie if using HTTP

func (*Client) SessionServiceDelete

func (a *Client) SessionServiceDelete(params *SessionServiceDeleteParams, opts ...ClientOption) (*SessionServiceDeleteOK, error)

SessionServiceDelete deletes an existing j w t cookie if using HTTP

func (*Client) SessionServiceGetUserInfo

func (a *Client) SessionServiceGetUserInfo(params *SessionServiceGetUserInfoParams, opts ...ClientOption) (*SessionServiceGetUserInfoOK, error)

SessionServiceGetUserInfo gets the current user s info

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 {
	SessionServiceCreate(params *SessionServiceCreateParams, opts ...ClientOption) (*SessionServiceCreateOK, error)

	SessionServiceDelete(params *SessionServiceDeleteParams, opts ...ClientOption) (*SessionServiceDeleteOK, error)

	SessionServiceGetUserInfo(params *SessionServiceGetUserInfoParams, opts ...ClientOption) (*SessionServiceGetUserInfoOK, 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 service API client.

type SessionServiceCreateDefault

type SessionServiceCreateDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
SessionServiceCreateDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSessionServiceCreateDefault

func NewSessionServiceCreateDefault(code int) *SessionServiceCreateDefault

NewSessionServiceCreateDefault creates a SessionServiceCreateDefault with default headers values

func (*SessionServiceCreateDefault) Code

func (o *SessionServiceCreateDefault) Code() int

Code gets the status code for the session service create default response

func (*SessionServiceCreateDefault) Error

func (*SessionServiceCreateDefault) GetPayload

type SessionServiceCreateOK

type SessionServiceCreateOK struct {
	Payload *models.SessionSessionResponse
}
SessionServiceCreateOK describes a response with status code 200, with default header values.

A successful response.

func NewSessionServiceCreateOK

func NewSessionServiceCreateOK() *SessionServiceCreateOK

NewSessionServiceCreateOK creates a SessionServiceCreateOK with default headers values

func (*SessionServiceCreateOK) Error

func (o *SessionServiceCreateOK) Error() string

func (*SessionServiceCreateOK) GetPayload

type SessionServiceCreateParams

type SessionServiceCreateParams struct {

	// Body.
	Body *models.SessionSessionCreateRequest

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

SessionServiceCreateParams contains all the parameters to send to the API endpoint

for the session service create operation.

Typically these are written to a http.Request.

func NewSessionServiceCreateParams

func NewSessionServiceCreateParams() *SessionServiceCreateParams

NewSessionServiceCreateParams creates a new SessionServiceCreateParams 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 NewSessionServiceCreateParamsWithContext

func NewSessionServiceCreateParamsWithContext(ctx context.Context) *SessionServiceCreateParams

NewSessionServiceCreateParamsWithContext creates a new SessionServiceCreateParams object with the ability to set a context for a request.

func NewSessionServiceCreateParamsWithHTTPClient

func NewSessionServiceCreateParamsWithHTTPClient(client *http.Client) *SessionServiceCreateParams

NewSessionServiceCreateParamsWithHTTPClient creates a new SessionServiceCreateParams object with the ability to set a custom HTTPClient for a request.

func NewSessionServiceCreateParamsWithTimeout

func NewSessionServiceCreateParamsWithTimeout(timeout time.Duration) *SessionServiceCreateParams

NewSessionServiceCreateParamsWithTimeout creates a new SessionServiceCreateParams object with the ability to set a timeout on a request.

func (*SessionServiceCreateParams) SetBody

SetBody adds the body to the session service create params

func (*SessionServiceCreateParams) SetContext

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

SetContext adds the context to the session service create params

func (*SessionServiceCreateParams) SetDefaults

func (o *SessionServiceCreateParams) SetDefaults()

SetDefaults hydrates default values in the session service create params (not the query body).

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

func (*SessionServiceCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the session service create params

func (*SessionServiceCreateParams) SetTimeout

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

SetTimeout adds the timeout to the session service create params

func (*SessionServiceCreateParams) WithBody

WithBody adds the body to the session service create params

func (*SessionServiceCreateParams) WithContext

WithContext adds the context to the session service create params

func (*SessionServiceCreateParams) WithDefaults

WithDefaults hydrates default values in the session service create params (not the query body).

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

func (*SessionServiceCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the session service create params

func (*SessionServiceCreateParams) WithTimeout

WithTimeout adds the timeout to the session service create params

func (*SessionServiceCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SessionServiceCreateReader

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

SessionServiceCreateReader is a Reader for the SessionServiceCreate structure.

func (*SessionServiceCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SessionServiceDeleteDefault

type SessionServiceDeleteDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
SessionServiceDeleteDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSessionServiceDeleteDefault

func NewSessionServiceDeleteDefault(code int) *SessionServiceDeleteDefault

NewSessionServiceDeleteDefault creates a SessionServiceDeleteDefault with default headers values

func (*SessionServiceDeleteDefault) Code

func (o *SessionServiceDeleteDefault) Code() int

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

func (*SessionServiceDeleteDefault) Error

func (*SessionServiceDeleteDefault) GetPayload

type SessionServiceDeleteOK

type SessionServiceDeleteOK struct {
	Payload *models.SessionSessionResponse
}
SessionServiceDeleteOK describes a response with status code 200, with default header values.

A successful response.

func NewSessionServiceDeleteOK

func NewSessionServiceDeleteOK() *SessionServiceDeleteOK

NewSessionServiceDeleteOK creates a SessionServiceDeleteOK with default headers values

func (*SessionServiceDeleteOK) Error

func (o *SessionServiceDeleteOK) Error() string

func (*SessionServiceDeleteOK) GetPayload

type SessionServiceDeleteParams

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

SessionServiceDeleteParams contains all the parameters to send to the API endpoint

for the session service delete operation.

Typically these are written to a http.Request.

func NewSessionServiceDeleteParams

func NewSessionServiceDeleteParams() *SessionServiceDeleteParams

NewSessionServiceDeleteParams creates a new SessionServiceDeleteParams 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 NewSessionServiceDeleteParamsWithContext

func NewSessionServiceDeleteParamsWithContext(ctx context.Context) *SessionServiceDeleteParams

NewSessionServiceDeleteParamsWithContext creates a new SessionServiceDeleteParams object with the ability to set a context for a request.

func NewSessionServiceDeleteParamsWithHTTPClient

func NewSessionServiceDeleteParamsWithHTTPClient(client *http.Client) *SessionServiceDeleteParams

NewSessionServiceDeleteParamsWithHTTPClient creates a new SessionServiceDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewSessionServiceDeleteParamsWithTimeout

func NewSessionServiceDeleteParamsWithTimeout(timeout time.Duration) *SessionServiceDeleteParams

NewSessionServiceDeleteParamsWithTimeout creates a new SessionServiceDeleteParams object with the ability to set a timeout on a request.

func (*SessionServiceDeleteParams) SetContext

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

SetContext adds the context to the session service delete params

func (*SessionServiceDeleteParams) SetDefaults

func (o *SessionServiceDeleteParams) SetDefaults()

SetDefaults hydrates default values in the session service delete params (not the query body).

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

func (*SessionServiceDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the session service delete params

func (*SessionServiceDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the session service delete params

func (*SessionServiceDeleteParams) WithContext

WithContext adds the context to the session service delete params

func (*SessionServiceDeleteParams) WithDefaults

WithDefaults hydrates default values in the session service delete params (not the query body).

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

func (*SessionServiceDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the session service delete params

func (*SessionServiceDeleteParams) WithTimeout

WithTimeout adds the timeout to the session service delete params

func (*SessionServiceDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SessionServiceDeleteReader

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

SessionServiceDeleteReader is a Reader for the SessionServiceDelete structure.

func (*SessionServiceDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SessionServiceGetUserInfoDefault

type SessionServiceGetUserInfoDefault struct {
	Payload *models.RuntimeError
	// contains filtered or unexported fields
}
SessionServiceGetUserInfoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewSessionServiceGetUserInfoDefault

func NewSessionServiceGetUserInfoDefault(code int) *SessionServiceGetUserInfoDefault

NewSessionServiceGetUserInfoDefault creates a SessionServiceGetUserInfoDefault with default headers values

func (*SessionServiceGetUserInfoDefault) Code

Code gets the status code for the session service get user info default response

func (*SessionServiceGetUserInfoDefault) Error

func (*SessionServiceGetUserInfoDefault) GetPayload

type SessionServiceGetUserInfoOK

type SessionServiceGetUserInfoOK struct {
	Payload *models.SessionGetUserInfoResponse
}
SessionServiceGetUserInfoOK describes a response with status code 200, with default header values.

A successful response.

func NewSessionServiceGetUserInfoOK

func NewSessionServiceGetUserInfoOK() *SessionServiceGetUserInfoOK

NewSessionServiceGetUserInfoOK creates a SessionServiceGetUserInfoOK with default headers values

func (*SessionServiceGetUserInfoOK) Error

func (*SessionServiceGetUserInfoOK) GetPayload

type SessionServiceGetUserInfoParams

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

SessionServiceGetUserInfoParams contains all the parameters to send to the API endpoint

for the session service get user info operation.

Typically these are written to a http.Request.

func NewSessionServiceGetUserInfoParams

func NewSessionServiceGetUserInfoParams() *SessionServiceGetUserInfoParams

NewSessionServiceGetUserInfoParams creates a new SessionServiceGetUserInfoParams 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 NewSessionServiceGetUserInfoParamsWithContext

func NewSessionServiceGetUserInfoParamsWithContext(ctx context.Context) *SessionServiceGetUserInfoParams

NewSessionServiceGetUserInfoParamsWithContext creates a new SessionServiceGetUserInfoParams object with the ability to set a context for a request.

func NewSessionServiceGetUserInfoParamsWithHTTPClient

func NewSessionServiceGetUserInfoParamsWithHTTPClient(client *http.Client) *SessionServiceGetUserInfoParams

NewSessionServiceGetUserInfoParamsWithHTTPClient creates a new SessionServiceGetUserInfoParams object with the ability to set a custom HTTPClient for a request.

func NewSessionServiceGetUserInfoParamsWithTimeout

func NewSessionServiceGetUserInfoParamsWithTimeout(timeout time.Duration) *SessionServiceGetUserInfoParams

NewSessionServiceGetUserInfoParamsWithTimeout creates a new SessionServiceGetUserInfoParams object with the ability to set a timeout on a request.

func (*SessionServiceGetUserInfoParams) SetContext

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

SetContext adds the context to the session service get user info params

func (*SessionServiceGetUserInfoParams) SetDefaults

func (o *SessionServiceGetUserInfoParams) SetDefaults()

SetDefaults hydrates default values in the session service get user info params (not the query body).

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

func (*SessionServiceGetUserInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the session service get user info params

func (*SessionServiceGetUserInfoParams) SetTimeout

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

SetTimeout adds the timeout to the session service get user info params

func (*SessionServiceGetUserInfoParams) WithContext

WithContext adds the context to the session service get user info params

func (*SessionServiceGetUserInfoParams) WithDefaults

WithDefaults hydrates default values in the session service get user info params (not the query body).

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

func (*SessionServiceGetUserInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the session service get user info params

func (*SessionServiceGetUserInfoParams) WithTimeout

WithTimeout adds the timeout to the session service get user info params

func (*SessionServiceGetUserInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SessionServiceGetUserInfoReader

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

SessionServiceGetUserInfoReader is a Reader for the SessionServiceGetUserInfo structure.

func (*SessionServiceGetUserInfoReader) ReadResponse

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