tokens

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 12 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 tokens API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TokenInfoGet

func (a *Client) TokenInfoGet(params *TokenInfoGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenInfoGetOK, error)

TokenInfoGet gets information about a single token

func (*Client) TokenInvalidatePost

func (a *Client) TokenInvalidatePost(params *TokenInvalidatePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenInvalidatePostOK, error)

TokenInvalidatePost invalidates the target token removing it from the database and making it unusable

func (*Client) TokensInfoGet

func (a *Client) TokensInfoGet(params *TokensInfoGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokensInfoGetOK, error)
TokensInfoGet sees info about tokens created for by your account

The items will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

The returned Link header can be used to generate the previous and next queries when paging up or down.

Example:

``` <https://example.org/api/v1/tokens?limit=20&max_id=01FC3GSQ8A3MMJ43BPZSGEG29M>; rel="next", <https://example.org/api/v1/tokens?limit=20&min_id=01FC3KJW2GYXSDDRA6RWNDM46M>; rel="prev" ````

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	TokenInfoGet(params *TokenInfoGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenInfoGetOK, error)

	TokenInvalidatePost(params *TokenInvalidatePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenInvalidatePostOK, error)

	TokensInfoGet(params *TokensInfoGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokensInfoGetOK, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new tokens API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new tokens API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type TokenInfoGetBadRequest

type TokenInfoGetBadRequest struct {
}

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

bad request

func NewTokenInfoGetBadRequest

func NewTokenInfoGetBadRequest() *TokenInfoGetBadRequest

NewTokenInfoGetBadRequest creates a TokenInfoGetBadRequest with default headers values

func (*TokenInfoGetBadRequest) Code

func (o *TokenInfoGetBadRequest) Code() int

Code gets the status code for the token info get bad request response

func (*TokenInfoGetBadRequest) Error

func (o *TokenInfoGetBadRequest) Error() string

func (*TokenInfoGetBadRequest) IsClientError

func (o *TokenInfoGetBadRequest) IsClientError() bool

IsClientError returns true when this token info get bad request response has a 4xx status code

func (*TokenInfoGetBadRequest) IsCode

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

IsCode returns true when this token info get bad request response a status code equal to that given

func (*TokenInfoGetBadRequest) IsRedirect

func (o *TokenInfoGetBadRequest) IsRedirect() bool

IsRedirect returns true when this token info get bad request response has a 3xx status code

func (*TokenInfoGetBadRequest) IsServerError

func (o *TokenInfoGetBadRequest) IsServerError() bool

IsServerError returns true when this token info get bad request response has a 5xx status code

func (*TokenInfoGetBadRequest) IsSuccess

func (o *TokenInfoGetBadRequest) IsSuccess() bool

IsSuccess returns true when this token info get bad request response has a 2xx status code

func (*TokenInfoGetBadRequest) String

func (o *TokenInfoGetBadRequest) String() string

type TokenInfoGetInternalServerError

type TokenInfoGetInternalServerError struct {
}

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

internal server error

func NewTokenInfoGetInternalServerError

func NewTokenInfoGetInternalServerError() *TokenInfoGetInternalServerError

NewTokenInfoGetInternalServerError creates a TokenInfoGetInternalServerError with default headers values

func (*TokenInfoGetInternalServerError) Code

Code gets the status code for the token info get internal server error response

func (*TokenInfoGetInternalServerError) Error

func (*TokenInfoGetInternalServerError) IsClientError

func (o *TokenInfoGetInternalServerError) IsClientError() bool

IsClientError returns true when this token info get internal server error response has a 4xx status code

func (*TokenInfoGetInternalServerError) IsCode

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

IsCode returns true when this token info get internal server error response a status code equal to that given

func (*TokenInfoGetInternalServerError) IsRedirect

func (o *TokenInfoGetInternalServerError) IsRedirect() bool

IsRedirect returns true when this token info get internal server error response has a 3xx status code

func (*TokenInfoGetInternalServerError) IsServerError

func (o *TokenInfoGetInternalServerError) IsServerError() bool

IsServerError returns true when this token info get internal server error response has a 5xx status code

func (*TokenInfoGetInternalServerError) IsSuccess

func (o *TokenInfoGetInternalServerError) IsSuccess() bool

IsSuccess returns true when this token info get internal server error response has a 2xx status code

func (*TokenInfoGetInternalServerError) String

type TokenInfoGetNotAcceptable

type TokenInfoGetNotAcceptable struct {
}

TokenInfoGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTokenInfoGetNotAcceptable

func NewTokenInfoGetNotAcceptable() *TokenInfoGetNotAcceptable

NewTokenInfoGetNotAcceptable creates a TokenInfoGetNotAcceptable with default headers values

func (*TokenInfoGetNotAcceptable) Code

func (o *TokenInfoGetNotAcceptable) Code() int

Code gets the status code for the token info get not acceptable response

func (*TokenInfoGetNotAcceptable) Error

func (o *TokenInfoGetNotAcceptable) Error() string

func (*TokenInfoGetNotAcceptable) IsClientError

func (o *TokenInfoGetNotAcceptable) IsClientError() bool

IsClientError returns true when this token info get not acceptable response has a 4xx status code

func (*TokenInfoGetNotAcceptable) IsCode

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

IsCode returns true when this token info get not acceptable response a status code equal to that given

func (*TokenInfoGetNotAcceptable) IsRedirect

func (o *TokenInfoGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this token info get not acceptable response has a 3xx status code

func (*TokenInfoGetNotAcceptable) IsServerError

func (o *TokenInfoGetNotAcceptable) IsServerError() bool

IsServerError returns true when this token info get not acceptable response has a 5xx status code

func (*TokenInfoGetNotAcceptable) IsSuccess

func (o *TokenInfoGetNotAcceptable) IsSuccess() bool

IsSuccess returns true when this token info get not acceptable response has a 2xx status code

func (*TokenInfoGetNotAcceptable) String

func (o *TokenInfoGetNotAcceptable) String() string

type TokenInfoGetNotFound

type TokenInfoGetNotFound struct {
}

TokenInfoGetNotFound describes a response with status code 404, with default header values.

not found

func NewTokenInfoGetNotFound

func NewTokenInfoGetNotFound() *TokenInfoGetNotFound

NewTokenInfoGetNotFound creates a TokenInfoGetNotFound with default headers values

func (*TokenInfoGetNotFound) Code

func (o *TokenInfoGetNotFound) Code() int

Code gets the status code for the token info get not found response

func (*TokenInfoGetNotFound) Error

func (o *TokenInfoGetNotFound) Error() string

func (*TokenInfoGetNotFound) IsClientError

func (o *TokenInfoGetNotFound) IsClientError() bool

IsClientError returns true when this token info get not found response has a 4xx status code

func (*TokenInfoGetNotFound) IsCode

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

IsCode returns true when this token info get not found response a status code equal to that given

func (*TokenInfoGetNotFound) IsRedirect

func (o *TokenInfoGetNotFound) IsRedirect() bool

IsRedirect returns true when this token info get not found response has a 3xx status code

func (*TokenInfoGetNotFound) IsServerError

func (o *TokenInfoGetNotFound) IsServerError() bool

IsServerError returns true when this token info get not found response has a 5xx status code

func (*TokenInfoGetNotFound) IsSuccess

func (o *TokenInfoGetNotFound) IsSuccess() bool

IsSuccess returns true when this token info get not found response has a 2xx status code

func (*TokenInfoGetNotFound) String

func (o *TokenInfoGetNotFound) String() string

type TokenInfoGetOK

type TokenInfoGetOK struct {
	Payload *models.TokenInfo
}

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

The requested token.

func NewTokenInfoGetOK

func NewTokenInfoGetOK() *TokenInfoGetOK

NewTokenInfoGetOK creates a TokenInfoGetOK with default headers values

func (*TokenInfoGetOK) Code

func (o *TokenInfoGetOK) Code() int

Code gets the status code for the token info get o k response

func (*TokenInfoGetOK) Error

func (o *TokenInfoGetOK) Error() string

func (*TokenInfoGetOK) GetPayload

func (o *TokenInfoGetOK) GetPayload() *models.TokenInfo

func (*TokenInfoGetOK) IsClientError

func (o *TokenInfoGetOK) IsClientError() bool

IsClientError returns true when this token info get o k response has a 4xx status code

func (*TokenInfoGetOK) IsCode

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

IsCode returns true when this token info get o k response a status code equal to that given

func (*TokenInfoGetOK) IsRedirect

func (o *TokenInfoGetOK) IsRedirect() bool

IsRedirect returns true when this token info get o k response has a 3xx status code

func (*TokenInfoGetOK) IsServerError

func (o *TokenInfoGetOK) IsServerError() bool

IsServerError returns true when this token info get o k response has a 5xx status code

func (*TokenInfoGetOK) IsSuccess

func (o *TokenInfoGetOK) IsSuccess() bool

IsSuccess returns true when this token info get o k response has a 2xx status code

func (*TokenInfoGetOK) String

func (o *TokenInfoGetOK) String() string

type TokenInfoGetParams

type TokenInfoGetParams struct {

	/* ID.

	   The id of the requested token.
	*/
	ID string

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

TokenInfoGetParams contains all the parameters to send to the API endpoint

for the token info get operation.

Typically these are written to a http.Request.

func NewTokenInfoGetParams

func NewTokenInfoGetParams() *TokenInfoGetParams

NewTokenInfoGetParams creates a new TokenInfoGetParams 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 NewTokenInfoGetParamsWithContext

func NewTokenInfoGetParamsWithContext(ctx context.Context) *TokenInfoGetParams

NewTokenInfoGetParamsWithContext creates a new TokenInfoGetParams object with the ability to set a context for a request.

func NewTokenInfoGetParamsWithHTTPClient

func NewTokenInfoGetParamsWithHTTPClient(client *http.Client) *TokenInfoGetParams

NewTokenInfoGetParamsWithHTTPClient creates a new TokenInfoGetParams object with the ability to set a custom HTTPClient for a request.

func NewTokenInfoGetParamsWithTimeout

func NewTokenInfoGetParamsWithTimeout(timeout time.Duration) *TokenInfoGetParams

NewTokenInfoGetParamsWithTimeout creates a new TokenInfoGetParams object with the ability to set a timeout on a request.

func (*TokenInfoGetParams) SetContext

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

SetContext adds the context to the token info get params

func (*TokenInfoGetParams) SetDefaults

func (o *TokenInfoGetParams) SetDefaults()

SetDefaults hydrates default values in the token info get params (not the query body).

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

func (*TokenInfoGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token info get params

func (*TokenInfoGetParams) SetID

func (o *TokenInfoGetParams) SetID(id string)

SetID adds the id to the token info get params

func (*TokenInfoGetParams) SetTimeout

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

SetTimeout adds the timeout to the token info get params

func (*TokenInfoGetParams) WithContext

WithContext adds the context to the token info get params

func (*TokenInfoGetParams) WithDefaults

func (o *TokenInfoGetParams) WithDefaults() *TokenInfoGetParams

WithDefaults hydrates default values in the token info get params (not the query body).

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

func (*TokenInfoGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token info get params

func (*TokenInfoGetParams) WithID

WithID adds the id to the token info get params

func (*TokenInfoGetParams) WithTimeout

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

WithTimeout adds the timeout to the token info get params

func (*TokenInfoGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokenInfoGetReader

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

TokenInfoGetReader is a Reader for the TokenInfoGet structure.

func (*TokenInfoGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenInfoGetUnauthorized

type TokenInfoGetUnauthorized struct {
}

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

unauthorized

func NewTokenInfoGetUnauthorized

func NewTokenInfoGetUnauthorized() *TokenInfoGetUnauthorized

NewTokenInfoGetUnauthorized creates a TokenInfoGetUnauthorized with default headers values

func (*TokenInfoGetUnauthorized) Code

func (o *TokenInfoGetUnauthorized) Code() int

Code gets the status code for the token info get unauthorized response

func (*TokenInfoGetUnauthorized) Error

func (o *TokenInfoGetUnauthorized) Error() string

func (*TokenInfoGetUnauthorized) IsClientError

func (o *TokenInfoGetUnauthorized) IsClientError() bool

IsClientError returns true when this token info get unauthorized response has a 4xx status code

func (*TokenInfoGetUnauthorized) IsCode

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

IsCode returns true when this token info get unauthorized response a status code equal to that given

func (*TokenInfoGetUnauthorized) IsRedirect

func (o *TokenInfoGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this token info get unauthorized response has a 3xx status code

func (*TokenInfoGetUnauthorized) IsServerError

func (o *TokenInfoGetUnauthorized) IsServerError() bool

IsServerError returns true when this token info get unauthorized response has a 5xx status code

func (*TokenInfoGetUnauthorized) IsSuccess

func (o *TokenInfoGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this token info get unauthorized response has a 2xx status code

func (*TokenInfoGetUnauthorized) String

func (o *TokenInfoGetUnauthorized) String() string

type TokenInvalidatePostBadRequest

type TokenInvalidatePostBadRequest struct {
}

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

bad request

func NewTokenInvalidatePostBadRequest

func NewTokenInvalidatePostBadRequest() *TokenInvalidatePostBadRequest

NewTokenInvalidatePostBadRequest creates a TokenInvalidatePostBadRequest with default headers values

func (*TokenInvalidatePostBadRequest) Code

Code gets the status code for the token invalidate post bad request response

func (*TokenInvalidatePostBadRequest) Error

func (*TokenInvalidatePostBadRequest) IsClientError

func (o *TokenInvalidatePostBadRequest) IsClientError() bool

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

func (*TokenInvalidatePostBadRequest) IsCode

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

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

func (*TokenInvalidatePostBadRequest) IsRedirect

func (o *TokenInvalidatePostBadRequest) IsRedirect() bool

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

func (*TokenInvalidatePostBadRequest) IsServerError

func (o *TokenInvalidatePostBadRequest) IsServerError() bool

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

func (*TokenInvalidatePostBadRequest) IsSuccess

func (o *TokenInvalidatePostBadRequest) IsSuccess() bool

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

func (*TokenInvalidatePostBadRequest) String

type TokenInvalidatePostInternalServerError

type TokenInvalidatePostInternalServerError struct {
}

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

internal server error

func NewTokenInvalidatePostInternalServerError

func NewTokenInvalidatePostInternalServerError() *TokenInvalidatePostInternalServerError

NewTokenInvalidatePostInternalServerError creates a TokenInvalidatePostInternalServerError with default headers values

func (*TokenInvalidatePostInternalServerError) Code

Code gets the status code for the token invalidate post internal server error response

func (*TokenInvalidatePostInternalServerError) Error

func (*TokenInvalidatePostInternalServerError) IsClientError

func (o *TokenInvalidatePostInternalServerError) IsClientError() bool

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

func (*TokenInvalidatePostInternalServerError) IsCode

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

func (*TokenInvalidatePostInternalServerError) IsRedirect

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

func (*TokenInvalidatePostInternalServerError) IsServerError

func (o *TokenInvalidatePostInternalServerError) IsServerError() bool

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

func (*TokenInvalidatePostInternalServerError) IsSuccess

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

func (*TokenInvalidatePostInternalServerError) String

type TokenInvalidatePostNotAcceptable

type TokenInvalidatePostNotAcceptable struct {
}

TokenInvalidatePostNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTokenInvalidatePostNotAcceptable

func NewTokenInvalidatePostNotAcceptable() *TokenInvalidatePostNotAcceptable

NewTokenInvalidatePostNotAcceptable creates a TokenInvalidatePostNotAcceptable with default headers values

func (*TokenInvalidatePostNotAcceptable) Code

Code gets the status code for the token invalidate post not acceptable response

func (*TokenInvalidatePostNotAcceptable) Error

func (*TokenInvalidatePostNotAcceptable) IsClientError

func (o *TokenInvalidatePostNotAcceptable) IsClientError() bool

IsClientError returns true when this token invalidate post not acceptable response has a 4xx status code

func (*TokenInvalidatePostNotAcceptable) IsCode

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

IsCode returns true when this token invalidate post not acceptable response a status code equal to that given

func (*TokenInvalidatePostNotAcceptable) IsRedirect

func (o *TokenInvalidatePostNotAcceptable) IsRedirect() bool

IsRedirect returns true when this token invalidate post not acceptable response has a 3xx status code

func (*TokenInvalidatePostNotAcceptable) IsServerError

func (o *TokenInvalidatePostNotAcceptable) IsServerError() bool

IsServerError returns true when this token invalidate post not acceptable response has a 5xx status code

func (*TokenInvalidatePostNotAcceptable) IsSuccess

func (o *TokenInvalidatePostNotAcceptable) IsSuccess() bool

IsSuccess returns true when this token invalidate post not acceptable response has a 2xx status code

func (*TokenInvalidatePostNotAcceptable) String

type TokenInvalidatePostNotFound

type TokenInvalidatePostNotFound struct {
}

TokenInvalidatePostNotFound describes a response with status code 404, with default header values.

not found

func NewTokenInvalidatePostNotFound

func NewTokenInvalidatePostNotFound() *TokenInvalidatePostNotFound

NewTokenInvalidatePostNotFound creates a TokenInvalidatePostNotFound with default headers values

func (*TokenInvalidatePostNotFound) Code

func (o *TokenInvalidatePostNotFound) Code() int

Code gets the status code for the token invalidate post not found response

func (*TokenInvalidatePostNotFound) Error

func (*TokenInvalidatePostNotFound) IsClientError

func (o *TokenInvalidatePostNotFound) IsClientError() bool

IsClientError returns true when this token invalidate post not found response has a 4xx status code

func (*TokenInvalidatePostNotFound) IsCode

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

IsCode returns true when this token invalidate post not found response a status code equal to that given

func (*TokenInvalidatePostNotFound) IsRedirect

func (o *TokenInvalidatePostNotFound) IsRedirect() bool

IsRedirect returns true when this token invalidate post not found response has a 3xx status code

func (*TokenInvalidatePostNotFound) IsServerError

func (o *TokenInvalidatePostNotFound) IsServerError() bool

IsServerError returns true when this token invalidate post not found response has a 5xx status code

func (*TokenInvalidatePostNotFound) IsSuccess

func (o *TokenInvalidatePostNotFound) IsSuccess() bool

IsSuccess returns true when this token invalidate post not found response has a 2xx status code

func (*TokenInvalidatePostNotFound) String

func (o *TokenInvalidatePostNotFound) String() string

type TokenInvalidatePostOK

type TokenInvalidatePostOK struct {
	Payload *models.TokenInfo
}

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

Info about the invalidated token.

func NewTokenInvalidatePostOK

func NewTokenInvalidatePostOK() *TokenInvalidatePostOK

NewTokenInvalidatePostOK creates a TokenInvalidatePostOK with default headers values

func (*TokenInvalidatePostOK) Code

func (o *TokenInvalidatePostOK) Code() int

Code gets the status code for the token invalidate post o k response

func (*TokenInvalidatePostOK) Error

func (o *TokenInvalidatePostOK) Error() string

func (*TokenInvalidatePostOK) GetPayload

func (o *TokenInvalidatePostOK) GetPayload() *models.TokenInfo

func (*TokenInvalidatePostOK) IsClientError

func (o *TokenInvalidatePostOK) IsClientError() bool

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

func (*TokenInvalidatePostOK) IsCode

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

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

func (*TokenInvalidatePostOK) IsRedirect

func (o *TokenInvalidatePostOK) IsRedirect() bool

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

func (*TokenInvalidatePostOK) IsServerError

func (o *TokenInvalidatePostOK) IsServerError() bool

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

func (*TokenInvalidatePostOK) IsSuccess

func (o *TokenInvalidatePostOK) IsSuccess() bool

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

func (*TokenInvalidatePostOK) String

func (o *TokenInvalidatePostOK) String() string

type TokenInvalidatePostParams

type TokenInvalidatePostParams struct {

	/* ID.

	   The id of the target token.
	*/
	ID string

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

TokenInvalidatePostParams contains all the parameters to send to the API endpoint

for the token invalidate post operation.

Typically these are written to a http.Request.

func NewTokenInvalidatePostParams

func NewTokenInvalidatePostParams() *TokenInvalidatePostParams

NewTokenInvalidatePostParams creates a new TokenInvalidatePostParams 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 NewTokenInvalidatePostParamsWithContext

func NewTokenInvalidatePostParamsWithContext(ctx context.Context) *TokenInvalidatePostParams

NewTokenInvalidatePostParamsWithContext creates a new TokenInvalidatePostParams object with the ability to set a context for a request.

func NewTokenInvalidatePostParamsWithHTTPClient

func NewTokenInvalidatePostParamsWithHTTPClient(client *http.Client) *TokenInvalidatePostParams

NewTokenInvalidatePostParamsWithHTTPClient creates a new TokenInvalidatePostParams object with the ability to set a custom HTTPClient for a request.

func NewTokenInvalidatePostParamsWithTimeout

func NewTokenInvalidatePostParamsWithTimeout(timeout time.Duration) *TokenInvalidatePostParams

NewTokenInvalidatePostParamsWithTimeout creates a new TokenInvalidatePostParams object with the ability to set a timeout on a request.

func (*TokenInvalidatePostParams) SetContext

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

SetContext adds the context to the token invalidate post params

func (*TokenInvalidatePostParams) SetDefaults

func (o *TokenInvalidatePostParams) SetDefaults()

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

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

func (*TokenInvalidatePostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token invalidate post params

func (*TokenInvalidatePostParams) SetID

func (o *TokenInvalidatePostParams) SetID(id string)

SetID adds the id to the token invalidate post params

func (*TokenInvalidatePostParams) SetTimeout

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

SetTimeout adds the timeout to the token invalidate post params

func (*TokenInvalidatePostParams) WithContext

WithContext adds the context to the token invalidate post params

func (*TokenInvalidatePostParams) WithDefaults

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

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

func (*TokenInvalidatePostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token invalidate post params

func (*TokenInvalidatePostParams) WithID

WithID adds the id to the token invalidate post params

func (*TokenInvalidatePostParams) WithTimeout

WithTimeout adds the timeout to the token invalidate post params

func (*TokenInvalidatePostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenInvalidatePostReader

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

TokenInvalidatePostReader is a Reader for the TokenInvalidatePost structure.

func (*TokenInvalidatePostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenInvalidatePostUnauthorized

type TokenInvalidatePostUnauthorized struct {
}

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

unauthorized

func NewTokenInvalidatePostUnauthorized

func NewTokenInvalidatePostUnauthorized() *TokenInvalidatePostUnauthorized

NewTokenInvalidatePostUnauthorized creates a TokenInvalidatePostUnauthorized with default headers values

func (*TokenInvalidatePostUnauthorized) Code

Code gets the status code for the token invalidate post unauthorized response

func (*TokenInvalidatePostUnauthorized) Error

func (*TokenInvalidatePostUnauthorized) IsClientError

func (o *TokenInvalidatePostUnauthorized) IsClientError() bool

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

func (*TokenInvalidatePostUnauthorized) IsCode

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

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

func (*TokenInvalidatePostUnauthorized) IsRedirect

func (o *TokenInvalidatePostUnauthorized) IsRedirect() bool

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

func (*TokenInvalidatePostUnauthorized) IsServerError

func (o *TokenInvalidatePostUnauthorized) IsServerError() bool

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

func (*TokenInvalidatePostUnauthorized) IsSuccess

func (o *TokenInvalidatePostUnauthorized) IsSuccess() bool

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

func (*TokenInvalidatePostUnauthorized) String

type TokensInfoGetBadRequest

type TokensInfoGetBadRequest struct {
}

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

bad request

func NewTokensInfoGetBadRequest

func NewTokensInfoGetBadRequest() *TokensInfoGetBadRequest

NewTokensInfoGetBadRequest creates a TokensInfoGetBadRequest with default headers values

func (*TokensInfoGetBadRequest) Code

func (o *TokensInfoGetBadRequest) Code() int

Code gets the status code for the tokens info get bad request response

func (*TokensInfoGetBadRequest) Error

func (o *TokensInfoGetBadRequest) Error() string

func (*TokensInfoGetBadRequest) IsClientError

func (o *TokensInfoGetBadRequest) IsClientError() bool

IsClientError returns true when this tokens info get bad request response has a 4xx status code

func (*TokensInfoGetBadRequest) IsCode

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

IsCode returns true when this tokens info get bad request response a status code equal to that given

func (*TokensInfoGetBadRequest) IsRedirect

func (o *TokensInfoGetBadRequest) IsRedirect() bool

IsRedirect returns true when this tokens info get bad request response has a 3xx status code

func (*TokensInfoGetBadRequest) IsServerError

func (o *TokensInfoGetBadRequest) IsServerError() bool

IsServerError returns true when this tokens info get bad request response has a 5xx status code

func (*TokensInfoGetBadRequest) IsSuccess

func (o *TokensInfoGetBadRequest) IsSuccess() bool

IsSuccess returns true when this tokens info get bad request response has a 2xx status code

func (*TokensInfoGetBadRequest) String

func (o *TokensInfoGetBadRequest) String() string

type TokensInfoGetOK

type TokensInfoGetOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.TokenInfo
}

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

Array of token info entries.

func NewTokensInfoGetOK

func NewTokensInfoGetOK() *TokensInfoGetOK

NewTokensInfoGetOK creates a TokensInfoGetOK with default headers values

func (*TokensInfoGetOK) Code

func (o *TokensInfoGetOK) Code() int

Code gets the status code for the tokens info get o k response

func (*TokensInfoGetOK) Error

func (o *TokensInfoGetOK) Error() string

func (*TokensInfoGetOK) GetPayload

func (o *TokensInfoGetOK) GetPayload() []*models.TokenInfo

func (*TokensInfoGetOK) IsClientError

func (o *TokensInfoGetOK) IsClientError() bool

IsClientError returns true when this tokens info get o k response has a 4xx status code

func (*TokensInfoGetOK) IsCode

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

IsCode returns true when this tokens info get o k response a status code equal to that given

func (*TokensInfoGetOK) IsRedirect

func (o *TokensInfoGetOK) IsRedirect() bool

IsRedirect returns true when this tokens info get o k response has a 3xx status code

func (*TokensInfoGetOK) IsServerError

func (o *TokensInfoGetOK) IsServerError() bool

IsServerError returns true when this tokens info get o k response has a 5xx status code

func (*TokensInfoGetOK) IsSuccess

func (o *TokensInfoGetOK) IsSuccess() bool

IsSuccess returns true when this tokens info get o k response has a 2xx status code

func (*TokensInfoGetOK) String

func (o *TokensInfoGetOK) String() string

type TokensInfoGetParams

type TokensInfoGetParams struct {

	/* Limit.

	   Number of items to return.

	   Default: 20
	*/
	Limit *int64

	/* MaxID.

	   Return only items *OLDER* than the given max item ID. The item with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only items *immediately newer* than the given since item ID. The item with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only items *newer* than the given since item ID. The item with the specified ID will not be included in the response.
	*/
	SinceID *string

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

TokensInfoGetParams contains all the parameters to send to the API endpoint

for the tokens info get operation.

Typically these are written to a http.Request.

func NewTokensInfoGetParams

func NewTokensInfoGetParams() *TokensInfoGetParams

NewTokensInfoGetParams creates a new TokensInfoGetParams 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 NewTokensInfoGetParamsWithContext

func NewTokensInfoGetParamsWithContext(ctx context.Context) *TokensInfoGetParams

NewTokensInfoGetParamsWithContext creates a new TokensInfoGetParams object with the ability to set a context for a request.

func NewTokensInfoGetParamsWithHTTPClient

func NewTokensInfoGetParamsWithHTTPClient(client *http.Client) *TokensInfoGetParams

NewTokensInfoGetParamsWithHTTPClient creates a new TokensInfoGetParams object with the ability to set a custom HTTPClient for a request.

func NewTokensInfoGetParamsWithTimeout

func NewTokensInfoGetParamsWithTimeout(timeout time.Duration) *TokensInfoGetParams

NewTokensInfoGetParamsWithTimeout creates a new TokensInfoGetParams object with the ability to set a timeout on a request.

func (*TokensInfoGetParams) SetContext

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

SetContext adds the context to the tokens info get params

func (*TokensInfoGetParams) SetDefaults

func (o *TokensInfoGetParams) SetDefaults()

SetDefaults hydrates default values in the tokens info get params (not the query body).

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

func (*TokensInfoGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tokens info get params

func (*TokensInfoGetParams) SetLimit

func (o *TokensInfoGetParams) SetLimit(limit *int64)

SetLimit adds the limit to the tokens info get params

func (*TokensInfoGetParams) SetMaxID

func (o *TokensInfoGetParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the tokens info get params

func (*TokensInfoGetParams) SetMinID

func (o *TokensInfoGetParams) SetMinID(minID *string)

SetMinID adds the minId to the tokens info get params

func (*TokensInfoGetParams) SetSinceID

func (o *TokensInfoGetParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the tokens info get params

func (*TokensInfoGetParams) SetTimeout

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

SetTimeout adds the timeout to the tokens info get params

func (*TokensInfoGetParams) WithContext

WithContext adds the context to the tokens info get params

func (*TokensInfoGetParams) WithDefaults

func (o *TokensInfoGetParams) WithDefaults() *TokensInfoGetParams

WithDefaults hydrates default values in the tokens info get params (not the query body).

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

func (*TokensInfoGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tokens info get params

func (*TokensInfoGetParams) WithLimit

func (o *TokensInfoGetParams) WithLimit(limit *int64) *TokensInfoGetParams

WithLimit adds the limit to the tokens info get params

func (*TokensInfoGetParams) WithMaxID

func (o *TokensInfoGetParams) WithMaxID(maxID *string) *TokensInfoGetParams

WithMaxID adds the maxID to the tokens info get params

func (*TokensInfoGetParams) WithMinID

func (o *TokensInfoGetParams) WithMinID(minID *string) *TokensInfoGetParams

WithMinID adds the minID to the tokens info get params

func (*TokensInfoGetParams) WithSinceID

func (o *TokensInfoGetParams) WithSinceID(sinceID *string) *TokensInfoGetParams

WithSinceID adds the sinceID to the tokens info get params

func (*TokensInfoGetParams) WithTimeout

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

WithTimeout adds the timeout to the tokens info get params

func (*TokensInfoGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokensInfoGetReader

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

TokensInfoGetReader is a Reader for the TokensInfoGet structure.

func (*TokensInfoGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokensInfoGetUnauthorized

type TokensInfoGetUnauthorized struct {
}

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

unauthorized

func NewTokensInfoGetUnauthorized

func NewTokensInfoGetUnauthorized() *TokensInfoGetUnauthorized

NewTokensInfoGetUnauthorized creates a TokensInfoGetUnauthorized with default headers values

func (*TokensInfoGetUnauthorized) Code

func (o *TokensInfoGetUnauthorized) Code() int

Code gets the status code for the tokens info get unauthorized response

func (*TokensInfoGetUnauthorized) Error

func (o *TokensInfoGetUnauthorized) Error() string

func (*TokensInfoGetUnauthorized) IsClientError

func (o *TokensInfoGetUnauthorized) IsClientError() bool

IsClientError returns true when this tokens info get unauthorized response has a 4xx status code

func (*TokensInfoGetUnauthorized) IsCode

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

IsCode returns true when this tokens info get unauthorized response a status code equal to that given

func (*TokensInfoGetUnauthorized) IsRedirect

func (o *TokensInfoGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this tokens info get unauthorized response has a 3xx status code

func (*TokensInfoGetUnauthorized) IsServerError

func (o *TokensInfoGetUnauthorized) IsServerError() bool

IsServerError returns true when this tokens info get unauthorized response has a 5xx status code

func (*TokensInfoGetUnauthorized) IsSuccess

func (o *TokensInfoGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this tokens info get unauthorized response has a 2xx status code

func (*TokensInfoGetUnauthorized) String

func (o *TokensInfoGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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