Documentation ¶
Index ¶
- type Client
- func (a *Client) GetLoginInfo(params *GetLoginInfoParams, opts ...ClientOption) (*GetLoginInfoOK, error)
- func (a *Client) GetSessionInformation(params *GetSessionInformationParams, opts ...ClientOption) (*GetSessionInformationOK, error)
- func (a *Client) Login(params *LoginParams, opts ...ClientOption) error
- func (a *Client) Logout(params *LogoutParams, opts ...ClientOption) error
- func (a *Client) RefreshToken(params *RefreshTokenParams, opts ...ClientOption) error
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetLoginInfoOK
- func (o *GetLoginInfoOK) Code() int
- func (o *GetLoginInfoOK) Error() string
- func (o *GetLoginInfoOK) GetPayload() *models.LoginData
- func (o *GetLoginInfoOK) IsClientError() bool
- func (o *GetLoginInfoOK) IsCode(code int) bool
- func (o *GetLoginInfoOK) IsRedirect() bool
- func (o *GetLoginInfoOK) IsServerError() bool
- func (o *GetLoginInfoOK) IsSuccess() bool
- func (o *GetLoginInfoOK) String() string
- type GetLoginInfoParams
- func (o *GetLoginInfoParams) SetContext(ctx context.Context)
- func (o *GetLoginInfoParams) SetDefaults()
- func (o *GetLoginInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetLoginInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetLoginInfoParams) WithContext(ctx context.Context) *GetLoginInfoParams
- func (o *GetLoginInfoParams) WithDefaults() *GetLoginInfoParams
- func (o *GetLoginInfoParams) WithHTTPClient(client *http.Client) *GetLoginInfoParams
- func (o *GetLoginInfoParams) WithTimeout(timeout time.Duration) *GetLoginInfoParams
- func (o *GetLoginInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLoginInfoReader
- type GetSessionInformationOK
- func (o *GetSessionInformationOK) Code() int
- func (o *GetSessionInformationOK) Error() string
- func (o *GetSessionInformationOK) GetPayload() *models.LoginData
- func (o *GetSessionInformationOK) IsClientError() bool
- func (o *GetSessionInformationOK) IsCode(code int) bool
- func (o *GetSessionInformationOK) IsRedirect() bool
- func (o *GetSessionInformationOK) IsServerError() bool
- func (o *GetSessionInformationOK) IsSuccess() bool
- func (o *GetSessionInformationOK) String() string
- type GetSessionInformationParams
- func NewGetSessionInformationParams() *GetSessionInformationParams
- func NewGetSessionInformationParamsWithContext(ctx context.Context) *GetSessionInformationParams
- func NewGetSessionInformationParamsWithHTTPClient(client *http.Client) *GetSessionInformationParams
- func NewGetSessionInformationParamsWithTimeout(timeout time.Duration) *GetSessionInformationParams
- func (o *GetSessionInformationParams) SetContext(ctx context.Context)
- func (o *GetSessionInformationParams) SetDefaults()
- func (o *GetSessionInformationParams) SetHTTPClient(client *http.Client)
- func (o *GetSessionInformationParams) SetTimeout(timeout time.Duration)
- func (o *GetSessionInformationParams) WithContext(ctx context.Context) *GetSessionInformationParams
- func (o *GetSessionInformationParams) WithDefaults() *GetSessionInformationParams
- func (o *GetSessionInformationParams) WithHTTPClient(client *http.Client) *GetSessionInformationParams
- func (o *GetSessionInformationParams) WithTimeout(timeout time.Duration) *GetSessionInformationParams
- func (o *GetSessionInformationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSessionInformationReader
- type LoginDefault
- func (o *LoginDefault) Code() int
- func (o *LoginDefault) Error() string
- func (o *LoginDefault) IsClientError() bool
- func (o *LoginDefault) IsCode(code int) bool
- func (o *LoginDefault) IsRedirect() bool
- func (o *LoginDefault) IsServerError() bool
- func (o *LoginDefault) IsSuccess() bool
- func (o *LoginDefault) String() string
- type LoginParams
- func (o *LoginParams) SetBody(body *models.Credendials)
- func (o *LoginParams) SetContext(ctx context.Context)
- func (o *LoginParams) SetDefaults()
- func (o *LoginParams) SetHTTPClient(client *http.Client)
- func (o *LoginParams) SetTimeout(timeout time.Duration)
- func (o *LoginParams) WithBody(body *models.Credendials) *LoginParams
- func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
- func (o *LoginParams) WithDefaults() *LoginParams
- func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
- func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
- func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginReader
- type LogoutDefault
- func (o *LogoutDefault) Code() int
- func (o *LogoutDefault) Error() string
- func (o *LogoutDefault) IsClientError() bool
- func (o *LogoutDefault) IsCode(code int) bool
- func (o *LogoutDefault) IsRedirect() bool
- func (o *LogoutDefault) IsServerError() bool
- func (o *LogoutDefault) IsSuccess() bool
- func (o *LogoutDefault) String() string
- type LogoutParams
- func (o *LogoutParams) SetContext(ctx context.Context)
- func (o *LogoutParams) SetDefaults()
- func (o *LogoutParams) SetHTTPClient(client *http.Client)
- func (o *LogoutParams) SetTimeout(timeout time.Duration)
- func (o *LogoutParams) WithContext(ctx context.Context) *LogoutParams
- func (o *LogoutParams) WithDefaults() *LogoutParams
- func (o *LogoutParams) WithHTTPClient(client *http.Client) *LogoutParams
- func (o *LogoutParams) WithTimeout(timeout time.Duration) *LogoutParams
- func (o *LogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LogoutReader
- type RefreshTokenDefault
- func (o *RefreshTokenDefault) Code() int
- func (o *RefreshTokenDefault) Error() string
- func (o *RefreshTokenDefault) IsClientError() bool
- func (o *RefreshTokenDefault) IsCode(code int) bool
- func (o *RefreshTokenDefault) IsRedirect() bool
- func (o *RefreshTokenDefault) IsServerError() bool
- func (o *RefreshTokenDefault) IsSuccess() bool
- func (o *RefreshTokenDefault) String() string
- type RefreshTokenParams
- func (o *RefreshTokenParams) SetContext(ctx context.Context)
- func (o *RefreshTokenParams) SetDefaults()
- func (o *RefreshTokenParams) SetHTTPClient(client *http.Client)
- func (o *RefreshTokenParams) SetTimeout(timeout time.Duration)
- func (o *RefreshTokenParams) WithContext(ctx context.Context) *RefreshTokenParams
- func (o *RefreshTokenParams) WithDefaults() *RefreshTokenParams
- func (o *RefreshTokenParams) WithHTTPClient(client *http.Client) *RefreshTokenParams
- func (o *RefreshTokenParams) WithTimeout(timeout time.Duration) *RefreshTokenParams
- func (o *RefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RefreshTokenReader
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 nutzer API
func (*Client) GetLoginInfo ¶
func (a *Client) GetLoginInfo(params *GetLoginInfoParams, opts ...ClientOption) (*GetLoginInfoOK, error)
GetLoginInfo get login info API
func (*Client) GetSessionInformation ¶
func (a *Client) GetSessionInformation(params *GetSessionInformationParams, opts ...ClientOption) (*GetSessionInformationOK, error)
GetSessionInformation get session information API
func (*Client) Login ¶
func (a *Client) Login(params *LoginParams, opts ...ClientOption) error
Login login API
func (*Client) Logout ¶
func (a *Client) Logout(params *LogoutParams, opts ...ClientOption) error
Logout logout API
func (*Client) RefreshToken ¶
func (a *Client) RefreshToken(params *RefreshTokenParams, opts ...ClientOption) error
RefreshToken refresh token API
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 { GetLoginInfo(params *GetLoginInfoParams, opts ...ClientOption) (*GetLoginInfoOK, error) GetSessionInformation(params *GetSessionInformationParams, opts ...ClientOption) (*GetSessionInformationOK, error) Login(params *LoginParams, opts ...ClientOption) error Logout(params *LogoutParams, opts ...ClientOption) error RefreshToken(params *RefreshTokenParams, opts ...ClientOption) 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 nutzer API client.
type GetLoginInfoOK ¶
GetLoginInfoOK describes a response with status code 200, with default header values.
successful operation
func NewGetLoginInfoOK ¶
func NewGetLoginInfoOK() *GetLoginInfoOK
NewGetLoginInfoOK creates a GetLoginInfoOK with default headers values
func (*GetLoginInfoOK) Code ¶
func (o *GetLoginInfoOK) Code() int
Code gets the status code for the get login info o k response
func (*GetLoginInfoOK) Error ¶
func (o *GetLoginInfoOK) Error() string
func (*GetLoginInfoOK) GetPayload ¶
func (o *GetLoginInfoOK) GetPayload() *models.LoginData
func (*GetLoginInfoOK) IsClientError ¶
func (o *GetLoginInfoOK) IsClientError() bool
IsClientError returns true when this get login info o k response has a 4xx status code
func (*GetLoginInfoOK) IsCode ¶
func (o *GetLoginInfoOK) IsCode(code int) bool
IsCode returns true when this get login info o k response a status code equal to that given
func (*GetLoginInfoOK) IsRedirect ¶
func (o *GetLoginInfoOK) IsRedirect() bool
IsRedirect returns true when this get login info o k response has a 3xx status code
func (*GetLoginInfoOK) IsServerError ¶
func (o *GetLoginInfoOK) IsServerError() bool
IsServerError returns true when this get login info o k response has a 5xx status code
func (*GetLoginInfoOK) IsSuccess ¶
func (o *GetLoginInfoOK) IsSuccess() bool
IsSuccess returns true when this get login info o k response has a 2xx status code
func (*GetLoginInfoOK) String ¶
func (o *GetLoginInfoOK) String() string
type GetLoginInfoParams ¶
type GetLoginInfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLoginInfoParams contains all the parameters to send to the API endpoint
for the get login info operation. Typically these are written to a http.Request.
func NewGetLoginInfoParams ¶
func NewGetLoginInfoParams() *GetLoginInfoParams
NewGetLoginInfoParams creates a new GetLoginInfoParams 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 NewGetLoginInfoParamsWithContext ¶
func NewGetLoginInfoParamsWithContext(ctx context.Context) *GetLoginInfoParams
NewGetLoginInfoParamsWithContext creates a new GetLoginInfoParams object with the ability to set a context for a request.
func NewGetLoginInfoParamsWithHTTPClient ¶
func NewGetLoginInfoParamsWithHTTPClient(client *http.Client) *GetLoginInfoParams
NewGetLoginInfoParamsWithHTTPClient creates a new GetLoginInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetLoginInfoParamsWithTimeout ¶
func NewGetLoginInfoParamsWithTimeout(timeout time.Duration) *GetLoginInfoParams
NewGetLoginInfoParamsWithTimeout creates a new GetLoginInfoParams object with the ability to set a timeout on a request.
func (*GetLoginInfoParams) SetContext ¶
func (o *GetLoginInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get login info params
func (*GetLoginInfoParams) SetDefaults ¶
func (o *GetLoginInfoParams) SetDefaults()
SetDefaults hydrates default values in the get login info params (not the query body).
All values with no default are reset to their zero value.
func (*GetLoginInfoParams) SetHTTPClient ¶
func (o *GetLoginInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get login info params
func (*GetLoginInfoParams) SetTimeout ¶
func (o *GetLoginInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get login info params
func (*GetLoginInfoParams) WithContext ¶
func (o *GetLoginInfoParams) WithContext(ctx context.Context) *GetLoginInfoParams
WithContext adds the context to the get login info params
func (*GetLoginInfoParams) WithDefaults ¶
func (o *GetLoginInfoParams) WithDefaults() *GetLoginInfoParams
WithDefaults hydrates default values in the get login info params (not the query body).
All values with no default are reset to their zero value.
func (*GetLoginInfoParams) WithHTTPClient ¶
func (o *GetLoginInfoParams) WithHTTPClient(client *http.Client) *GetLoginInfoParams
WithHTTPClient adds the HTTPClient to the get login info params
func (*GetLoginInfoParams) WithTimeout ¶
func (o *GetLoginInfoParams) WithTimeout(timeout time.Duration) *GetLoginInfoParams
WithTimeout adds the timeout to the get login info params
func (*GetLoginInfoParams) WriteToRequest ¶
func (o *GetLoginInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLoginInfoReader ¶
type GetLoginInfoReader struct {
// contains filtered or unexported fields
}
GetLoginInfoReader is a Reader for the GetLoginInfo structure.
func (*GetLoginInfoReader) ReadResponse ¶
func (o *GetLoginInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSessionInformationOK ¶
GetSessionInformationOK describes a response with status code 200, with default header values.
successful operation
func NewGetSessionInformationOK ¶
func NewGetSessionInformationOK() *GetSessionInformationOK
NewGetSessionInformationOK creates a GetSessionInformationOK with default headers values
func (*GetSessionInformationOK) Code ¶
func (o *GetSessionInformationOK) Code() int
Code gets the status code for the get session information o k response
func (*GetSessionInformationOK) Error ¶
func (o *GetSessionInformationOK) Error() string
func (*GetSessionInformationOK) GetPayload ¶
func (o *GetSessionInformationOK) GetPayload() *models.LoginData
func (*GetSessionInformationOK) IsClientError ¶
func (o *GetSessionInformationOK) IsClientError() bool
IsClientError returns true when this get session information o k response has a 4xx status code
func (*GetSessionInformationOK) IsCode ¶
func (o *GetSessionInformationOK) IsCode(code int) bool
IsCode returns true when this get session information o k response a status code equal to that given
func (*GetSessionInformationOK) IsRedirect ¶
func (o *GetSessionInformationOK) IsRedirect() bool
IsRedirect returns true when this get session information o k response has a 3xx status code
func (*GetSessionInformationOK) IsServerError ¶
func (o *GetSessionInformationOK) IsServerError() bool
IsServerError returns true when this get session information o k response has a 5xx status code
func (*GetSessionInformationOK) IsSuccess ¶
func (o *GetSessionInformationOK) IsSuccess() bool
IsSuccess returns true when this get session information o k response has a 2xx status code
func (*GetSessionInformationOK) String ¶
func (o *GetSessionInformationOK) String() string
type GetSessionInformationParams ¶
type GetSessionInformationParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSessionInformationParams contains all the parameters to send to the API endpoint
for the get session information operation. Typically these are written to a http.Request.
func NewGetSessionInformationParams ¶
func NewGetSessionInformationParams() *GetSessionInformationParams
NewGetSessionInformationParams creates a new GetSessionInformationParams 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 NewGetSessionInformationParamsWithContext ¶
func NewGetSessionInformationParamsWithContext(ctx context.Context) *GetSessionInformationParams
NewGetSessionInformationParamsWithContext creates a new GetSessionInformationParams object with the ability to set a context for a request.
func NewGetSessionInformationParamsWithHTTPClient ¶
func NewGetSessionInformationParamsWithHTTPClient(client *http.Client) *GetSessionInformationParams
NewGetSessionInformationParamsWithHTTPClient creates a new GetSessionInformationParams object with the ability to set a custom HTTPClient for a request.
func NewGetSessionInformationParamsWithTimeout ¶
func NewGetSessionInformationParamsWithTimeout(timeout time.Duration) *GetSessionInformationParams
NewGetSessionInformationParamsWithTimeout creates a new GetSessionInformationParams object with the ability to set a timeout on a request.
func (*GetSessionInformationParams) SetContext ¶
func (o *GetSessionInformationParams) SetContext(ctx context.Context)
SetContext adds the context to the get session information params
func (*GetSessionInformationParams) SetDefaults ¶
func (o *GetSessionInformationParams) SetDefaults()
SetDefaults hydrates default values in the get session information params (not the query body).
All values with no default are reset to their zero value.
func (*GetSessionInformationParams) SetHTTPClient ¶
func (o *GetSessionInformationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get session information params
func (*GetSessionInformationParams) SetTimeout ¶
func (o *GetSessionInformationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get session information params
func (*GetSessionInformationParams) WithContext ¶
func (o *GetSessionInformationParams) WithContext(ctx context.Context) *GetSessionInformationParams
WithContext adds the context to the get session information params
func (*GetSessionInformationParams) WithDefaults ¶
func (o *GetSessionInformationParams) WithDefaults() *GetSessionInformationParams
WithDefaults hydrates default values in the get session information params (not the query body).
All values with no default are reset to their zero value.
func (*GetSessionInformationParams) WithHTTPClient ¶
func (o *GetSessionInformationParams) WithHTTPClient(client *http.Client) *GetSessionInformationParams
WithHTTPClient adds the HTTPClient to the get session information params
func (*GetSessionInformationParams) WithTimeout ¶
func (o *GetSessionInformationParams) WithTimeout(timeout time.Duration) *GetSessionInformationParams
WithTimeout adds the timeout to the get session information params
func (*GetSessionInformationParams) WriteToRequest ¶
func (o *GetSessionInformationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSessionInformationReader ¶
type GetSessionInformationReader struct {
// contains filtered or unexported fields
}
GetSessionInformationReader is a Reader for the GetSessionInformation structure.
func (*GetSessionInformationReader) ReadResponse ¶
func (o *GetSessionInformationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LoginDefault ¶
type LoginDefault struct {
// contains filtered or unexported fields
}
LoginDefault describes a response with status code -1, with default header values.
successful operation
func NewLoginDefault ¶
func NewLoginDefault(code int) *LoginDefault
NewLoginDefault creates a LoginDefault with default headers values
func (*LoginDefault) Code ¶
func (o *LoginDefault) Code() int
Code gets the status code for the login default response
func (*LoginDefault) Error ¶
func (o *LoginDefault) Error() string
func (*LoginDefault) IsClientError ¶
func (o *LoginDefault) IsClientError() bool
IsClientError returns true when this login default response has a 4xx status code
func (*LoginDefault) IsCode ¶
func (o *LoginDefault) IsCode(code int) bool
IsCode returns true when this login default response a status code equal to that given
func (*LoginDefault) IsRedirect ¶
func (o *LoginDefault) IsRedirect() bool
IsRedirect returns true when this login default response has a 3xx status code
func (*LoginDefault) IsServerError ¶
func (o *LoginDefault) IsServerError() bool
IsServerError returns true when this login default response has a 5xx status code
func (*LoginDefault) IsSuccess ¶
func (o *LoginDefault) IsSuccess() bool
IsSuccess returns true when this login default response has a 2xx status code
func (*LoginDefault) String ¶
func (o *LoginDefault) String() string
type LoginParams ¶
type LoginParams struct { // Body. Body *models.Credendials Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LoginParams contains all the parameters to send to the API endpoint
for the login operation. Typically these are written to a http.Request.
func NewLoginParams ¶
func NewLoginParams() *LoginParams
NewLoginParams creates a new LoginParams 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 NewLoginParamsWithContext ¶
func NewLoginParamsWithContext(ctx context.Context) *LoginParams
NewLoginParamsWithContext creates a new LoginParams object with the ability to set a context for a request.
func NewLoginParamsWithHTTPClient ¶
func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams
NewLoginParamsWithHTTPClient creates a new LoginParams object with the ability to set a custom HTTPClient for a request.
func NewLoginParamsWithTimeout ¶
func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams
NewLoginParamsWithTimeout creates a new LoginParams object with the ability to set a timeout on a request.
func (*LoginParams) SetBody ¶
func (o *LoginParams) SetBody(body *models.Credendials)
SetBody adds the body to the login params
func (*LoginParams) SetContext ¶
func (o *LoginParams) SetContext(ctx context.Context)
SetContext adds the context to the login params
func (*LoginParams) SetDefaults ¶
func (o *LoginParams) SetDefaults()
SetDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) SetHTTPClient ¶
func (o *LoginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the login params
func (*LoginParams) SetTimeout ¶
func (o *LoginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the login params
func (*LoginParams) WithBody ¶
func (o *LoginParams) WithBody(body *models.Credendials) *LoginParams
WithBody adds the body to the login params
func (*LoginParams) WithContext ¶
func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
WithContext adds the context to the login params
func (*LoginParams) WithDefaults ¶
func (o *LoginParams) WithDefaults() *LoginParams
WithDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) WithHTTPClient ¶
func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
WithHTTPClient adds the HTTPClient to the login params
func (*LoginParams) WithTimeout ¶
func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
WithTimeout adds the timeout to the login params
func (*LoginParams) WriteToRequest ¶
func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LoginReader ¶
type LoginReader struct {
// contains filtered or unexported fields
}
LoginReader is a Reader for the Login structure.
func (*LoginReader) ReadResponse ¶
func (o *LoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LogoutDefault ¶
type LogoutDefault struct {
// contains filtered or unexported fields
}
LogoutDefault describes a response with status code -1, with default header values.
successful operation
func NewLogoutDefault ¶
func NewLogoutDefault(code int) *LogoutDefault
NewLogoutDefault creates a LogoutDefault with default headers values
func (*LogoutDefault) Code ¶
func (o *LogoutDefault) Code() int
Code gets the status code for the logout default response
func (*LogoutDefault) Error ¶
func (o *LogoutDefault) Error() string
func (*LogoutDefault) IsClientError ¶
func (o *LogoutDefault) IsClientError() bool
IsClientError returns true when this logout default response has a 4xx status code
func (*LogoutDefault) IsCode ¶
func (o *LogoutDefault) IsCode(code int) bool
IsCode returns true when this logout default response a status code equal to that given
func (*LogoutDefault) IsRedirect ¶
func (o *LogoutDefault) IsRedirect() bool
IsRedirect returns true when this logout default response has a 3xx status code
func (*LogoutDefault) IsServerError ¶
func (o *LogoutDefault) IsServerError() bool
IsServerError returns true when this logout default response has a 5xx status code
func (*LogoutDefault) IsSuccess ¶
func (o *LogoutDefault) IsSuccess() bool
IsSuccess returns true when this logout default response has a 2xx status code
func (*LogoutDefault) String ¶
func (o *LogoutDefault) String() string
type LogoutParams ¶
type LogoutParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LogoutParams contains all the parameters to send to the API endpoint
for the logout operation. Typically these are written to a http.Request.
func NewLogoutParams ¶
func NewLogoutParams() *LogoutParams
NewLogoutParams creates a new LogoutParams 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 NewLogoutParamsWithContext ¶
func NewLogoutParamsWithContext(ctx context.Context) *LogoutParams
NewLogoutParamsWithContext creates a new LogoutParams object with the ability to set a context for a request.
func NewLogoutParamsWithHTTPClient ¶
func NewLogoutParamsWithHTTPClient(client *http.Client) *LogoutParams
NewLogoutParamsWithHTTPClient creates a new LogoutParams object with the ability to set a custom HTTPClient for a request.
func NewLogoutParamsWithTimeout ¶
func NewLogoutParamsWithTimeout(timeout time.Duration) *LogoutParams
NewLogoutParamsWithTimeout creates a new LogoutParams object with the ability to set a timeout on a request.
func (*LogoutParams) SetContext ¶
func (o *LogoutParams) SetContext(ctx context.Context)
SetContext adds the context to the logout params
func (*LogoutParams) SetDefaults ¶
func (o *LogoutParams) SetDefaults()
SetDefaults hydrates default values in the logout params (not the query body).
All values with no default are reset to their zero value.
func (*LogoutParams) SetHTTPClient ¶
func (o *LogoutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the logout params
func (*LogoutParams) SetTimeout ¶
func (o *LogoutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the logout params
func (*LogoutParams) WithContext ¶
func (o *LogoutParams) WithContext(ctx context.Context) *LogoutParams
WithContext adds the context to the logout params
func (*LogoutParams) WithDefaults ¶
func (o *LogoutParams) WithDefaults() *LogoutParams
WithDefaults hydrates default values in the logout params (not the query body).
All values with no default are reset to their zero value.
func (*LogoutParams) WithHTTPClient ¶
func (o *LogoutParams) WithHTTPClient(client *http.Client) *LogoutParams
WithHTTPClient adds the HTTPClient to the logout params
func (*LogoutParams) WithTimeout ¶
func (o *LogoutParams) WithTimeout(timeout time.Duration) *LogoutParams
WithTimeout adds the timeout to the logout params
func (*LogoutParams) WriteToRequest ¶
func (o *LogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LogoutReader ¶
type LogoutReader struct {
// contains filtered or unexported fields
}
LogoutReader is a Reader for the Logout structure.
func (*LogoutReader) ReadResponse ¶
func (o *LogoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RefreshTokenDefault ¶
type RefreshTokenDefault struct {
// contains filtered or unexported fields
}
RefreshTokenDefault describes a response with status code -1, with default header values.
successful operation
func NewRefreshTokenDefault ¶
func NewRefreshTokenDefault(code int) *RefreshTokenDefault
NewRefreshTokenDefault creates a RefreshTokenDefault with default headers values
func (*RefreshTokenDefault) Code ¶
func (o *RefreshTokenDefault) Code() int
Code gets the status code for the refresh token default response
func (*RefreshTokenDefault) Error ¶
func (o *RefreshTokenDefault) Error() string
func (*RefreshTokenDefault) IsClientError ¶
func (o *RefreshTokenDefault) IsClientError() bool
IsClientError returns true when this refresh token default response has a 4xx status code
func (*RefreshTokenDefault) IsCode ¶
func (o *RefreshTokenDefault) IsCode(code int) bool
IsCode returns true when this refresh token default response a status code equal to that given
func (*RefreshTokenDefault) IsRedirect ¶
func (o *RefreshTokenDefault) IsRedirect() bool
IsRedirect returns true when this refresh token default response has a 3xx status code
func (*RefreshTokenDefault) IsServerError ¶
func (o *RefreshTokenDefault) IsServerError() bool
IsServerError returns true when this refresh token default response has a 5xx status code
func (*RefreshTokenDefault) IsSuccess ¶
func (o *RefreshTokenDefault) IsSuccess() bool
IsSuccess returns true when this refresh token default response has a 2xx status code
func (*RefreshTokenDefault) String ¶
func (o *RefreshTokenDefault) String() string
type RefreshTokenParams ¶
type RefreshTokenParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RefreshTokenParams contains all the parameters to send to the API endpoint
for the refresh token operation. Typically these are written to a http.Request.
func NewRefreshTokenParams ¶
func NewRefreshTokenParams() *RefreshTokenParams
NewRefreshTokenParams creates a new RefreshTokenParams 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 NewRefreshTokenParamsWithContext ¶
func NewRefreshTokenParamsWithContext(ctx context.Context) *RefreshTokenParams
NewRefreshTokenParamsWithContext creates a new RefreshTokenParams object with the ability to set a context for a request.
func NewRefreshTokenParamsWithHTTPClient ¶
func NewRefreshTokenParamsWithHTTPClient(client *http.Client) *RefreshTokenParams
NewRefreshTokenParamsWithHTTPClient creates a new RefreshTokenParams object with the ability to set a custom HTTPClient for a request.
func NewRefreshTokenParamsWithTimeout ¶
func NewRefreshTokenParamsWithTimeout(timeout time.Duration) *RefreshTokenParams
NewRefreshTokenParamsWithTimeout creates a new RefreshTokenParams object with the ability to set a timeout on a request.
func (*RefreshTokenParams) SetContext ¶
func (o *RefreshTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the refresh token params
func (*RefreshTokenParams) SetDefaults ¶
func (o *RefreshTokenParams) SetDefaults()
SetDefaults hydrates default values in the refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshTokenParams) SetHTTPClient ¶
func (o *RefreshTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the refresh token params
func (*RefreshTokenParams) SetTimeout ¶
func (o *RefreshTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the refresh token params
func (*RefreshTokenParams) WithContext ¶
func (o *RefreshTokenParams) WithContext(ctx context.Context) *RefreshTokenParams
WithContext adds the context to the refresh token params
func (*RefreshTokenParams) WithDefaults ¶
func (o *RefreshTokenParams) WithDefaults() *RefreshTokenParams
WithDefaults hydrates default values in the refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*RefreshTokenParams) WithHTTPClient ¶
func (o *RefreshTokenParams) WithHTTPClient(client *http.Client) *RefreshTokenParams
WithHTTPClient adds the HTTPClient to the refresh token params
func (*RefreshTokenParams) WithTimeout ¶
func (o *RefreshTokenParams) WithTimeout(timeout time.Duration) *RefreshTokenParams
WithTimeout adds the timeout to the refresh token params
func (*RefreshTokenParams) WriteToRequest ¶
func (o *RefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RefreshTokenReader ¶
type RefreshTokenReader struct {
// contains filtered or unexported fields
}
RefreshTokenReader is a Reader for the RefreshToken structure.
func (*RefreshTokenReader) ReadResponse ¶
func (o *RefreshTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.