Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RevokeTokensForbidden
- func (o *RevokeTokensForbidden) Code() int
- func (o *RevokeTokensForbidden) Error() string
- func (o *RevokeTokensForbidden) GetPayload() *models.Error
- func (o *RevokeTokensForbidden) IsClientError() bool
- func (o *RevokeTokensForbidden) IsCode(code int) bool
- func (o *RevokeTokensForbidden) IsRedirect() bool
- func (o *RevokeTokensForbidden) IsServerError() bool
- func (o *RevokeTokensForbidden) IsSuccess() bool
- func (o *RevokeTokensForbidden) String() string
- type RevokeTokensNoContent
- func (o *RevokeTokensNoContent) Code() int
- func (o *RevokeTokensNoContent) Error() string
- func (o *RevokeTokensNoContent) IsClientError() bool
- func (o *RevokeTokensNoContent) IsCode(code int) bool
- func (o *RevokeTokensNoContent) IsRedirect() bool
- func (o *RevokeTokensNoContent) IsServerError() bool
- func (o *RevokeTokensNoContent) IsSuccess() bool
- func (o *RevokeTokensNoContent) String() string
- type RevokeTokensNotFound
- func (o *RevokeTokensNotFound) Code() int
- func (o *RevokeTokensNotFound) Error() string
- func (o *RevokeTokensNotFound) GetPayload() *models.Error
- func (o *RevokeTokensNotFound) IsClientError() bool
- func (o *RevokeTokensNotFound) IsCode(code int) bool
- func (o *RevokeTokensNotFound) IsRedirect() bool
- func (o *RevokeTokensNotFound) IsServerError() bool
- func (o *RevokeTokensNotFound) IsSuccess() bool
- func (o *RevokeTokensNotFound) String() string
- type RevokeTokensParams
- func (o *RevokeTokensParams) SetContext(ctx context.Context)
- func (o *RevokeTokensParams) SetDefaults()
- func (o *RevokeTokensParams) SetHTTPClient(client *http.Client)
- func (o *RevokeTokensParams) SetIfMatch(ifMatch *string)
- func (o *RevokeTokensParams) SetRequest(request *models.RevokeTokenRequest)
- func (o *RevokeTokensParams) SetTimeout(timeout time.Duration)
- func (o *RevokeTokensParams) SetWid(wid string)
- func (o *RevokeTokensParams) WithContext(ctx context.Context) *RevokeTokensParams
- func (o *RevokeTokensParams) WithDefaults() *RevokeTokensParams
- func (o *RevokeTokensParams) WithHTTPClient(client *http.Client) *RevokeTokensParams
- func (o *RevokeTokensParams) WithIfMatch(ifMatch *string) *RevokeTokensParams
- func (o *RevokeTokensParams) WithRequest(request *models.RevokeTokenRequest) *RevokeTokensParams
- func (o *RevokeTokensParams) WithTimeout(timeout time.Duration) *RevokeTokensParams
- func (o *RevokeTokensParams) WithWid(wid string) *RevokeTokensParams
- func (o *RevokeTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeTokensReader
- type RevokeTokensUnauthorized
- func (o *RevokeTokensUnauthorized) Code() int
- func (o *RevokeTokensUnauthorized) Error() string
- func (o *RevokeTokensUnauthorized) GetPayload() *models.Error
- func (o *RevokeTokensUnauthorized) IsClientError() bool
- func (o *RevokeTokensUnauthorized) IsCode(code int) bool
- func (o *RevokeTokensUnauthorized) IsRedirect() bool
- func (o *RevokeTokensUnauthorized) IsServerError() bool
- func (o *RevokeTokensUnauthorized) IsSuccess() bool
- func (o *RevokeTokensUnauthorized) String() string
- type RevokeTokensUnprocessableEntity
- func (o *RevokeTokensUnprocessableEntity) Code() int
- func (o *RevokeTokensUnprocessableEntity) Error() string
- func (o *RevokeTokensUnprocessableEntity) GetPayload() *models.Error
- func (o *RevokeTokensUnprocessableEntity) IsClientError() bool
- func (o *RevokeTokensUnprocessableEntity) IsCode(code int) bool
- func (o *RevokeTokensUnprocessableEntity) IsRedirect() bool
- func (o *RevokeTokensUnprocessableEntity) IsServerError() bool
- func (o *RevokeTokensUnprocessableEntity) IsSuccess() bool
- func (o *RevokeTokensUnprocessableEntity) 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 tokens API
func (*Client) RevokeTokens ¶
func (a *Client) RevokeTokens(params *RevokeTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensNoContent, error)
RevokeTokens revokes tokens Revoke tokens for given set of subjects (min 1, max 100 subjects can be specified).
Tokens includes access and refresh tokens but also authorization codes, authorization requests, sso sessions and scopes grants.
Optional IDP id if provided will recalculate subjects values if server is using hashed subject type.
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 { RevokeTokens(params *RevokeTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensNoContent, 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 tokens API client.
type RevokeTokensForbidden ¶
RevokeTokensForbidden describes a response with status code 403, with default header values.
Forbidden
func NewRevokeTokensForbidden ¶
func NewRevokeTokensForbidden() *RevokeTokensForbidden
NewRevokeTokensForbidden creates a RevokeTokensForbidden with default headers values
func (*RevokeTokensForbidden) Code ¶
func (o *RevokeTokensForbidden) Code() int
Code gets the status code for the revoke tokens forbidden response
func (*RevokeTokensForbidden) Error ¶
func (o *RevokeTokensForbidden) Error() string
func (*RevokeTokensForbidden) GetPayload ¶
func (o *RevokeTokensForbidden) GetPayload() *models.Error
func (*RevokeTokensForbidden) IsClientError ¶
func (o *RevokeTokensForbidden) IsClientError() bool
IsClientError returns true when this revoke tokens forbidden response has a 4xx status code
func (*RevokeTokensForbidden) IsCode ¶
func (o *RevokeTokensForbidden) IsCode(code int) bool
IsCode returns true when this revoke tokens forbidden response a status code equal to that given
func (*RevokeTokensForbidden) IsRedirect ¶
func (o *RevokeTokensForbidden) IsRedirect() bool
IsRedirect returns true when this revoke tokens forbidden response has a 3xx status code
func (*RevokeTokensForbidden) IsServerError ¶
func (o *RevokeTokensForbidden) IsServerError() bool
IsServerError returns true when this revoke tokens forbidden response has a 5xx status code
func (*RevokeTokensForbidden) IsSuccess ¶
func (o *RevokeTokensForbidden) IsSuccess() bool
IsSuccess returns true when this revoke tokens forbidden response has a 2xx status code
func (*RevokeTokensForbidden) String ¶
func (o *RevokeTokensForbidden) String() string
type RevokeTokensNoContent ¶
type RevokeTokensNoContent struct { }
RevokeTokensNoContent describes a response with status code 204, with default header values.
tokens revoked
func NewRevokeTokensNoContent ¶
func NewRevokeTokensNoContent() *RevokeTokensNoContent
NewRevokeTokensNoContent creates a RevokeTokensNoContent with default headers values
func (*RevokeTokensNoContent) Code ¶
func (o *RevokeTokensNoContent) Code() int
Code gets the status code for the revoke tokens no content response
func (*RevokeTokensNoContent) Error ¶
func (o *RevokeTokensNoContent) Error() string
func (*RevokeTokensNoContent) IsClientError ¶
func (o *RevokeTokensNoContent) IsClientError() bool
IsClientError returns true when this revoke tokens no content response has a 4xx status code
func (*RevokeTokensNoContent) IsCode ¶
func (o *RevokeTokensNoContent) IsCode(code int) bool
IsCode returns true when this revoke tokens no content response a status code equal to that given
func (*RevokeTokensNoContent) IsRedirect ¶
func (o *RevokeTokensNoContent) IsRedirect() bool
IsRedirect returns true when this revoke tokens no content response has a 3xx status code
func (*RevokeTokensNoContent) IsServerError ¶
func (o *RevokeTokensNoContent) IsServerError() bool
IsServerError returns true when this revoke tokens no content response has a 5xx status code
func (*RevokeTokensNoContent) IsSuccess ¶
func (o *RevokeTokensNoContent) IsSuccess() bool
IsSuccess returns true when this revoke tokens no content response has a 2xx status code
func (*RevokeTokensNoContent) String ¶
func (o *RevokeTokensNoContent) String() string
type RevokeTokensNotFound ¶
RevokeTokensNotFound describes a response with status code 404, with default header values.
Not found
func NewRevokeTokensNotFound ¶
func NewRevokeTokensNotFound() *RevokeTokensNotFound
NewRevokeTokensNotFound creates a RevokeTokensNotFound with default headers values
func (*RevokeTokensNotFound) Code ¶
func (o *RevokeTokensNotFound) Code() int
Code gets the status code for the revoke tokens not found response
func (*RevokeTokensNotFound) Error ¶
func (o *RevokeTokensNotFound) Error() string
func (*RevokeTokensNotFound) GetPayload ¶
func (o *RevokeTokensNotFound) GetPayload() *models.Error
func (*RevokeTokensNotFound) IsClientError ¶
func (o *RevokeTokensNotFound) IsClientError() bool
IsClientError returns true when this revoke tokens not found response has a 4xx status code
func (*RevokeTokensNotFound) IsCode ¶
func (o *RevokeTokensNotFound) IsCode(code int) bool
IsCode returns true when this revoke tokens not found response a status code equal to that given
func (*RevokeTokensNotFound) IsRedirect ¶
func (o *RevokeTokensNotFound) IsRedirect() bool
IsRedirect returns true when this revoke tokens not found response has a 3xx status code
func (*RevokeTokensNotFound) IsServerError ¶
func (o *RevokeTokensNotFound) IsServerError() bool
IsServerError returns true when this revoke tokens not found response has a 5xx status code
func (*RevokeTokensNotFound) IsSuccess ¶
func (o *RevokeTokensNotFound) IsSuccess() bool
IsSuccess returns true when this revoke tokens not found response has a 2xx status code
func (*RevokeTokensNotFound) String ¶
func (o *RevokeTokensNotFound) String() string
type RevokeTokensParams ¶
type RevokeTokensParams struct { // Request. Request *models.RevokeTokenRequest /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeTokensParams contains all the parameters to send to the API endpoint
for the revoke tokens operation. Typically these are written to a http.Request.
func NewRevokeTokensParams ¶
func NewRevokeTokensParams() *RevokeTokensParams
NewRevokeTokensParams creates a new RevokeTokensParams 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 NewRevokeTokensParamsWithContext ¶
func NewRevokeTokensParamsWithContext(ctx context.Context) *RevokeTokensParams
NewRevokeTokensParamsWithContext creates a new RevokeTokensParams object with the ability to set a context for a request.
func NewRevokeTokensParamsWithHTTPClient ¶
func NewRevokeTokensParamsWithHTTPClient(client *http.Client) *RevokeTokensParams
NewRevokeTokensParamsWithHTTPClient creates a new RevokeTokensParams object with the ability to set a custom HTTPClient for a request.
func NewRevokeTokensParamsWithTimeout ¶
func NewRevokeTokensParamsWithTimeout(timeout time.Duration) *RevokeTokensParams
NewRevokeTokensParamsWithTimeout creates a new RevokeTokensParams object with the ability to set a timeout on a request.
func (*RevokeTokensParams) SetContext ¶
func (o *RevokeTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke tokens params
func (*RevokeTokensParams) SetDefaults ¶
func (o *RevokeTokensParams) SetDefaults()
SetDefaults hydrates default values in the revoke tokens params (not the query body).
All values with no default are reset to their zero value.
func (*RevokeTokensParams) SetHTTPClient ¶
func (o *RevokeTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke tokens params
func (*RevokeTokensParams) SetIfMatch ¶
func (o *RevokeTokensParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the revoke tokens params
func (*RevokeTokensParams) SetRequest ¶
func (o *RevokeTokensParams) SetRequest(request *models.RevokeTokenRequest)
SetRequest adds the request to the revoke tokens params
func (*RevokeTokensParams) SetTimeout ¶
func (o *RevokeTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke tokens params
func (*RevokeTokensParams) SetWid ¶
func (o *RevokeTokensParams) SetWid(wid string)
SetWid adds the wid to the revoke tokens params
func (*RevokeTokensParams) WithContext ¶
func (o *RevokeTokensParams) WithContext(ctx context.Context) *RevokeTokensParams
WithContext adds the context to the revoke tokens params
func (*RevokeTokensParams) WithDefaults ¶
func (o *RevokeTokensParams) WithDefaults() *RevokeTokensParams
WithDefaults hydrates default values in the revoke tokens params (not the query body).
All values with no default are reset to their zero value.
func (*RevokeTokensParams) WithHTTPClient ¶
func (o *RevokeTokensParams) WithHTTPClient(client *http.Client) *RevokeTokensParams
WithHTTPClient adds the HTTPClient to the revoke tokens params
func (*RevokeTokensParams) WithIfMatch ¶
func (o *RevokeTokensParams) WithIfMatch(ifMatch *string) *RevokeTokensParams
WithIfMatch adds the ifMatch to the revoke tokens params
func (*RevokeTokensParams) WithRequest ¶
func (o *RevokeTokensParams) WithRequest(request *models.RevokeTokenRequest) *RevokeTokensParams
WithRequest adds the request to the revoke tokens params
func (*RevokeTokensParams) WithTimeout ¶
func (o *RevokeTokensParams) WithTimeout(timeout time.Duration) *RevokeTokensParams
WithTimeout adds the timeout to the revoke tokens params
func (*RevokeTokensParams) WithWid ¶
func (o *RevokeTokensParams) WithWid(wid string) *RevokeTokensParams
WithWid adds the wid to the revoke tokens params
func (*RevokeTokensParams) WriteToRequest ¶
func (o *RevokeTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeTokensReader ¶
type RevokeTokensReader struct {
// contains filtered or unexported fields
}
RevokeTokensReader is a Reader for the RevokeTokens structure.
func (*RevokeTokensReader) ReadResponse ¶
func (o *RevokeTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeTokensUnauthorized ¶
type RevokeTokensUnauthorized struct {
}RevokeTokensUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewRevokeTokensUnauthorized ¶
func NewRevokeTokensUnauthorized() *RevokeTokensUnauthorized
NewRevokeTokensUnauthorized creates a RevokeTokensUnauthorized with default headers values
func (*RevokeTokensUnauthorized) Code ¶
func (o *RevokeTokensUnauthorized) Code() int
Code gets the status code for the revoke tokens unauthorized response
func (*RevokeTokensUnauthorized) Error ¶
func (o *RevokeTokensUnauthorized) Error() string
func (*RevokeTokensUnauthorized) GetPayload ¶
func (o *RevokeTokensUnauthorized) GetPayload() *models.Error
func (*RevokeTokensUnauthorized) IsClientError ¶
func (o *RevokeTokensUnauthorized) IsClientError() bool
IsClientError returns true when this revoke tokens unauthorized response has a 4xx status code
func (*RevokeTokensUnauthorized) IsCode ¶
func (o *RevokeTokensUnauthorized) IsCode(code int) bool
IsCode returns true when this revoke tokens unauthorized response a status code equal to that given
func (*RevokeTokensUnauthorized) IsRedirect ¶
func (o *RevokeTokensUnauthorized) IsRedirect() bool
IsRedirect returns true when this revoke tokens unauthorized response has a 3xx status code
func (*RevokeTokensUnauthorized) IsServerError ¶
func (o *RevokeTokensUnauthorized) IsServerError() bool
IsServerError returns true when this revoke tokens unauthorized response has a 5xx status code
func (*RevokeTokensUnauthorized) IsSuccess ¶
func (o *RevokeTokensUnauthorized) IsSuccess() bool
IsSuccess returns true when this revoke tokens unauthorized response has a 2xx status code
func (*RevokeTokensUnauthorized) String ¶
func (o *RevokeTokensUnauthorized) String() string
type RevokeTokensUnprocessableEntity ¶
RevokeTokensUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewRevokeTokensUnprocessableEntity ¶
func NewRevokeTokensUnprocessableEntity() *RevokeTokensUnprocessableEntity
NewRevokeTokensUnprocessableEntity creates a RevokeTokensUnprocessableEntity with default headers values
func (*RevokeTokensUnprocessableEntity) Code ¶
func (o *RevokeTokensUnprocessableEntity) Code() int
Code gets the status code for the revoke tokens unprocessable entity response
func (*RevokeTokensUnprocessableEntity) Error ¶
func (o *RevokeTokensUnprocessableEntity) Error() string
func (*RevokeTokensUnprocessableEntity) GetPayload ¶
func (o *RevokeTokensUnprocessableEntity) GetPayload() *models.Error
func (*RevokeTokensUnprocessableEntity) IsClientError ¶
func (o *RevokeTokensUnprocessableEntity) IsClientError() bool
IsClientError returns true when this revoke tokens unprocessable entity response has a 4xx status code
func (*RevokeTokensUnprocessableEntity) IsCode ¶
func (o *RevokeTokensUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this revoke tokens unprocessable entity response a status code equal to that given
func (*RevokeTokensUnprocessableEntity) IsRedirect ¶
func (o *RevokeTokensUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this revoke tokens unprocessable entity response has a 3xx status code
func (*RevokeTokensUnprocessableEntity) IsServerError ¶
func (o *RevokeTokensUnprocessableEntity) IsServerError() bool
IsServerError returns true when this revoke tokens unprocessable entity response has a 5xx status code
func (*RevokeTokensUnprocessableEntity) IsSuccess ¶
func (o *RevokeTokensUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this revoke tokens unprocessable entity response has a 2xx status code
func (*RevokeTokensUnprocessableEntity) String ¶
func (o *RevokeTokensUnprocessableEntity) String() string