Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateTokenCreated, error)
- func (a *Client) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteTokenNoContent, error)
- func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTokensOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateTokenBadRequest
- func (o *CreateTokenBadRequest) Error() string
- func (o *CreateTokenBadRequest) GetPayload() *models.Errored
- func (o *CreateTokenBadRequest) IsClientError() bool
- func (o *CreateTokenBadRequest) IsCode(code int) bool
- func (o *CreateTokenBadRequest) IsRedirect() bool
- func (o *CreateTokenBadRequest) IsServerError() bool
- func (o *CreateTokenBadRequest) IsSuccess() bool
- func (o *CreateTokenBadRequest) String() string
- type CreateTokenCreated
- func (o *CreateTokenCreated) Error() string
- func (o *CreateTokenCreated) GetPayload() *models.TokenCreated
- func (o *CreateTokenCreated) IsClientError() bool
- func (o *CreateTokenCreated) IsCode(code int) bool
- func (o *CreateTokenCreated) IsRedirect() bool
- func (o *CreateTokenCreated) IsServerError() bool
- func (o *CreateTokenCreated) IsSuccess() bool
- func (o *CreateTokenCreated) String() string
- type CreateTokenNotFound
- func (o *CreateTokenNotFound) Error() string
- func (o *CreateTokenNotFound) GetPayload() *models.Errored
- func (o *CreateTokenNotFound) IsClientError() bool
- func (o *CreateTokenNotFound) IsCode(code int) bool
- func (o *CreateTokenNotFound) IsRedirect() bool
- func (o *CreateTokenNotFound) IsServerError() bool
- func (o *CreateTokenNotFound) IsSuccess() bool
- func (o *CreateTokenNotFound) String() string
- type CreateTokenParams
- func (o *CreateTokenParams) SetBody(body *models.TokenPayload)
- func (o *CreateTokenParams) SetContext(ctx context.Context)
- func (o *CreateTokenParams) SetDefaults()
- func (o *CreateTokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateTokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateTokenParams) WithBody(body *models.TokenPayload) *CreateTokenParams
- func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams
- func (o *CreateTokenParams) WithDefaults() *CreateTokenParams
- func (o *CreateTokenParams) WithHTTPClient(client *http.Client) *CreateTokenParams
- func (o *CreateTokenParams) WithTimeout(timeout time.Duration) *CreateTokenParams
- func (o *CreateTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTokenReader
- type DeleteTokenBadRequest
- func (o *DeleteTokenBadRequest) Error() string
- func (o *DeleteTokenBadRequest) GetPayload() *models.Errored
- func (o *DeleteTokenBadRequest) IsClientError() bool
- func (o *DeleteTokenBadRequest) IsCode(code int) bool
- func (o *DeleteTokenBadRequest) IsRedirect() bool
- func (o *DeleteTokenBadRequest) IsServerError() bool
- func (o *DeleteTokenBadRequest) IsSuccess() bool
- func (o *DeleteTokenBadRequest) String() string
- type DeleteTokenNoContent
- func (o *DeleteTokenNoContent) Error() string
- func (o *DeleteTokenNoContent) IsClientError() bool
- func (o *DeleteTokenNoContent) IsCode(code int) bool
- func (o *DeleteTokenNoContent) IsRedirect() bool
- func (o *DeleteTokenNoContent) IsServerError() bool
- func (o *DeleteTokenNoContent) IsSuccess() bool
- func (o *DeleteTokenNoContent) String() string
- type DeleteTokenNotFound
- func (o *DeleteTokenNotFound) Error() string
- func (o *DeleteTokenNotFound) GetPayload() *models.Errored
- func (o *DeleteTokenNotFound) IsClientError() bool
- func (o *DeleteTokenNotFound) IsCode(code int) bool
- func (o *DeleteTokenNotFound) IsRedirect() bool
- func (o *DeleteTokenNotFound) IsServerError() bool
- func (o *DeleteTokenNotFound) IsSuccess() bool
- func (o *DeleteTokenNotFound) String() string
- type DeleteTokenParams
- func (o *DeleteTokenParams) SetContext(ctx context.Context)
- func (o *DeleteTokenParams) SetDefaults()
- func (o *DeleteTokenParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTokenParams) SetID(id strfmt.UUID)
- func (o *DeleteTokenParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTokenParams) WithContext(ctx context.Context) *DeleteTokenParams
- func (o *DeleteTokenParams) WithDefaults() *DeleteTokenParams
- func (o *DeleteTokenParams) WithHTTPClient(client *http.Client) *DeleteTokenParams
- func (o *DeleteTokenParams) WithID(id strfmt.UUID) *DeleteTokenParams
- func (o *DeleteTokenParams) WithTimeout(timeout time.Duration) *DeleteTokenParams
- func (o *DeleteTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTokenReader
- type ListTokensBadRequest
- func (o *ListTokensBadRequest) Error() string
- func (o *ListTokensBadRequest) GetPayload() *models.Errored
- func (o *ListTokensBadRequest) IsClientError() bool
- func (o *ListTokensBadRequest) IsCode(code int) bool
- func (o *ListTokensBadRequest) IsRedirect() bool
- func (o *ListTokensBadRequest) IsServerError() bool
- func (o *ListTokensBadRequest) IsSuccess() bool
- func (o *ListTokensBadRequest) String() string
- type ListTokensNotFound
- func (o *ListTokensNotFound) Error() string
- func (o *ListTokensNotFound) GetPayload() *models.Errored
- func (o *ListTokensNotFound) IsClientError() bool
- func (o *ListTokensNotFound) IsCode(code int) bool
- func (o *ListTokensNotFound) IsRedirect() bool
- func (o *ListTokensNotFound) IsServerError() bool
- func (o *ListTokensNotFound) IsSuccess() bool
- func (o *ListTokensNotFound) String() string
- type ListTokensOK
- func (o *ListTokensOK) Error() string
- func (o *ListTokensOK) GetPayload() *models.TokensInfo
- func (o *ListTokensOK) IsClientError() bool
- func (o *ListTokensOK) IsCode(code int) bool
- func (o *ListTokensOK) IsRedirect() bool
- func (o *ListTokensOK) IsServerError() bool
- func (o *ListTokensOK) IsSuccess() bool
- func (o *ListTokensOK) String() string
- type ListTokensParams
- func (o *ListTokensParams) SetContext(ctx context.Context)
- func (o *ListTokensParams) SetDefaults()
- func (o *ListTokensParams) SetHTTPClient(client *http.Client)
- func (o *ListTokensParams) SetResourceClass(resourceClass string)
- func (o *ListTokensParams) SetTimeout(timeout time.Duration)
- func (o *ListTokensParams) WithContext(ctx context.Context) *ListTokensParams
- func (o *ListTokensParams) WithDefaults() *ListTokensParams
- func (o *ListTokensParams) WithHTTPClient(client *http.Client) *ListTokensParams
- func (o *ListTokensParams) WithResourceClass(resourceClass string) *ListTokensParams
- func (o *ListTokensParams) WithTimeout(timeout time.Duration) *ListTokensParams
- func (o *ListTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTokensReader
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 API
func (*Client) CreateToken ¶
func (a *Client) CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTokenCreated, error)
CreateToken creates a token for a runner resource class
Create a token for a Runner resource-class.
func (*Client) DeleteToken ¶
func (a *Client) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTokenNoContent, error)
DeleteToken deletes a runner token
Delete a Runner token.
func (*Client) ListTokens ¶
func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTokensOK, error)
ListTokens lists tokens for a runner resource class
List tokens for a Runner resource-class.
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 { CreateToken(params *CreateTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTokenCreated, error) DeleteToken(params *DeleteTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTokenNoContent, error) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTokensOK, 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 API client.
type CreateTokenBadRequest ¶
CreateTokenBadRequest describes a response with status code 400, with default header values.
Invalid input
func NewCreateTokenBadRequest ¶
func NewCreateTokenBadRequest() *CreateTokenBadRequest
NewCreateTokenBadRequest creates a CreateTokenBadRequest with default headers values
func (*CreateTokenBadRequest) Error ¶
func (o *CreateTokenBadRequest) Error() string
func (*CreateTokenBadRequest) GetPayload ¶
func (o *CreateTokenBadRequest) GetPayload() *models.Errored
func (*CreateTokenBadRequest) IsClientError ¶
func (o *CreateTokenBadRequest) IsClientError() bool
IsClientError returns true when this create token bad request response has a 4xx status code
func (*CreateTokenBadRequest) IsCode ¶
func (o *CreateTokenBadRequest) IsCode(code int) bool
IsCode returns true when this create token bad request response a status code equal to that given
func (*CreateTokenBadRequest) IsRedirect ¶
func (o *CreateTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this create token bad request response has a 3xx status code
func (*CreateTokenBadRequest) IsServerError ¶
func (o *CreateTokenBadRequest) IsServerError() bool
IsServerError returns true when this create token bad request response has a 5xx status code
func (*CreateTokenBadRequest) IsSuccess ¶
func (o *CreateTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this create token bad request response has a 2xx status code
func (*CreateTokenBadRequest) String ¶
func (o *CreateTokenBadRequest) String() string
type CreateTokenCreated ¶
type CreateTokenCreated struct {
Payload *models.TokenCreated
}
CreateTokenCreated describes a response with status code 201, with default header values.
A Runner token object
func NewCreateTokenCreated ¶
func NewCreateTokenCreated() *CreateTokenCreated
NewCreateTokenCreated creates a CreateTokenCreated with default headers values
func (*CreateTokenCreated) Error ¶
func (o *CreateTokenCreated) Error() string
func (*CreateTokenCreated) GetPayload ¶
func (o *CreateTokenCreated) GetPayload() *models.TokenCreated
func (*CreateTokenCreated) IsClientError ¶
func (o *CreateTokenCreated) IsClientError() bool
IsClientError returns true when this create token created response has a 4xx status code
func (*CreateTokenCreated) IsCode ¶
func (o *CreateTokenCreated) IsCode(code int) bool
IsCode returns true when this create token created response a status code equal to that given
func (*CreateTokenCreated) IsRedirect ¶
func (o *CreateTokenCreated) IsRedirect() bool
IsRedirect returns true when this create token created response has a 3xx status code
func (*CreateTokenCreated) IsServerError ¶
func (o *CreateTokenCreated) IsServerError() bool
IsServerError returns true when this create token created response has a 5xx status code
func (*CreateTokenCreated) IsSuccess ¶
func (o *CreateTokenCreated) IsSuccess() bool
IsSuccess returns true when this create token created response has a 2xx status code
func (*CreateTokenCreated) String ¶
func (o *CreateTokenCreated) String() string
type CreateTokenNotFound ¶
CreateTokenNotFound describes a response with status code 404, with default header values.
Not Found
func NewCreateTokenNotFound ¶
func NewCreateTokenNotFound() *CreateTokenNotFound
NewCreateTokenNotFound creates a CreateTokenNotFound with default headers values
func (*CreateTokenNotFound) Error ¶
func (o *CreateTokenNotFound) Error() string
func (*CreateTokenNotFound) GetPayload ¶
func (o *CreateTokenNotFound) GetPayload() *models.Errored
func (*CreateTokenNotFound) IsClientError ¶
func (o *CreateTokenNotFound) IsClientError() bool
IsClientError returns true when this create token not found response has a 4xx status code
func (*CreateTokenNotFound) IsCode ¶
func (o *CreateTokenNotFound) IsCode(code int) bool
IsCode returns true when this create token not found response a status code equal to that given
func (*CreateTokenNotFound) IsRedirect ¶
func (o *CreateTokenNotFound) IsRedirect() bool
IsRedirect returns true when this create token not found response has a 3xx status code
func (*CreateTokenNotFound) IsServerError ¶
func (o *CreateTokenNotFound) IsServerError() bool
IsServerError returns true when this create token not found response has a 5xx status code
func (*CreateTokenNotFound) IsSuccess ¶
func (o *CreateTokenNotFound) IsSuccess() bool
IsSuccess returns true when this create token not found response has a 2xx status code
func (*CreateTokenNotFound) String ¶
func (o *CreateTokenNotFound) String() string
type CreateTokenParams ¶
type CreateTokenParams struct { /* Body. Runner token information (payload) */ Body *models.TokenPayload Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateTokenParams contains all the parameters to send to the API endpoint
for the create token operation. Typically these are written to a http.Request.
func NewCreateTokenParams ¶
func NewCreateTokenParams() *CreateTokenParams
NewCreateTokenParams creates a new CreateTokenParams 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 NewCreateTokenParamsWithContext ¶
func NewCreateTokenParamsWithContext(ctx context.Context) *CreateTokenParams
NewCreateTokenParamsWithContext creates a new CreateTokenParams object with the ability to set a context for a request.
func NewCreateTokenParamsWithHTTPClient ¶
func NewCreateTokenParamsWithHTTPClient(client *http.Client) *CreateTokenParams
NewCreateTokenParamsWithHTTPClient creates a new CreateTokenParams object with the ability to set a custom HTTPClient for a request.
func NewCreateTokenParamsWithTimeout ¶
func NewCreateTokenParamsWithTimeout(timeout time.Duration) *CreateTokenParams
NewCreateTokenParamsWithTimeout creates a new CreateTokenParams object with the ability to set a timeout on a request.
func (*CreateTokenParams) SetBody ¶
func (o *CreateTokenParams) SetBody(body *models.TokenPayload)
SetBody adds the body to the create token params
func (*CreateTokenParams) SetContext ¶
func (o *CreateTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the create token params
func (*CreateTokenParams) SetDefaults ¶
func (o *CreateTokenParams) SetDefaults()
SetDefaults hydrates default values in the create token params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTokenParams) SetHTTPClient ¶
func (o *CreateTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create token params
func (*CreateTokenParams) SetTimeout ¶
func (o *CreateTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create token params
func (*CreateTokenParams) WithBody ¶
func (o *CreateTokenParams) WithBody(body *models.TokenPayload) *CreateTokenParams
WithBody adds the body to the create token params
func (*CreateTokenParams) WithContext ¶
func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams
WithContext adds the context to the create token params
func (*CreateTokenParams) WithDefaults ¶
func (o *CreateTokenParams) WithDefaults() *CreateTokenParams
WithDefaults hydrates default values in the create token params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTokenParams) WithHTTPClient ¶
func (o *CreateTokenParams) WithHTTPClient(client *http.Client) *CreateTokenParams
WithHTTPClient adds the HTTPClient to the create token params
func (*CreateTokenParams) WithTimeout ¶
func (o *CreateTokenParams) WithTimeout(timeout time.Duration) *CreateTokenParams
WithTimeout adds the timeout to the create token params
func (*CreateTokenParams) WriteToRequest ¶
func (o *CreateTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateTokenReader ¶
type CreateTokenReader struct {
// contains filtered or unexported fields
}
CreateTokenReader is a Reader for the CreateToken structure.
func (*CreateTokenReader) ReadResponse ¶
func (o *CreateTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteTokenBadRequest ¶
DeleteTokenBadRequest describes a response with status code 400, with default header values.
Invalid input
func NewDeleteTokenBadRequest ¶
func NewDeleteTokenBadRequest() *DeleteTokenBadRequest
NewDeleteTokenBadRequest creates a DeleteTokenBadRequest with default headers values
func (*DeleteTokenBadRequest) Error ¶
func (o *DeleteTokenBadRequest) Error() string
func (*DeleteTokenBadRequest) GetPayload ¶
func (o *DeleteTokenBadRequest) GetPayload() *models.Errored
func (*DeleteTokenBadRequest) IsClientError ¶
func (o *DeleteTokenBadRequest) IsClientError() bool
IsClientError returns true when this delete token bad request response has a 4xx status code
func (*DeleteTokenBadRequest) IsCode ¶
func (o *DeleteTokenBadRequest) IsCode(code int) bool
IsCode returns true when this delete token bad request response a status code equal to that given
func (*DeleteTokenBadRequest) IsRedirect ¶
func (o *DeleteTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this delete token bad request response has a 3xx status code
func (*DeleteTokenBadRequest) IsServerError ¶
func (o *DeleteTokenBadRequest) IsServerError() bool
IsServerError returns true when this delete token bad request response has a 5xx status code
func (*DeleteTokenBadRequest) IsSuccess ¶
func (o *DeleteTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this delete token bad request response has a 2xx status code
func (*DeleteTokenBadRequest) String ¶
func (o *DeleteTokenBadRequest) String() string
type DeleteTokenNoContent ¶
type DeleteTokenNoContent struct { }
DeleteTokenNoContent describes a response with status code 204, with default header values.
Runner token was deleted successfully.
func NewDeleteTokenNoContent ¶
func NewDeleteTokenNoContent() *DeleteTokenNoContent
NewDeleteTokenNoContent creates a DeleteTokenNoContent with default headers values
func (*DeleteTokenNoContent) Error ¶
func (o *DeleteTokenNoContent) Error() string
func (*DeleteTokenNoContent) IsClientError ¶
func (o *DeleteTokenNoContent) IsClientError() bool
IsClientError returns true when this delete token no content response has a 4xx status code
func (*DeleteTokenNoContent) IsCode ¶
func (o *DeleteTokenNoContent) IsCode(code int) bool
IsCode returns true when this delete token no content response a status code equal to that given
func (*DeleteTokenNoContent) IsRedirect ¶
func (o *DeleteTokenNoContent) IsRedirect() bool
IsRedirect returns true when this delete token no content response has a 3xx status code
func (*DeleteTokenNoContent) IsServerError ¶
func (o *DeleteTokenNoContent) IsServerError() bool
IsServerError returns true when this delete token no content response has a 5xx status code
func (*DeleteTokenNoContent) IsSuccess ¶
func (o *DeleteTokenNoContent) IsSuccess() bool
IsSuccess returns true when this delete token no content response has a 2xx status code
func (*DeleteTokenNoContent) String ¶
func (o *DeleteTokenNoContent) String() string
type DeleteTokenNotFound ¶
DeleteTokenNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteTokenNotFound ¶
func NewDeleteTokenNotFound() *DeleteTokenNotFound
NewDeleteTokenNotFound creates a DeleteTokenNotFound with default headers values
func (*DeleteTokenNotFound) Error ¶
func (o *DeleteTokenNotFound) Error() string
func (*DeleteTokenNotFound) GetPayload ¶
func (o *DeleteTokenNotFound) GetPayload() *models.Errored
func (*DeleteTokenNotFound) IsClientError ¶
func (o *DeleteTokenNotFound) IsClientError() bool
IsClientError returns true when this delete token not found response has a 4xx status code
func (*DeleteTokenNotFound) IsCode ¶
func (o *DeleteTokenNotFound) IsCode(code int) bool
IsCode returns true when this delete token not found response a status code equal to that given
func (*DeleteTokenNotFound) IsRedirect ¶
func (o *DeleteTokenNotFound) IsRedirect() bool
IsRedirect returns true when this delete token not found response has a 3xx status code
func (*DeleteTokenNotFound) IsServerError ¶
func (o *DeleteTokenNotFound) IsServerError() bool
IsServerError returns true when this delete token not found response has a 5xx status code
func (*DeleteTokenNotFound) IsSuccess ¶
func (o *DeleteTokenNotFound) IsSuccess() bool
IsSuccess returns true when this delete token not found response has a 2xx status code
func (*DeleteTokenNotFound) String ¶
func (o *DeleteTokenNotFound) String() string
type DeleteTokenParams ¶
type DeleteTokenParams struct { /* ID. Runner token ID. Format: uuid */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteTokenParams contains all the parameters to send to the API endpoint
for the delete token operation. Typically these are written to a http.Request.
func NewDeleteTokenParams ¶
func NewDeleteTokenParams() *DeleteTokenParams
NewDeleteTokenParams creates a new DeleteTokenParams 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 NewDeleteTokenParamsWithContext ¶
func NewDeleteTokenParamsWithContext(ctx context.Context) *DeleteTokenParams
NewDeleteTokenParamsWithContext creates a new DeleteTokenParams object with the ability to set a context for a request.
func NewDeleteTokenParamsWithHTTPClient ¶
func NewDeleteTokenParamsWithHTTPClient(client *http.Client) *DeleteTokenParams
NewDeleteTokenParamsWithHTTPClient creates a new DeleteTokenParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteTokenParamsWithTimeout ¶
func NewDeleteTokenParamsWithTimeout(timeout time.Duration) *DeleteTokenParams
NewDeleteTokenParamsWithTimeout creates a new DeleteTokenParams object with the ability to set a timeout on a request.
func (*DeleteTokenParams) SetContext ¶
func (o *DeleteTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the delete token params
func (*DeleteTokenParams) SetDefaults ¶
func (o *DeleteTokenParams) SetDefaults()
SetDefaults hydrates default values in the delete token params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTokenParams) SetHTTPClient ¶
func (o *DeleteTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete token params
func (*DeleteTokenParams) SetID ¶
func (o *DeleteTokenParams) SetID(id strfmt.UUID)
SetID adds the id to the delete token params
func (*DeleteTokenParams) SetTimeout ¶
func (o *DeleteTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete token params
func (*DeleteTokenParams) WithContext ¶
func (o *DeleteTokenParams) WithContext(ctx context.Context) *DeleteTokenParams
WithContext adds the context to the delete token params
func (*DeleteTokenParams) WithDefaults ¶
func (o *DeleteTokenParams) WithDefaults() *DeleteTokenParams
WithDefaults hydrates default values in the delete token params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTokenParams) WithHTTPClient ¶
func (o *DeleteTokenParams) WithHTTPClient(client *http.Client) *DeleteTokenParams
WithHTTPClient adds the HTTPClient to the delete token params
func (*DeleteTokenParams) WithID ¶
func (o *DeleteTokenParams) WithID(id strfmt.UUID) *DeleteTokenParams
WithID adds the id to the delete token params
func (*DeleteTokenParams) WithTimeout ¶
func (o *DeleteTokenParams) WithTimeout(timeout time.Duration) *DeleteTokenParams
WithTimeout adds the timeout to the delete token params
func (*DeleteTokenParams) WriteToRequest ¶
func (o *DeleteTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTokenReader ¶
type DeleteTokenReader struct {
// contains filtered or unexported fields
}
DeleteTokenReader is a Reader for the DeleteToken structure.
func (*DeleteTokenReader) ReadResponse ¶
func (o *DeleteTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTokensBadRequest ¶
ListTokensBadRequest describes a response with status code 400, with default header values.
Invalid input
func NewListTokensBadRequest ¶
func NewListTokensBadRequest() *ListTokensBadRequest
NewListTokensBadRequest creates a ListTokensBadRequest with default headers values
func (*ListTokensBadRequest) Error ¶
func (o *ListTokensBadRequest) Error() string
func (*ListTokensBadRequest) GetPayload ¶
func (o *ListTokensBadRequest) GetPayload() *models.Errored
func (*ListTokensBadRequest) IsClientError ¶
func (o *ListTokensBadRequest) IsClientError() bool
IsClientError returns true when this list tokens bad request response has a 4xx status code
func (*ListTokensBadRequest) IsCode ¶
func (o *ListTokensBadRequest) IsCode(code int) bool
IsCode returns true when this list tokens bad request response a status code equal to that given
func (*ListTokensBadRequest) IsRedirect ¶
func (o *ListTokensBadRequest) IsRedirect() bool
IsRedirect returns true when this list tokens bad request response has a 3xx status code
func (*ListTokensBadRequest) IsServerError ¶
func (o *ListTokensBadRequest) IsServerError() bool
IsServerError returns true when this list tokens bad request response has a 5xx status code
func (*ListTokensBadRequest) IsSuccess ¶
func (o *ListTokensBadRequest) IsSuccess() bool
IsSuccess returns true when this list tokens bad request response has a 2xx status code
func (*ListTokensBadRequest) String ¶
func (o *ListTokensBadRequest) String() string
type ListTokensNotFound ¶
ListTokensNotFound describes a response with status code 404, with default header values.
Not Found
func NewListTokensNotFound ¶
func NewListTokensNotFound() *ListTokensNotFound
NewListTokensNotFound creates a ListTokensNotFound with default headers values
func (*ListTokensNotFound) Error ¶
func (o *ListTokensNotFound) Error() string
func (*ListTokensNotFound) GetPayload ¶
func (o *ListTokensNotFound) GetPayload() *models.Errored
func (*ListTokensNotFound) IsClientError ¶
func (o *ListTokensNotFound) IsClientError() bool
IsClientError returns true when this list tokens not found response has a 4xx status code
func (*ListTokensNotFound) IsCode ¶
func (o *ListTokensNotFound) IsCode(code int) bool
IsCode returns true when this list tokens not found response a status code equal to that given
func (*ListTokensNotFound) IsRedirect ¶
func (o *ListTokensNotFound) IsRedirect() bool
IsRedirect returns true when this list tokens not found response has a 3xx status code
func (*ListTokensNotFound) IsServerError ¶
func (o *ListTokensNotFound) IsServerError() bool
IsServerError returns true when this list tokens not found response has a 5xx status code
func (*ListTokensNotFound) IsSuccess ¶
func (o *ListTokensNotFound) IsSuccess() bool
IsSuccess returns true when this list tokens not found response has a 2xx status code
func (*ListTokensNotFound) String ¶
func (o *ListTokensNotFound) String() string
type ListTokensOK ¶
type ListTokensOK struct {
Payload *models.TokensInfo
}
ListTokensOK describes a response with status code 200, with default header values.
A sequence of Runner tokens
func NewListTokensOK ¶
func NewListTokensOK() *ListTokensOK
NewListTokensOK creates a ListTokensOK with default headers values
func (*ListTokensOK) Error ¶
func (o *ListTokensOK) Error() string
func (*ListTokensOK) GetPayload ¶
func (o *ListTokensOK) GetPayload() *models.TokensInfo
func (*ListTokensOK) IsClientError ¶
func (o *ListTokensOK) IsClientError() bool
IsClientError returns true when this list tokens o k response has a 4xx status code
func (*ListTokensOK) IsCode ¶
func (o *ListTokensOK) IsCode(code int) bool
IsCode returns true when this list tokens o k response a status code equal to that given
func (*ListTokensOK) IsRedirect ¶
func (o *ListTokensOK) IsRedirect() bool
IsRedirect returns true when this list tokens o k response has a 3xx status code
func (*ListTokensOK) IsServerError ¶
func (o *ListTokensOK) IsServerError() bool
IsServerError returns true when this list tokens o k response has a 5xx status code
func (*ListTokensOK) IsSuccess ¶
func (o *ListTokensOK) IsSuccess() bool
IsSuccess returns true when this list tokens o k response has a 2xx status code
func (*ListTokensOK) String ¶
func (o *ListTokensOK) String() string
type ListTokensParams ¶
type ListTokensParams struct { /* ResourceClass. Runner resource-class name (namespace/name) */ ResourceClass string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTokensParams contains all the parameters to send to the API endpoint
for the list tokens operation. Typically these are written to a http.Request.
func NewListTokensParams ¶
func NewListTokensParams() *ListTokensParams
NewListTokensParams creates a new ListTokensParams 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 NewListTokensParamsWithContext ¶
func NewListTokensParamsWithContext(ctx context.Context) *ListTokensParams
NewListTokensParamsWithContext creates a new ListTokensParams object with the ability to set a context for a request.
func NewListTokensParamsWithHTTPClient ¶
func NewListTokensParamsWithHTTPClient(client *http.Client) *ListTokensParams
NewListTokensParamsWithHTTPClient creates a new ListTokensParams object with the ability to set a custom HTTPClient for a request.
func NewListTokensParamsWithTimeout ¶
func NewListTokensParamsWithTimeout(timeout time.Duration) *ListTokensParams
NewListTokensParamsWithTimeout creates a new ListTokensParams object with the ability to set a timeout on a request.
func (*ListTokensParams) SetContext ¶
func (o *ListTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the list tokens params
func (*ListTokensParams) SetDefaults ¶
func (o *ListTokensParams) SetDefaults()
SetDefaults hydrates default values in the list tokens params (not the query body).
All values with no default are reset to their zero value.
func (*ListTokensParams) SetHTTPClient ¶
func (o *ListTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list tokens params
func (*ListTokensParams) SetResourceClass ¶
func (o *ListTokensParams) SetResourceClass(resourceClass string)
SetResourceClass adds the resourceClass to the list tokens params
func (*ListTokensParams) SetTimeout ¶
func (o *ListTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list tokens params
func (*ListTokensParams) WithContext ¶
func (o *ListTokensParams) WithContext(ctx context.Context) *ListTokensParams
WithContext adds the context to the list tokens params
func (*ListTokensParams) WithDefaults ¶
func (o *ListTokensParams) WithDefaults() *ListTokensParams
WithDefaults hydrates default values in the list tokens params (not the query body).
All values with no default are reset to their zero value.
func (*ListTokensParams) WithHTTPClient ¶
func (o *ListTokensParams) WithHTTPClient(client *http.Client) *ListTokensParams
WithHTTPClient adds the HTTPClient to the list tokens params
func (*ListTokensParams) WithResourceClass ¶
func (o *ListTokensParams) WithResourceClass(resourceClass string) *ListTokensParams
WithResourceClass adds the resourceClass to the list tokens params
func (*ListTokensParams) WithTimeout ¶
func (o *ListTokensParams) WithTimeout(timeout time.Duration) *ListTokensParams
WithTimeout adds the timeout to the list tokens params
func (*ListTokensParams) WriteToRequest ¶
func (o *ListTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTokensReader ¶
type ListTokensReader struct {
// contains filtered or unexported fields
}
ListTokensReader is a Reader for the ListTokens structure.
func (*ListTokensReader) ReadResponse ¶
func (o *ListTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.