logout

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

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 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

Code gets the status code for the post logout internal server error response

func (*PostLogoutInternalServerError) Error

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

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 {
	Payload string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL