Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PostLogoutBadRequest
- func (o *PostLogoutBadRequest) Code() int
- func (o *PostLogoutBadRequest) Error() string
- func (o *PostLogoutBadRequest) GetPayload() string
- func (o *PostLogoutBadRequest) IsClientError() bool
- func (o *PostLogoutBadRequest) IsCode(code int) bool
- func (o *PostLogoutBadRequest) IsRedirect() bool
- func (o *PostLogoutBadRequest) IsServerError() bool
- func (o *PostLogoutBadRequest) IsSuccess() bool
- func (o *PostLogoutBadRequest) String() string
- type PostLogoutInternalServerError
- func (o *PostLogoutInternalServerError) Code() int
- func (o *PostLogoutInternalServerError) Error() string
- func (o *PostLogoutInternalServerError) GetPayload() string
- func (o *PostLogoutInternalServerError) IsClientError() bool
- func (o *PostLogoutInternalServerError) IsCode(code int) bool
- func (o *PostLogoutInternalServerError) IsRedirect() bool
- func (o *PostLogoutInternalServerError) IsServerError() bool
- func (o *PostLogoutInternalServerError) IsSuccess() bool
- func (o *PostLogoutInternalServerError) String() string
- type PostLogoutOK
- func (o *PostLogoutOK) Code() int
- func (o *PostLogoutOK) Error() string
- func (o *PostLogoutOK) GetPayload() string
- func (o *PostLogoutOK) IsClientError() bool
- func (o *PostLogoutOK) IsCode(code int) bool
- func (o *PostLogoutOK) IsRedirect() bool
- func (o *PostLogoutOK) IsServerError() bool
- func (o *PostLogoutOK) IsSuccess() bool
- func (o *PostLogoutOK) String() string
- type PostLogoutParams
- func (o *PostLogoutParams) SetContext(ctx context.Context)
- func (o *PostLogoutParams) SetDefaults()
- func (o *PostLogoutParams) SetHTTPClient(client *http.Client)
- func (o *PostLogoutParams) SetTimeout(timeout time.Duration)
- func (o *PostLogoutParams) WithContext(ctx context.Context) *PostLogoutParams
- func (o *PostLogoutParams) WithDefaults() *PostLogoutParams
- func (o *PostLogoutParams) WithHTTPClient(client *http.Client) *PostLogoutParams
- func (o *PostLogoutParams) WithTimeout(timeout time.Duration) *PostLogoutParams
- func (o *PostLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostLogoutReader
- type PostLogoutUnauthorized
- func (o *PostLogoutUnauthorized) Code() int
- func (o *PostLogoutUnauthorized) Error() string
- func (o *PostLogoutUnauthorized) GetPayload() string
- func (o *PostLogoutUnauthorized) IsClientError() bool
- func (o *PostLogoutUnauthorized) IsCode(code int) bool
- func (o *PostLogoutUnauthorized) IsRedirect() bool
- func (o *PostLogoutUnauthorized) IsServerError() bool
- func (o *PostLogoutUnauthorized) IsSuccess() bool
- func (o *PostLogoutUnauthorized) String() string
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 logout API
func (*Client) PostLogout ¶
func (a *Client) PostLogout(params *PostLogoutParams, opts ...ClientOption) (*PostLogoutOK, error)
PostLogout logouts logs out a user
Logout logs out a user
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 { PostLogout(params *PostLogoutParams, opts ...ClientOption) (*PostLogoutOK, 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 logout API client.
type PostLogoutBadRequest ¶
type PostLogoutBadRequest struct {
Payload string
}
PostLogoutBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostLogoutBadRequest ¶
func NewPostLogoutBadRequest() *PostLogoutBadRequest
NewPostLogoutBadRequest creates a PostLogoutBadRequest with default headers values
func (*PostLogoutBadRequest) Code ¶
func (o *PostLogoutBadRequest) Code() int
Code gets the status code for the post logout bad request response
func (*PostLogoutBadRequest) Error ¶
func (o *PostLogoutBadRequest) Error() string
func (*PostLogoutBadRequest) GetPayload ¶
func (o *PostLogoutBadRequest) GetPayload() string
func (*PostLogoutBadRequest) IsClientError ¶
func (o *PostLogoutBadRequest) IsClientError() bool
IsClientError returns true when this post logout bad request response has a 4xx status code
func (*PostLogoutBadRequest) IsCode ¶
func (o *PostLogoutBadRequest) IsCode(code int) bool
IsCode returns true when this post logout bad request response a status code equal to that given
func (*PostLogoutBadRequest) IsRedirect ¶
func (o *PostLogoutBadRequest) IsRedirect() bool
IsRedirect returns true when this post logout bad request response has a 3xx status code
func (*PostLogoutBadRequest) IsServerError ¶
func (o *PostLogoutBadRequest) IsServerError() bool
IsServerError returns true when this post logout bad request response has a 5xx status code
func (*PostLogoutBadRequest) IsSuccess ¶
func (o *PostLogoutBadRequest) IsSuccess() bool
IsSuccess returns true when this post logout bad request response has a 2xx status code
func (*PostLogoutBadRequest) String ¶
func (o *PostLogoutBadRequest) String() string
type PostLogoutInternalServerError ¶
type PostLogoutInternalServerError struct {
Payload string
}
PostLogoutInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostLogoutInternalServerError ¶
func NewPostLogoutInternalServerError() *PostLogoutInternalServerError
NewPostLogoutInternalServerError creates a PostLogoutInternalServerError with default headers values
func (*PostLogoutInternalServerError) Code ¶
func (o *PostLogoutInternalServerError) Code() int
Code gets the status code for the post logout internal server error response
func (*PostLogoutInternalServerError) Error ¶
func (o *PostLogoutInternalServerError) Error() string
func (*PostLogoutInternalServerError) GetPayload ¶
func (o *PostLogoutInternalServerError) GetPayload() string
func (*PostLogoutInternalServerError) IsClientError ¶
func (o *PostLogoutInternalServerError) IsClientError() bool
IsClientError returns true when this post logout internal server error response has a 4xx status code
func (*PostLogoutInternalServerError) IsCode ¶
func (o *PostLogoutInternalServerError) IsCode(code int) bool
IsCode returns true when this post logout internal server error response a status code equal to that given
func (*PostLogoutInternalServerError) IsRedirect ¶
func (o *PostLogoutInternalServerError) IsRedirect() bool
IsRedirect returns true when this post logout internal server error response has a 3xx status code
func (*PostLogoutInternalServerError) IsServerError ¶
func (o *PostLogoutInternalServerError) IsServerError() bool
IsServerError returns true when this post logout internal server error response has a 5xx status code
func (*PostLogoutInternalServerError) IsSuccess ¶
func (o *PostLogoutInternalServerError) IsSuccess() bool
IsSuccess returns true when this post logout internal server error response has a 2xx status code
func (*PostLogoutInternalServerError) String ¶
func (o *PostLogoutInternalServerError) String() string
type PostLogoutOK ¶
type PostLogoutOK struct {
Payload string
}
PostLogoutOK describes a response with status code 200, with default header values.
OK
func NewPostLogoutOK ¶
func NewPostLogoutOK() *PostLogoutOK
NewPostLogoutOK creates a PostLogoutOK with default headers values
func (*PostLogoutOK) Code ¶
func (o *PostLogoutOK) Code() int
Code gets the status code for the post logout o k response
func (*PostLogoutOK) Error ¶
func (o *PostLogoutOK) Error() string
func (*PostLogoutOK) GetPayload ¶
func (o *PostLogoutOK) GetPayload() string
func (*PostLogoutOK) IsClientError ¶
func (o *PostLogoutOK) IsClientError() bool
IsClientError returns true when this post logout o k response has a 4xx status code
func (*PostLogoutOK) IsCode ¶
func (o *PostLogoutOK) IsCode(code int) bool
IsCode returns true when this post logout o k response a status code equal to that given
func (*PostLogoutOK) IsRedirect ¶
func (o *PostLogoutOK) IsRedirect() bool
IsRedirect returns true when this post logout o k response has a 3xx status code
func (*PostLogoutOK) IsServerError ¶
func (o *PostLogoutOK) IsServerError() bool
IsServerError returns true when this post logout o k response has a 5xx status code
func (*PostLogoutOK) IsSuccess ¶
func (o *PostLogoutOK) IsSuccess() bool
IsSuccess returns true when this post logout o k response has a 2xx status code
func (*PostLogoutOK) String ¶
func (o *PostLogoutOK) String() string
type PostLogoutParams ¶
type PostLogoutParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostLogoutParams contains all the parameters to send to the API endpoint
for the post logout operation. Typically these are written to a http.Request.
func NewPostLogoutParams ¶
func NewPostLogoutParams() *PostLogoutParams
NewPostLogoutParams creates a new PostLogoutParams 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 NewPostLogoutParamsWithContext ¶
func NewPostLogoutParamsWithContext(ctx context.Context) *PostLogoutParams
NewPostLogoutParamsWithContext creates a new PostLogoutParams object with the ability to set a context for a request.
func NewPostLogoutParamsWithHTTPClient ¶
func NewPostLogoutParamsWithHTTPClient(client *http.Client) *PostLogoutParams
NewPostLogoutParamsWithHTTPClient creates a new PostLogoutParams object with the ability to set a custom HTTPClient for a request.
func NewPostLogoutParamsWithTimeout ¶
func NewPostLogoutParamsWithTimeout(timeout time.Duration) *PostLogoutParams
NewPostLogoutParamsWithTimeout creates a new PostLogoutParams object with the ability to set a timeout on a request.
func (*PostLogoutParams) SetContext ¶
func (o *PostLogoutParams) SetContext(ctx context.Context)
SetContext adds the context to the post logout params
func (*PostLogoutParams) SetDefaults ¶
func (o *PostLogoutParams) SetDefaults()
SetDefaults hydrates default values in the post logout params (not the query body).
All values with no default are reset to their zero value.
func (*PostLogoutParams) SetHTTPClient ¶
func (o *PostLogoutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post logout params
func (*PostLogoutParams) SetTimeout ¶
func (o *PostLogoutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post logout params
func (*PostLogoutParams) WithContext ¶
func (o *PostLogoutParams) WithContext(ctx context.Context) *PostLogoutParams
WithContext adds the context to the post logout params
func (*PostLogoutParams) WithDefaults ¶
func (o *PostLogoutParams) WithDefaults() *PostLogoutParams
WithDefaults hydrates default values in the post logout params (not the query body).
All values with no default are reset to their zero value.
func (*PostLogoutParams) WithHTTPClient ¶
func (o *PostLogoutParams) WithHTTPClient(client *http.Client) *PostLogoutParams
WithHTTPClient adds the HTTPClient to the post logout params
func (*PostLogoutParams) WithTimeout ¶
func (o *PostLogoutParams) WithTimeout(timeout time.Duration) *PostLogoutParams
WithTimeout adds the timeout to the post logout params
func (*PostLogoutParams) WriteToRequest ¶
func (o *PostLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostLogoutReader ¶
type PostLogoutReader struct {
// contains filtered or unexported fields
}
PostLogoutReader is a Reader for the PostLogout structure.
func (*PostLogoutReader) ReadResponse ¶
func (o *PostLogoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostLogoutUnauthorized ¶
type PostLogoutUnauthorized struct {
}PostLogoutUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostLogoutUnauthorized ¶
func NewPostLogoutUnauthorized() *PostLogoutUnauthorized
NewPostLogoutUnauthorized creates a PostLogoutUnauthorized with default headers values
func (*PostLogoutUnauthorized) Code ¶
func (o *PostLogoutUnauthorized) Code() int
Code gets the status code for the post logout unauthorized response
func (*PostLogoutUnauthorized) Error ¶
func (o *PostLogoutUnauthorized) Error() string
func (*PostLogoutUnauthorized) GetPayload ¶
func (o *PostLogoutUnauthorized) GetPayload() string
func (*PostLogoutUnauthorized) IsClientError ¶
func (o *PostLogoutUnauthorized) IsClientError() bool
IsClientError returns true when this post logout unauthorized response has a 4xx status code
func (*PostLogoutUnauthorized) IsCode ¶
func (o *PostLogoutUnauthorized) IsCode(code int) bool
IsCode returns true when this post logout unauthorized response a status code equal to that given
func (*PostLogoutUnauthorized) IsRedirect ¶
func (o *PostLogoutUnauthorized) IsRedirect() bool
IsRedirect returns true when this post logout unauthorized response has a 3xx status code
func (*PostLogoutUnauthorized) IsServerError ¶
func (o *PostLogoutUnauthorized) IsServerError() bool
IsServerError returns true when this post logout unauthorized response has a 5xx status code
func (*PostLogoutUnauthorized) IsSuccess ¶
func (o *PostLogoutUnauthorized) IsSuccess() bool
IsSuccess returns true when this post logout unauthorized response has a 2xx status code
func (*PostLogoutUnauthorized) String ¶
func (o *PostLogoutUnauthorized) String() string