Documentation ¶
Index ¶
- type Client
- func (a *Client) SessionServiceCreate(params *SessionServiceCreateParams, opts ...ClientOption) (*SessionServiceCreateOK, error)
- func (a *Client) SessionServiceDelete(params *SessionServiceDeleteParams, opts ...ClientOption) (*SessionServiceDeleteOK, error)
- func (a *Client) SessionServiceGetUserInfo(params *SessionServiceGetUserInfoParams, opts ...ClientOption) (*SessionServiceGetUserInfoOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type SessionServiceCreateDefault
- type SessionServiceCreateOK
- type SessionServiceCreateParams
- func NewSessionServiceCreateParams() *SessionServiceCreateParams
- func NewSessionServiceCreateParamsWithContext(ctx context.Context) *SessionServiceCreateParams
- func NewSessionServiceCreateParamsWithHTTPClient(client *http.Client) *SessionServiceCreateParams
- func NewSessionServiceCreateParamsWithTimeout(timeout time.Duration) *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) SetBody(body *models.SessionSessionCreateRequest)
- func (o *SessionServiceCreateParams) SetContext(ctx context.Context)
- func (o *SessionServiceCreateParams) SetDefaults()
- func (o *SessionServiceCreateParams) SetHTTPClient(client *http.Client)
- func (o *SessionServiceCreateParams) SetTimeout(timeout time.Duration)
- func (o *SessionServiceCreateParams) WithBody(body *models.SessionSessionCreateRequest) *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) WithContext(ctx context.Context) *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) WithDefaults() *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) WithHTTPClient(client *http.Client) *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) WithTimeout(timeout time.Duration) *SessionServiceCreateParams
- func (o *SessionServiceCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SessionServiceCreateReader
- type SessionServiceDeleteDefault
- type SessionServiceDeleteOK
- type SessionServiceDeleteParams
- func NewSessionServiceDeleteParams() *SessionServiceDeleteParams
- func NewSessionServiceDeleteParamsWithContext(ctx context.Context) *SessionServiceDeleteParams
- func NewSessionServiceDeleteParamsWithHTTPClient(client *http.Client) *SessionServiceDeleteParams
- func NewSessionServiceDeleteParamsWithTimeout(timeout time.Duration) *SessionServiceDeleteParams
- func (o *SessionServiceDeleteParams) SetContext(ctx context.Context)
- func (o *SessionServiceDeleteParams) SetDefaults()
- func (o *SessionServiceDeleteParams) SetHTTPClient(client *http.Client)
- func (o *SessionServiceDeleteParams) SetTimeout(timeout time.Duration)
- func (o *SessionServiceDeleteParams) WithContext(ctx context.Context) *SessionServiceDeleteParams
- func (o *SessionServiceDeleteParams) WithDefaults() *SessionServiceDeleteParams
- func (o *SessionServiceDeleteParams) WithHTTPClient(client *http.Client) *SessionServiceDeleteParams
- func (o *SessionServiceDeleteParams) WithTimeout(timeout time.Duration) *SessionServiceDeleteParams
- func (o *SessionServiceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SessionServiceDeleteReader
- type SessionServiceGetUserInfoDefault
- type SessionServiceGetUserInfoOK
- type SessionServiceGetUserInfoParams
- func NewSessionServiceGetUserInfoParams() *SessionServiceGetUserInfoParams
- func NewSessionServiceGetUserInfoParamsWithContext(ctx context.Context) *SessionServiceGetUserInfoParams
- func NewSessionServiceGetUserInfoParamsWithHTTPClient(client *http.Client) *SessionServiceGetUserInfoParams
- func NewSessionServiceGetUserInfoParamsWithTimeout(timeout time.Duration) *SessionServiceGetUserInfoParams
- func (o *SessionServiceGetUserInfoParams) SetContext(ctx context.Context)
- func (o *SessionServiceGetUserInfoParams) SetDefaults()
- func (o *SessionServiceGetUserInfoParams) SetHTTPClient(client *http.Client)
- func (o *SessionServiceGetUserInfoParams) SetTimeout(timeout time.Duration)
- func (o *SessionServiceGetUserInfoParams) WithContext(ctx context.Context) *SessionServiceGetUserInfoParams
- func (o *SessionServiceGetUserInfoParams) WithDefaults() *SessionServiceGetUserInfoParams
- func (o *SessionServiceGetUserInfoParams) WithHTTPClient(client *http.Client) *SessionServiceGetUserInfoParams
- func (o *SessionServiceGetUserInfoParams) WithTimeout(timeout time.Duration) *SessionServiceGetUserInfoParams
- func (o *SessionServiceGetUserInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SessionServiceGetUserInfoReader
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 (o *SessionServiceCreateDefault) Error() string
func (*SessionServiceCreateDefault) GetPayload ¶
func (o *SessionServiceCreateDefault) GetPayload() *models.RuntimeError
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 ¶
func (o *SessionServiceCreateOK) GetPayload() *models.SessionSessionResponse
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 ¶
func (o *SessionServiceCreateParams) SetBody(body *models.SessionSessionCreateRequest)
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 ¶
func (o *SessionServiceCreateParams) WithBody(body *models.SessionSessionCreateRequest) *SessionServiceCreateParams
WithBody adds the body to the session service create params
func (*SessionServiceCreateParams) WithContext ¶
func (o *SessionServiceCreateParams) WithContext(ctx context.Context) *SessionServiceCreateParams
WithContext adds the context to the session service create params
func (*SessionServiceCreateParams) WithDefaults ¶
func (o *SessionServiceCreateParams) WithDefaults() *SessionServiceCreateParams
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 ¶
func (o *SessionServiceCreateParams) WithHTTPClient(client *http.Client) *SessionServiceCreateParams
WithHTTPClient adds the HTTPClient to the session service create params
func (*SessionServiceCreateParams) WithTimeout ¶
func (o *SessionServiceCreateParams) WithTimeout(timeout time.Duration) *SessionServiceCreateParams
WithTimeout adds the timeout to the session service create params
func (*SessionServiceCreateParams) WriteToRequest ¶
func (o *SessionServiceCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *SessionServiceDeleteDefault) Error() string
func (*SessionServiceDeleteDefault) GetPayload ¶
func (o *SessionServiceDeleteDefault) GetPayload() *models.RuntimeError
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 ¶
func (o *SessionServiceDeleteOK) GetPayload() *models.SessionSessionResponse
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 ¶
func (o *SessionServiceDeleteParams) WithContext(ctx context.Context) *SessionServiceDeleteParams
WithContext adds the context to the session service delete params
func (*SessionServiceDeleteParams) WithDefaults ¶
func (o *SessionServiceDeleteParams) WithDefaults() *SessionServiceDeleteParams
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 ¶
func (o *SessionServiceDeleteParams) WithHTTPClient(client *http.Client) *SessionServiceDeleteParams
WithHTTPClient adds the HTTPClient to the session service delete params
func (*SessionServiceDeleteParams) WithTimeout ¶
func (o *SessionServiceDeleteParams) WithTimeout(timeout time.Duration) *SessionServiceDeleteParams
WithTimeout adds the timeout to the session service delete params
func (*SessionServiceDeleteParams) WriteToRequest ¶
func (o *SessionServiceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SessionServiceGetUserInfoDefault) Code() int
Code gets the status code for the session service get user info default response
func (*SessionServiceGetUserInfoDefault) Error ¶
func (o *SessionServiceGetUserInfoDefault) Error() string
func (*SessionServiceGetUserInfoDefault) GetPayload ¶
func (o *SessionServiceGetUserInfoDefault) GetPayload() *models.RuntimeError
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 (o *SessionServiceGetUserInfoOK) Error() string
func (*SessionServiceGetUserInfoOK) GetPayload ¶
func (o *SessionServiceGetUserInfoOK) GetPayload() *models.SessionGetUserInfoResponse
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 ¶
func (o *SessionServiceGetUserInfoParams) WithContext(ctx context.Context) *SessionServiceGetUserInfoParams
WithContext adds the context to the session service get user info params
func (*SessionServiceGetUserInfoParams) WithDefaults ¶
func (o *SessionServiceGetUserInfoParams) WithDefaults() *SessionServiceGetUserInfoParams
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 ¶
func (o *SessionServiceGetUserInfoParams) WithHTTPClient(client *http.Client) *SessionServiceGetUserInfoParams
WithHTTPClient adds the HTTPClient to the session service get user info params
func (*SessionServiceGetUserInfoParams) WithTimeout ¶
func (o *SessionServiceGetUserInfoParams) WithTimeout(timeout time.Duration) *SessionServiceGetUserInfoParams
WithTimeout adds the timeout to the session service get user info params
func (*SessionServiceGetUserInfoParams) WriteToRequest ¶
func (o *SessionServiceGetUserInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.