user_info

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 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 user info API

func (*Client) GetUserinfo

func (a *Client) GetUserinfo(params *GetUserinfoParams) (*GetUserinfoOK, error)

GetUserinfo gets userinfo

Returns Claims about the authenticated End-User.

func (*Client) PostUserinfo

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

PostUserinfo posts userinfo

Returns Claims about the authenticated End-User.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetUserinfo(params *GetUserinfoParams) (*GetUserinfoOK, error)

	PostUserinfo(params *PostUserinfoParams) (*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 user info API client.

type GetUserinfoBadRequest

type GetUserinfoBadRequest struct {
	Payload *models.ErrorResponse
}

GetUserinfoBadRequest handles this case with default header values.

Invalid parameters provided to endpoint.

func NewGetUserinfoBadRequest

func NewGetUserinfoBadRequest() *GetUserinfoBadRequest

NewGetUserinfoBadRequest creates a GetUserinfoBadRequest with default headers values

func (*GetUserinfoBadRequest) Error

func (o *GetUserinfoBadRequest) Error() string

func (*GetUserinfoBadRequest) GetPayload

func (o *GetUserinfoBadRequest) GetPayload() *models.ErrorResponse

type GetUserinfoForbidden

type GetUserinfoForbidden struct {
	Payload *models.ErrorResponse
}

GetUserinfoForbidden handles this case with default header values.

Invalid parameters provided to endpoint.

func NewGetUserinfoForbidden

func NewGetUserinfoForbidden() *GetUserinfoForbidden

NewGetUserinfoForbidden creates a GetUserinfoForbidden with default headers values

func (*GetUserinfoForbidden) Error

func (o *GetUserinfoForbidden) Error() string

func (*GetUserinfoForbidden) GetPayload

func (o *GetUserinfoForbidden) GetPayload() *models.ErrorResponse

type GetUserinfoInternalServerError

type GetUserinfoInternalServerError struct {
	Payload *models.ErrorResponse
}

GetUserinfoInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewGetUserinfoInternalServerError

func NewGetUserinfoInternalServerError() *GetUserinfoInternalServerError

NewGetUserinfoInternalServerError creates a GetUserinfoInternalServerError with default headers values

func (*GetUserinfoInternalServerError) Error

func (*GetUserinfoInternalServerError) GetPayload

type GetUserinfoOK

type GetUserinfoOK struct {
	Payload interface{}
}

GetUserinfoOK handles this case with default header values.

OK

func NewGetUserinfoOK

func NewGetUserinfoOK() *GetUserinfoOK

NewGetUserinfoOK creates a GetUserinfoOK with default headers values

func (*GetUserinfoOK) Error

func (o *GetUserinfoOK) Error() string

func (*GetUserinfoOK) GetPayload

func (o *GetUserinfoOK) GetPayload() interface{}

type GetUserinfoParams

type GetUserinfoParams struct {

	/*Authorization*/
	Authorization *string
	/*AccessToken
	  OAuth 2.0 Access Token.

	*/
	AccessToken string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUserinfoParams contains all the parameters to send to the API endpoint for the get userinfo operation typically these are written to a http.Request

func NewGetUserinfoParams

func NewGetUserinfoParams() *GetUserinfoParams

NewGetUserinfoParams creates a new GetUserinfoParams object with the default values initialized.

func NewGetUserinfoParamsWithContext

func NewGetUserinfoParamsWithContext(ctx context.Context) *GetUserinfoParams

NewGetUserinfoParamsWithContext creates a new GetUserinfoParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserinfoParamsWithHTTPClient

func NewGetUserinfoParamsWithHTTPClient(client *http.Client) *GetUserinfoParams

NewGetUserinfoParamsWithHTTPClient creates a new GetUserinfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserinfoParamsWithTimeout

func NewGetUserinfoParamsWithTimeout(timeout time.Duration) *GetUserinfoParams

NewGetUserinfoParamsWithTimeout creates a new GetUserinfoParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserinfoParams) SetAccessToken

func (o *GetUserinfoParams) SetAccessToken(accessToken string)

SetAccessToken adds the accessToken to the get userinfo params

func (*GetUserinfoParams) SetAuthorization

func (o *GetUserinfoParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get userinfo params

func (*GetUserinfoParams) SetContext

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

SetContext adds the context to the get userinfo params

func (*GetUserinfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get userinfo params

func (*GetUserinfoParams) SetTimeout

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

SetTimeout adds the timeout to the get userinfo params

func (*GetUserinfoParams) WithAccessToken

func (o *GetUserinfoParams) WithAccessToken(accessToken string) *GetUserinfoParams

WithAccessToken adds the accessToken to the get userinfo params

func (*GetUserinfoParams) WithAuthorization

func (o *GetUserinfoParams) WithAuthorization(authorization *string) *GetUserinfoParams

WithAuthorization adds the authorization to the get userinfo params

func (*GetUserinfoParams) WithContext

func (o *GetUserinfoParams) WithContext(ctx context.Context) *GetUserinfoParams

WithContext adds the context to the get userinfo params

func (*GetUserinfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get userinfo params

func (*GetUserinfoParams) WithTimeout

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

WithTimeout adds the timeout to the get userinfo params

func (*GetUserinfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserinfoReader

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

GetUserinfoReader is a Reader for the GetUserinfo structure.

func (*GetUserinfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserinfoUnauthorized

type GetUserinfoUnauthorized struct {
	Payload *models.ErrorResponse
}

GetUserinfoUnauthorized handles this case with default header values.

Invalid parameters provided to endpoint.

func NewGetUserinfoUnauthorized

func NewGetUserinfoUnauthorized() *GetUserinfoUnauthorized

NewGetUserinfoUnauthorized creates a GetUserinfoUnauthorized with default headers values

func (*GetUserinfoUnauthorized) Error

func (o *GetUserinfoUnauthorized) Error() string

func (*GetUserinfoUnauthorized) GetPayload

func (o *GetUserinfoUnauthorized) GetPayload() *models.ErrorResponse

type PostUserinfoBadRequest

type PostUserinfoBadRequest struct {
	Payload *models.ErrorResponse
}

PostUserinfoBadRequest handles this case with default header values.

Invalid parameters provided to endpoint.

func NewPostUserinfoBadRequest

func NewPostUserinfoBadRequest() *PostUserinfoBadRequest

NewPostUserinfoBadRequest creates a PostUserinfoBadRequest with default headers values

func (*PostUserinfoBadRequest) Error

func (o *PostUserinfoBadRequest) Error() string

func (*PostUserinfoBadRequest) GetPayload

func (o *PostUserinfoBadRequest) GetPayload() *models.ErrorResponse

type PostUserinfoForbidden

type PostUserinfoForbidden struct {
	Payload *models.ErrorResponse
}

PostUserinfoForbidden handles this case with default header values.

Invalid parameters provided to endpoint.

func NewPostUserinfoForbidden

func NewPostUserinfoForbidden() *PostUserinfoForbidden

NewPostUserinfoForbidden creates a PostUserinfoForbidden with default headers values

func (*PostUserinfoForbidden) Error

func (o *PostUserinfoForbidden) Error() string

func (*PostUserinfoForbidden) GetPayload

func (o *PostUserinfoForbidden) GetPayload() *models.ErrorResponse

type PostUserinfoInternalServerError

type PostUserinfoInternalServerError struct {
	Payload *models.ErrorResponse
}

PostUserinfoInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewPostUserinfoInternalServerError

func NewPostUserinfoInternalServerError() *PostUserinfoInternalServerError

NewPostUserinfoInternalServerError creates a PostUserinfoInternalServerError with default headers values

func (*PostUserinfoInternalServerError) Error

func (*PostUserinfoInternalServerError) GetPayload

type PostUserinfoOK

type PostUserinfoOK struct {
	Payload interface{}
}

PostUserinfoOK handles this case with default header values.

OK

func NewPostUserinfoOK

func NewPostUserinfoOK() *PostUserinfoOK

NewPostUserinfoOK creates a PostUserinfoOK with default headers values

func (*PostUserinfoOK) Error

func (o *PostUserinfoOK) Error() string

func (*PostUserinfoOK) GetPayload

func (o *PostUserinfoOK) GetPayload() interface{}

type PostUserinfoParams

type PostUserinfoParams struct {

	/*Authorization
	  Client Authorization details that contains the access token along with other details.

	*/
	Authorization *string
	/*AccessToken
	  OAuth 2.0 Access Token.

	*/
	AccessToken string

	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 values initialized.

func NewPostUserinfoParamsWithContext

func NewPostUserinfoParamsWithContext(ctx context.Context) *PostUserinfoParams

NewPostUserinfoParamsWithContext creates a new PostUserinfoParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*PostUserinfoParams) SetAccessToken

func (o *PostUserinfoParams) SetAccessToken(accessToken string)

SetAccessToken adds the accessToken to the post userinfo params

func (*PostUserinfoParams) SetAuthorization

func (o *PostUserinfoParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the post userinfo params

func (*PostUserinfoParams) SetContext

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

SetContext adds the context to the post userinfo params

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

func (o *PostUserinfoParams) WithAccessToken(accessToken string) *PostUserinfoParams

WithAccessToken adds the accessToken to the post userinfo params

func (*PostUserinfoParams) WithAuthorization

func (o *PostUserinfoParams) WithAuthorization(authorization *string) *PostUserinfoParams

WithAuthorization adds the authorization to the post userinfo params

func (*PostUserinfoParams) WithContext

WithContext adds the context to the post userinfo params

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 *models.ErrorResponse
}

PostUserinfoUnauthorized handles this case with default header values.

Invalid parameters provided to endpoint.

func NewPostUserinfoUnauthorized

func NewPostUserinfoUnauthorized() *PostUserinfoUnauthorized

NewPostUserinfoUnauthorized creates a PostUserinfoUnauthorized with default headers values

func (*PostUserinfoUnauthorized) Error

func (o *PostUserinfoUnauthorized) Error() string

func (*PostUserinfoUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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