token_introspection

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 token introspection API

func (*Client) GetRptStatus

func (a *Client) GetRptStatus(params *GetRptStatusParams) (*GetRptStatusOK, error)

GetRptStatus gets rpt status

The Introspection OAuth 2 Endpoint for RPT.

func (*Client) PostRptStatus

func (a *Client) PostRptStatus(params *PostRptStatusParams) (*PostRptStatusOK, error)

PostRptStatus posts rpt status

The Introspection OAuth 2 Endpoint for RPT.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetRptStatus(params *GetRptStatusParams) (*GetRptStatusOK, error)

	PostRptStatus(params *PostRptStatusParams) (*PostRptStatusOK, 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 token introspection API client.

type GetRptStatusInternalServerError

type GetRptStatusInternalServerError struct {
	Payload *models.ErrorResponse
}

GetRptStatusInternalServerError handles this case with default header values.

Invalid parameters provided to endpoint.

func NewGetRptStatusInternalServerError

func NewGetRptStatusInternalServerError() *GetRptStatusInternalServerError

NewGetRptStatusInternalServerError creates a GetRptStatusInternalServerError with default headers values

func (*GetRptStatusInternalServerError) Error

func (*GetRptStatusInternalServerError) GetPayload

type GetRptStatusMethodNotAllowed

type GetRptStatusMethodNotAllowed struct {
	Payload *models.ErrorResponse
}

GetRptStatusMethodNotAllowed handles this case with default header values.

Introspection of RPT is not allowed.

func NewGetRptStatusMethodNotAllowed

func NewGetRptStatusMethodNotAllowed() *GetRptStatusMethodNotAllowed

NewGetRptStatusMethodNotAllowed creates a GetRptStatusMethodNotAllowed with default headers values

func (*GetRptStatusMethodNotAllowed) Error

func (*GetRptStatusMethodNotAllowed) GetPayload

type GetRptStatusOK

type GetRptStatusOK struct {
	Payload *models.RptIntrospectionResponse
}

GetRptStatusOK handles this case with default header values.

OK

func NewGetRptStatusOK

func NewGetRptStatusOK() *GetRptStatusOK

NewGetRptStatusOK creates a GetRptStatusOK with default headers values

func (*GetRptStatusOK) Error

func (o *GetRptStatusOK) Error() string

func (*GetRptStatusOK) GetPayload

type GetRptStatusParams

type GetRptStatusParams struct {

	/*Authorization*/
	Authorization string
	/*Token*/
	Token string
	/*TokenTypeHint*/
	TokenTypeHint *string

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

GetRptStatusParams contains all the parameters to send to the API endpoint for the get rpt status operation typically these are written to a http.Request

func NewGetRptStatusParams

func NewGetRptStatusParams() *GetRptStatusParams

NewGetRptStatusParams creates a new GetRptStatusParams object with the default values initialized.

func NewGetRptStatusParamsWithContext

func NewGetRptStatusParamsWithContext(ctx context.Context) *GetRptStatusParams

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

func NewGetRptStatusParamsWithHTTPClient

func NewGetRptStatusParamsWithHTTPClient(client *http.Client) *GetRptStatusParams

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

func NewGetRptStatusParamsWithTimeout

func NewGetRptStatusParamsWithTimeout(timeout time.Duration) *GetRptStatusParams

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

func (*GetRptStatusParams) SetAuthorization

func (o *GetRptStatusParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get rpt status params

func (*GetRptStatusParams) SetContext

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

SetContext adds the context to the get rpt status params

func (*GetRptStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rpt status params

func (*GetRptStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get rpt status params

func (*GetRptStatusParams) SetToken

func (o *GetRptStatusParams) SetToken(token string)

SetToken adds the token to the get rpt status params

func (*GetRptStatusParams) SetTokenTypeHint

func (o *GetRptStatusParams) SetTokenTypeHint(tokenTypeHint *string)

SetTokenTypeHint adds the tokenTypeHint to the get rpt status params

func (*GetRptStatusParams) WithAuthorization

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

WithAuthorization adds the authorization to the get rpt status params

func (*GetRptStatusParams) WithContext

WithContext adds the context to the get rpt status params

func (*GetRptStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get rpt status params

func (*GetRptStatusParams) WithTimeout

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

WithTimeout adds the timeout to the get rpt status params

func (*GetRptStatusParams) WithToken

func (o *GetRptStatusParams) WithToken(token string) *GetRptStatusParams

WithToken adds the token to the get rpt status params

func (*GetRptStatusParams) WithTokenTypeHint

func (o *GetRptStatusParams) WithTokenTypeHint(tokenTypeHint *string) *GetRptStatusParams

WithTokenTypeHint adds the tokenTypeHint to the get rpt status params

func (*GetRptStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRptStatusReader

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

GetRptStatusReader is a Reader for the GetRptStatus structure.

func (*GetRptStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostRptStatusInternalServerError

type PostRptStatusInternalServerError struct {
	Payload *models.ErrorResponse
}

PostRptStatusInternalServerError handles this case with default header values.

Invalid parameters provided to endpoint.

func NewPostRptStatusInternalServerError

func NewPostRptStatusInternalServerError() *PostRptStatusInternalServerError

NewPostRptStatusInternalServerError creates a PostRptStatusInternalServerError with default headers values

func (*PostRptStatusInternalServerError) Error

func (*PostRptStatusInternalServerError) GetPayload

type PostRptStatusMethodNotAllowed

type PostRptStatusMethodNotAllowed struct {
	Payload *models.ErrorResponse
}

PostRptStatusMethodNotAllowed handles this case with default header values.

Introspection of RPT is not allowed.

func NewPostRptStatusMethodNotAllowed

func NewPostRptStatusMethodNotAllowed() *PostRptStatusMethodNotAllowed

NewPostRptStatusMethodNotAllowed creates a PostRptStatusMethodNotAllowed with default headers values

func (*PostRptStatusMethodNotAllowed) Error

func (*PostRptStatusMethodNotAllowed) GetPayload

type PostRptStatusOK

type PostRptStatusOK struct {
	Payload *models.RptIntrospectionResponse1
}

PostRptStatusOK handles this case with default header values.

OK

func NewPostRptStatusOK

func NewPostRptStatusOK() *PostRptStatusOK

NewPostRptStatusOK creates a PostRptStatusOK with default headers values

func (*PostRptStatusOK) Error

func (o *PostRptStatusOK) Error() string

func (*PostRptStatusOK) GetPayload

type PostRptStatusParams

type PostRptStatusParams struct {

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

	*/
	Authorization string
	/*Token
	  Client access token.

	*/
	Token string
	/*TokenTypeHint
	  ID Token previously issued by the Authorization Server being passed as a hint about the End-User.

	*/
	TokenTypeHint *string

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

PostRptStatusParams contains all the parameters to send to the API endpoint for the post rpt status operation typically these are written to a http.Request

func NewPostRptStatusParams

func NewPostRptStatusParams() *PostRptStatusParams

NewPostRptStatusParams creates a new PostRptStatusParams object with the default values initialized.

func NewPostRptStatusParamsWithContext

func NewPostRptStatusParamsWithContext(ctx context.Context) *PostRptStatusParams

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

func NewPostRptStatusParamsWithHTTPClient

func NewPostRptStatusParamsWithHTTPClient(client *http.Client) *PostRptStatusParams

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

func NewPostRptStatusParamsWithTimeout

func NewPostRptStatusParamsWithTimeout(timeout time.Duration) *PostRptStatusParams

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

func (*PostRptStatusParams) SetAuthorization

func (o *PostRptStatusParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the post rpt status params

func (*PostRptStatusParams) SetContext

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

SetContext adds the context to the post rpt status params

func (*PostRptStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post rpt status params

func (*PostRptStatusParams) SetTimeout

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

SetTimeout adds the timeout to the post rpt status params

func (*PostRptStatusParams) SetToken

func (o *PostRptStatusParams) SetToken(token string)

SetToken adds the token to the post rpt status params

func (*PostRptStatusParams) SetTokenTypeHint

func (o *PostRptStatusParams) SetTokenTypeHint(tokenTypeHint *string)

SetTokenTypeHint adds the tokenTypeHint to the post rpt status params

func (*PostRptStatusParams) WithAuthorization

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

WithAuthorization adds the authorization to the post rpt status params

func (*PostRptStatusParams) WithContext

WithContext adds the context to the post rpt status params

func (*PostRptStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post rpt status params

func (*PostRptStatusParams) WithTimeout

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

WithTimeout adds the timeout to the post rpt status params

func (*PostRptStatusParams) WithToken

func (o *PostRptStatusParams) WithToken(token string) *PostRptStatusParams

WithToken adds the token to the post rpt status params

func (*PostRptStatusParams) WithTokenTypeHint

func (o *PostRptStatusParams) WithTokenTypeHint(tokenTypeHint *string) *PostRptStatusParams

WithTokenTypeHint adds the tokenTypeHint to the post rpt status params

func (*PostRptStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRptStatusReader

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

PostRptStatusReader is a Reader for the PostRptStatus structure.

func (*PostRptStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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