Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TerminateSession(params *TerminateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*TerminateSessionOK, error)
- func (a *Client) ValidateSession(params *ValidateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateSessionOK, error)
- type NewSessionOK
- type NewSessionParams
- func (o *NewSessionParams) SetContext(ctx context.Context)
- func (o *NewSessionParams) SetHTTPClient(client *http.Client)
- func (o *NewSessionParams) SetLoginRequest(loginRequest *models.SessionCreateRequest)
- func (o *NewSessionParams) SetTimeout(timeout time.Duration)
- func (o *NewSessionParams) WithContext(ctx context.Context) *NewSessionParams
- func (o *NewSessionParams) WithHTTPClient(client *http.Client) *NewSessionParams
- func (o *NewSessionParams) WithLoginRequest(loginRequest *models.SessionCreateRequest) *NewSessionParams
- func (o *NewSessionParams) WithTimeout(timeout time.Duration) *NewSessionParams
- func (o *NewSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NewSessionReader
- type TerminateSessionOK
- type TerminateSessionParams
- func NewTerminateSessionParams() *TerminateSessionParams
- func NewTerminateSessionParamsWithContext(ctx context.Context) *TerminateSessionParams
- func NewTerminateSessionParamsWithHTTPClient(client *http.Client) *TerminateSessionParams
- func NewTerminateSessionParamsWithTimeout(timeout time.Duration) *TerminateSessionParams
- func (o *TerminateSessionParams) SetContext(ctx context.Context)
- func (o *TerminateSessionParams) SetHTTPClient(client *http.Client)
- func (o *TerminateSessionParams) SetSessionID(sessionID string)
- func (o *TerminateSessionParams) SetTimeout(timeout time.Duration)
- func (o *TerminateSessionParams) WithContext(ctx context.Context) *TerminateSessionParams
- func (o *TerminateSessionParams) WithHTTPClient(client *http.Client) *TerminateSessionParams
- func (o *TerminateSessionParams) WithSessionID(sessionID string) *TerminateSessionParams
- func (o *TerminateSessionParams) WithTimeout(timeout time.Duration) *TerminateSessionParams
- func (o *TerminateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TerminateSessionReader
- type ValidateSessionOK
- type ValidateSessionParams
- func NewValidateSessionParams() *ValidateSessionParams
- func NewValidateSessionParamsWithContext(ctx context.Context) *ValidateSessionParams
- func NewValidateSessionParamsWithHTTPClient(client *http.Client) *ValidateSessionParams
- func NewValidateSessionParamsWithTimeout(timeout time.Duration) *ValidateSessionParams
- func (o *ValidateSessionParams) SetContext(ctx context.Context)
- func (o *ValidateSessionParams) SetHTTPClient(client *http.Client)
- func (o *ValidateSessionParams) SetTimeout(timeout time.Duration)
- func (o *ValidateSessionParams) WithContext(ctx context.Context) *ValidateSessionParams
- func (o *ValidateSessionParams) WithHTTPClient(client *http.Client) *ValidateSessionParams
- func (o *ValidateSessionParams) WithTimeout(timeout time.Duration) *ValidateSessionParams
- func (o *ValidateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidateSessionReader
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 system shutdown API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new system shutdown API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TerminateSession ¶
func (a *Client) TerminateSession(params *TerminateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*TerminateSessionOK, error)
TerminateSession terminates an existing session
Destroys the session with the given ID: the equivalent of logging out.
func (*Client) ValidateSession ¶
func (a *Client) ValidateSession(params *ValidateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateSessionOK, error)
ValidateSession validates an existing session
Checks the session with the given ID: returns http status 204 (No Content) if session is valid.
type NewSessionOK ¶
type NewSessionOK struct {
Payload *models.SessionResponse
}
NewSessionOK handles this case with default header values.
No response was specified
func NewNewSessionOK ¶
func NewNewSessionOK() *NewSessionOK
NewNewSessionOK creates a NewSessionOK with default headers values
func (*NewSessionOK) Error ¶
func (o *NewSessionOK) Error() string
type NewSessionParams ¶
type NewSessionParams struct { /*LoginRequest Username and credentials */ LoginRequest *models.SessionCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NewSessionParams contains all the parameters to send to the API endpoint for the new session operation typically these are written to a http.Request
func NewNewSessionParams ¶
func NewNewSessionParams() *NewSessionParams
NewNewSessionParams creates a new NewSessionParams object with the default values initialized.
func NewNewSessionParamsWithContext ¶
func NewNewSessionParamsWithContext(ctx context.Context) *NewSessionParams
NewNewSessionParamsWithContext creates a new NewSessionParams object with the default values initialized, and the ability to set a context for a request
func NewNewSessionParamsWithHTTPClient ¶
func NewNewSessionParamsWithHTTPClient(client *http.Client) *NewSessionParams
NewNewSessionParamsWithHTTPClient creates a new NewSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewNewSessionParamsWithTimeout ¶
func NewNewSessionParamsWithTimeout(timeout time.Duration) *NewSessionParams
NewNewSessionParamsWithTimeout creates a new NewSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*NewSessionParams) SetContext ¶
func (o *NewSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the new session params
func (*NewSessionParams) SetHTTPClient ¶
func (o *NewSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the new session params
func (*NewSessionParams) SetLoginRequest ¶
func (o *NewSessionParams) SetLoginRequest(loginRequest *models.SessionCreateRequest)
SetLoginRequest adds the loginRequest to the new session params
func (*NewSessionParams) SetTimeout ¶
func (o *NewSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the new session params
func (*NewSessionParams) WithContext ¶
func (o *NewSessionParams) WithContext(ctx context.Context) *NewSessionParams
WithContext adds the context to the new session params
func (*NewSessionParams) WithHTTPClient ¶
func (o *NewSessionParams) WithHTTPClient(client *http.Client) *NewSessionParams
WithHTTPClient adds the HTTPClient to the new session params
func (*NewSessionParams) WithLoginRequest ¶
func (o *NewSessionParams) WithLoginRequest(loginRequest *models.SessionCreateRequest) *NewSessionParams
WithLoginRequest adds the loginRequest to the new session params
func (*NewSessionParams) WithTimeout ¶
func (o *NewSessionParams) WithTimeout(timeout time.Duration) *NewSessionParams
WithTimeout adds the timeout to the new session params
func (*NewSessionParams) WriteToRequest ¶
func (o *NewSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NewSessionReader ¶
type NewSessionReader struct {
// contains filtered or unexported fields
}
NewSessionReader is a Reader for the NewSession structure.
func (*NewSessionReader) ReadResponse ¶
func (o *NewSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TerminateSessionOK ¶
type TerminateSessionOK struct { }
TerminateSessionOK handles this case with default header values.
No response was specified
func NewTerminateSessionOK ¶
func NewTerminateSessionOK() *TerminateSessionOK
NewTerminateSessionOK creates a TerminateSessionOK with default headers values
func (*TerminateSessionOK) Error ¶
func (o *TerminateSessionOK) Error() string
type TerminateSessionParams ¶
type TerminateSessionParams struct { /*SessionID*/ SessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TerminateSessionParams contains all the parameters to send to the API endpoint for the terminate session operation typically these are written to a http.Request
func NewTerminateSessionParams ¶
func NewTerminateSessionParams() *TerminateSessionParams
NewTerminateSessionParams creates a new TerminateSessionParams object with the default values initialized.
func NewTerminateSessionParamsWithContext ¶
func NewTerminateSessionParamsWithContext(ctx context.Context) *TerminateSessionParams
NewTerminateSessionParamsWithContext creates a new TerminateSessionParams object with the default values initialized, and the ability to set a context for a request
func NewTerminateSessionParamsWithHTTPClient ¶
func NewTerminateSessionParamsWithHTTPClient(client *http.Client) *TerminateSessionParams
NewTerminateSessionParamsWithHTTPClient creates a new TerminateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTerminateSessionParamsWithTimeout ¶
func NewTerminateSessionParamsWithTimeout(timeout time.Duration) *TerminateSessionParams
NewTerminateSessionParamsWithTimeout creates a new TerminateSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*TerminateSessionParams) SetContext ¶
func (o *TerminateSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the terminate session params
func (*TerminateSessionParams) SetHTTPClient ¶
func (o *TerminateSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the terminate session params
func (*TerminateSessionParams) SetSessionID ¶
func (o *TerminateSessionParams) SetSessionID(sessionID string)
SetSessionID adds the sessionId to the terminate session params
func (*TerminateSessionParams) SetTimeout ¶
func (o *TerminateSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the terminate session params
func (*TerminateSessionParams) WithContext ¶
func (o *TerminateSessionParams) WithContext(ctx context.Context) *TerminateSessionParams
WithContext adds the context to the terminate session params
func (*TerminateSessionParams) WithHTTPClient ¶
func (o *TerminateSessionParams) WithHTTPClient(client *http.Client) *TerminateSessionParams
WithHTTPClient adds the HTTPClient to the terminate session params
func (*TerminateSessionParams) WithSessionID ¶
func (o *TerminateSessionParams) WithSessionID(sessionID string) *TerminateSessionParams
WithSessionID adds the sessionID to the terminate session params
func (*TerminateSessionParams) WithTimeout ¶
func (o *TerminateSessionParams) WithTimeout(timeout time.Duration) *TerminateSessionParams
WithTimeout adds the timeout to the terminate session params
func (*TerminateSessionParams) WriteToRequest ¶
func (o *TerminateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TerminateSessionReader ¶
type TerminateSessionReader struct {
// contains filtered or unexported fields
}
TerminateSessionReader is a Reader for the TerminateSession structure.
func (*TerminateSessionReader) ReadResponse ¶
func (o *TerminateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ValidateSessionOK ¶
type ValidateSessionOK struct {
Payload *models.SessionValidationResponse
}
ValidateSessionOK handles this case with default header values.
No response was specified
func NewValidateSessionOK ¶
func NewValidateSessionOK() *ValidateSessionOK
NewValidateSessionOK creates a ValidateSessionOK with default headers values
func (*ValidateSessionOK) Error ¶
func (o *ValidateSessionOK) Error() string
type ValidateSessionParams ¶
type ValidateSessionParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ValidateSessionParams contains all the parameters to send to the API endpoint for the validate session operation typically these are written to a http.Request
func NewValidateSessionParams ¶
func NewValidateSessionParams() *ValidateSessionParams
NewValidateSessionParams creates a new ValidateSessionParams object with the default values initialized.
func NewValidateSessionParamsWithContext ¶
func NewValidateSessionParamsWithContext(ctx context.Context) *ValidateSessionParams
NewValidateSessionParamsWithContext creates a new ValidateSessionParams object with the default values initialized, and the ability to set a context for a request
func NewValidateSessionParamsWithHTTPClient ¶
func NewValidateSessionParamsWithHTTPClient(client *http.Client) *ValidateSessionParams
NewValidateSessionParamsWithHTTPClient creates a new ValidateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewValidateSessionParamsWithTimeout ¶
func NewValidateSessionParamsWithTimeout(timeout time.Duration) *ValidateSessionParams
NewValidateSessionParamsWithTimeout creates a new ValidateSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*ValidateSessionParams) SetContext ¶
func (o *ValidateSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the validate session params
func (*ValidateSessionParams) SetHTTPClient ¶
func (o *ValidateSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the validate session params
func (*ValidateSessionParams) SetTimeout ¶
func (o *ValidateSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the validate session params
func (*ValidateSessionParams) WithContext ¶
func (o *ValidateSessionParams) WithContext(ctx context.Context) *ValidateSessionParams
WithContext adds the context to the validate session params
func (*ValidateSessionParams) WithHTTPClient ¶
func (o *ValidateSessionParams) WithHTTPClient(client *http.Client) *ValidateSessionParams
WithHTTPClient adds the HTTPClient to the validate session params
func (*ValidateSessionParams) WithTimeout ¶
func (o *ValidateSessionParams) WithTimeout(timeout time.Duration) *ValidateSessionParams
WithTimeout adds the timeout to the validate session params
func (*ValidateSessionParams) WriteToRequest ¶
func (o *ValidateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ValidateSessionReader ¶
type ValidateSessionReader struct {
// contains filtered or unexported fields
}
ValidateSessionReader is a Reader for the ValidateSession structure.
func (*ValidateSessionReader) ReadResponse ¶
func (o *ValidateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.