userinfo

package
v0.1.7-dev8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

func (*Client) PostUserinfo

func (a *Client) PostUserinfo(params *PostUserinfoParams, opts ...ClientOption) (*PostUserinfoOK, error)

PostUserinfo Checks if a user is logged in and returns the user's information.

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 {
	PostUserinfo(params *PostUserinfoParams, opts ...ClientOption) (*PostUserinfoOK, 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 userinfo API client.

type PostUserinfoBadRequest

type PostUserinfoBadRequest struct {
	Payload string
}

PostUserinfoBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostUserinfoBadRequest

func NewPostUserinfoBadRequest() *PostUserinfoBadRequest

NewPostUserinfoBadRequest creates a PostUserinfoBadRequest with default headers values

func (*PostUserinfoBadRequest) Code

func (o *PostUserinfoBadRequest) Code() int

Code gets the status code for the post userinfo bad request response

func (*PostUserinfoBadRequest) Error

func (o *PostUserinfoBadRequest) Error() string

func (*PostUserinfoBadRequest) GetPayload

func (o *PostUserinfoBadRequest) GetPayload() string

func (*PostUserinfoBadRequest) IsClientError

func (o *PostUserinfoBadRequest) IsClientError() bool

IsClientError returns true when this post userinfo bad request response has a 4xx status code

func (*PostUserinfoBadRequest) IsCode

func (o *PostUserinfoBadRequest) IsCode(code int) bool

IsCode returns true when this post userinfo bad request response a status code equal to that given

func (*PostUserinfoBadRequest) IsRedirect

func (o *PostUserinfoBadRequest) IsRedirect() bool

IsRedirect returns true when this post userinfo bad request response has a 3xx status code

func (*PostUserinfoBadRequest) IsServerError

func (o *PostUserinfoBadRequest) IsServerError() bool

IsServerError returns true when this post userinfo bad request response has a 5xx status code

func (*PostUserinfoBadRequest) IsSuccess

func (o *PostUserinfoBadRequest) IsSuccess() bool

IsSuccess returns true when this post userinfo bad request response has a 2xx status code

func (*PostUserinfoBadRequest) String

func (o *PostUserinfoBadRequest) String() string

type PostUserinfoInternalServerError

type PostUserinfoInternalServerError struct {
	Payload string
}

PostUserinfoInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostUserinfoInternalServerError

func NewPostUserinfoInternalServerError() *PostUserinfoInternalServerError

NewPostUserinfoInternalServerError creates a PostUserinfoInternalServerError with default headers values

func (*PostUserinfoInternalServerError) Code

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

func (*PostUserinfoInternalServerError) Error

func (*PostUserinfoInternalServerError) GetPayload

func (o *PostUserinfoInternalServerError) GetPayload() string

func (*PostUserinfoInternalServerError) IsClientError

func (o *PostUserinfoInternalServerError) IsClientError() bool

IsClientError returns true when this post userinfo internal server error response has a 4xx status code

func (*PostUserinfoInternalServerError) IsCode

func (o *PostUserinfoInternalServerError) IsCode(code int) bool

IsCode returns true when this post userinfo internal server error response a status code equal to that given

func (*PostUserinfoInternalServerError) IsRedirect

func (o *PostUserinfoInternalServerError) IsRedirect() bool

IsRedirect returns true when this post userinfo internal server error response has a 3xx status code

func (*PostUserinfoInternalServerError) IsServerError

func (o *PostUserinfoInternalServerError) IsServerError() bool

IsServerError returns true when this post userinfo internal server error response has a 5xx status code

func (*PostUserinfoInternalServerError) IsSuccess

func (o *PostUserinfoInternalServerError) IsSuccess() bool

IsSuccess returns true when this post userinfo internal server error response has a 2xx status code

func (*PostUserinfoInternalServerError) String

type PostUserinfoOK

type PostUserinfoOK struct {
	Payload *models.ModelsUserInfoResponse
}

PostUserinfoOK describes a response with status code 200, with default header values.

OK

func NewPostUserinfoOK

func NewPostUserinfoOK() *PostUserinfoOK

NewPostUserinfoOK creates a PostUserinfoOK with default headers values

func (*PostUserinfoOK) Code

func (o *PostUserinfoOK) Code() int

Code gets the status code for the post userinfo o k response

func (*PostUserinfoOK) Error

func (o *PostUserinfoOK) Error() string

func (*PostUserinfoOK) GetPayload

func (o *PostUserinfoOK) GetPayload() *models.ModelsUserInfoResponse

func (*PostUserinfoOK) IsClientError

func (o *PostUserinfoOK) IsClientError() bool

IsClientError returns true when this post userinfo o k response has a 4xx status code

func (*PostUserinfoOK) IsCode

func (o *PostUserinfoOK) IsCode(code int) bool

IsCode returns true when this post userinfo o k response a status code equal to that given

func (*PostUserinfoOK) IsRedirect

func (o *PostUserinfoOK) IsRedirect() bool

IsRedirect returns true when this post userinfo o k response has a 3xx status code

func (*PostUserinfoOK) IsServerError

func (o *PostUserinfoOK) IsServerError() bool

IsServerError returns true when this post userinfo o k response has a 5xx status code

func (*PostUserinfoOK) IsSuccess

func (o *PostUserinfoOK) IsSuccess() bool

IsSuccess returns true when this post userinfo o k response has a 2xx status code

func (*PostUserinfoOK) String

func (o *PostUserinfoOK) String() string

type PostUserinfoParams

type PostUserinfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostUserinfoParams contains all the parameters to send to the API endpoint

for the post userinfo operation.

Typically these are written to a http.Request.

func NewPostUserinfoParams

func NewPostUserinfoParams() *PostUserinfoParams

NewPostUserinfoParams creates a new PostUserinfoParams 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 NewPostUserinfoParamsWithContext

func NewPostUserinfoParamsWithContext(ctx context.Context) *PostUserinfoParams

NewPostUserinfoParamsWithContext creates a new PostUserinfoParams object with the ability to set a context for a request.

func NewPostUserinfoParamsWithHTTPClient

func NewPostUserinfoParamsWithHTTPClient(client *http.Client) *PostUserinfoParams

NewPostUserinfoParamsWithHTTPClient creates a new PostUserinfoParams object with the ability to set a custom HTTPClient for a request.

func NewPostUserinfoParamsWithTimeout

func NewPostUserinfoParamsWithTimeout(timeout time.Duration) *PostUserinfoParams

NewPostUserinfoParamsWithTimeout creates a new PostUserinfoParams object with the ability to set a timeout on a request.

func (*PostUserinfoParams) SetContext

func (o *PostUserinfoParams) SetContext(ctx context.Context)

SetContext adds the context to the post userinfo params

func (*PostUserinfoParams) SetDefaults

func (o *PostUserinfoParams) SetDefaults()

SetDefaults hydrates default values in the post userinfo params (not the query body).

All values with no default are reset to their zero value.

func (*PostUserinfoParams) SetHTTPClient

func (o *PostUserinfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post userinfo params

func (*PostUserinfoParams) SetTimeout

func (o *PostUserinfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post userinfo params

func (*PostUserinfoParams) WithContext

WithContext adds the context to the post userinfo params

func (*PostUserinfoParams) WithDefaults

func (o *PostUserinfoParams) WithDefaults() *PostUserinfoParams

WithDefaults hydrates default values in the post userinfo params (not the query body).

All values with no default are reset to their zero value.

func (*PostUserinfoParams) WithHTTPClient

func (o *PostUserinfoParams) WithHTTPClient(client *http.Client) *PostUserinfoParams

WithHTTPClient adds the HTTPClient to the post userinfo params

func (*PostUserinfoParams) WithTimeout

func (o *PostUserinfoParams) WithTimeout(timeout time.Duration) *PostUserinfoParams

WithTimeout adds the timeout to the post userinfo params

func (*PostUserinfoParams) WriteToRequest

func (o *PostUserinfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostUserinfoReader

type PostUserinfoReader struct {
	// contains filtered or unexported fields
}

PostUserinfoReader is a Reader for the PostUserinfo structure.

func (*PostUserinfoReader) ReadResponse

func (o *PostUserinfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostUserinfoUnauthorized

type PostUserinfoUnauthorized struct {
	Payload string
}

PostUserinfoUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostUserinfoUnauthorized

func NewPostUserinfoUnauthorized() *PostUserinfoUnauthorized

NewPostUserinfoUnauthorized creates a PostUserinfoUnauthorized with default headers values

func (*PostUserinfoUnauthorized) Code

func (o *PostUserinfoUnauthorized) Code() int

Code gets the status code for the post userinfo unauthorized response

func (*PostUserinfoUnauthorized) Error

func (o *PostUserinfoUnauthorized) Error() string

func (*PostUserinfoUnauthorized) GetPayload

func (o *PostUserinfoUnauthorized) GetPayload() string

func (*PostUserinfoUnauthorized) IsClientError

func (o *PostUserinfoUnauthorized) IsClientError() bool

IsClientError returns true when this post userinfo unauthorized response has a 4xx status code

func (*PostUserinfoUnauthorized) IsCode

func (o *PostUserinfoUnauthorized) IsCode(code int) bool

IsCode returns true when this post userinfo unauthorized response a status code equal to that given

func (*PostUserinfoUnauthorized) IsRedirect

func (o *PostUserinfoUnauthorized) IsRedirect() bool

IsRedirect returns true when this post userinfo unauthorized response has a 3xx status code

func (*PostUserinfoUnauthorized) IsServerError

func (o *PostUserinfoUnauthorized) IsServerError() bool

IsServerError returns true when this post userinfo unauthorized response has a 5xx status code

func (*PostUserinfoUnauthorized) IsSuccess

func (o *PostUserinfoUnauthorized) IsSuccess() bool

IsSuccess returns true when this post userinfo unauthorized response has a 2xx status code

func (*PostUserinfoUnauthorized) String

func (o *PostUserinfoUnauthorized) String() string

Jump to

Keyboard shortcuts

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