tokens

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MPL-2.0 Imports: 10 Imported by: 1

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

func (a *Client) DeleteV1TokensTokenID(params *DeleteV1TokensTokenIDParams) (*DeleteV1TokensTokenIDOK, error)

DeleteV1TokensTokenID deletes token

func (*Client) GetV1Tokens

func (a *Client) GetV1Tokens(params *GetV1TokensParams) (*GetV1TokensOK, error)

GetV1Tokens lists all authentication tokens

func (*Client) PostV1Tokens

func (a *Client) PostV1Tokens(params *PostV1TokensParams) (*PostV1TokensCreated, error)

PostV1Tokens creates a new authentication token

func (*Client) PutV1TokensTokenID

func (a *Client) PutV1TokensTokenID(params *PutV1TokensTokenIDParams) (*PutV1TokensTokenIDOK, error)

PutV1TokensTokenID updates token details

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.3.0

type ClientService interface {
	DeleteV1TokensTokenID(params *DeleteV1TokensTokenIDParams) (*DeleteV1TokensTokenIDOK, error)

	GetV1Tokens(params *GetV1TokensParams) (*GetV1TokensOK, error)

	PostV1Tokens(params *PostV1TokensParams) (*PostV1TokensCreated, error)

	PutV1TokensTokenID(params *PutV1TokensTokenIDParams) (*PutV1TokensTokenIDOK, 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 DeleteV1TokensTokenIDNotFound

type DeleteV1TokensTokenIDNotFound struct {
}

DeleteV1TokensTokenIDNotFound handles this case with default header values.

Token not found

func NewDeleteV1TokensTokenIDNotFound

func NewDeleteV1TokensTokenIDNotFound() *DeleteV1TokensTokenIDNotFound

NewDeleteV1TokensTokenIDNotFound creates a DeleteV1TokensTokenIDNotFound with default headers values

func (*DeleteV1TokensTokenIDNotFound) Error

type DeleteV1TokensTokenIDOK

type DeleteV1TokensTokenIDOK struct {
}

DeleteV1TokensTokenIDOK handles this case with default header values.

Successful Response

func NewDeleteV1TokensTokenIDOK

func NewDeleteV1TokensTokenIDOK() *DeleteV1TokensTokenIDOK

NewDeleteV1TokensTokenIDOK creates a DeleteV1TokensTokenIDOK with default headers values

func (*DeleteV1TokensTokenIDOK) Error

func (o *DeleteV1TokensTokenIDOK) Error() string

type DeleteV1TokensTokenIDParams

type DeleteV1TokensTokenIDParams struct {

	/*TokenID
	  ID of token

	*/
	TokenID string

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

DeleteV1TokensTokenIDParams contains all the parameters to send to the API endpoint for the delete v1 tokens token ID operation typically these are written to a http.Request

func NewDeleteV1TokensTokenIDParams

func NewDeleteV1TokensTokenIDParams() *DeleteV1TokensTokenIDParams

NewDeleteV1TokensTokenIDParams creates a new DeleteV1TokensTokenIDParams object with the default values initialized.

func NewDeleteV1TokensTokenIDParamsWithContext

func NewDeleteV1TokensTokenIDParamsWithContext(ctx context.Context) *DeleteV1TokensTokenIDParams

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

func NewDeleteV1TokensTokenIDParamsWithHTTPClient

func NewDeleteV1TokensTokenIDParamsWithHTTPClient(client *http.Client) *DeleteV1TokensTokenIDParams

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

func NewDeleteV1TokensTokenIDParamsWithTimeout

func NewDeleteV1TokensTokenIDParamsWithTimeout(timeout time.Duration) *DeleteV1TokensTokenIDParams

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

func (*DeleteV1TokensTokenIDParams) SetContext

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

SetContext adds the context to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) SetTokenID

func (o *DeleteV1TokensTokenIDParams) SetTokenID(tokenID string)

SetTokenID adds the tokenId to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) WithContext

WithContext adds the context to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) WithTimeout

WithTimeout adds the timeout to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) WithTokenID

WithTokenID adds the tokenID to the delete v1 tokens token ID params

func (*DeleteV1TokensTokenIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteV1TokensTokenIDReader

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

DeleteV1TokensTokenIDReader is a Reader for the DeleteV1TokensTokenID structure.

func (*DeleteV1TokensTokenIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1TokensOK

type GetV1TokensOK struct {
	Payload []*models.Token
}

GetV1TokensOK handles this case with default header values.

Successful Response

func NewGetV1TokensOK

func NewGetV1TokensOK() *GetV1TokensOK

NewGetV1TokensOK creates a GetV1TokensOK with default headers values

func (*GetV1TokensOK) Error

func (o *GetV1TokensOK) Error() string

func (*GetV1TokensOK) GetPayload

func (o *GetV1TokensOK) GetPayload() []*models.Token

type GetV1TokensParams

type GetV1TokensParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV1TokensParams contains all the parameters to send to the API endpoint for the get v1 tokens operation typically these are written to a http.Request

func NewGetV1TokensParams

func NewGetV1TokensParams() *GetV1TokensParams

NewGetV1TokensParams creates a new GetV1TokensParams object with the default values initialized.

func NewGetV1TokensParamsWithContext

func NewGetV1TokensParamsWithContext(ctx context.Context) *GetV1TokensParams

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

func NewGetV1TokensParamsWithHTTPClient

func NewGetV1TokensParamsWithHTTPClient(client *http.Client) *GetV1TokensParams

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

func NewGetV1TokensParamsWithTimeout

func NewGetV1TokensParamsWithTimeout(timeout time.Duration) *GetV1TokensParams

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

func (*GetV1TokensParams) SetContext

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

SetContext adds the context to the get v1 tokens params

func (*GetV1TokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 tokens params

func (*GetV1TokensParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 tokens params

func (*GetV1TokensParams) WithContext

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

WithContext adds the context to the get v1 tokens params

func (*GetV1TokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 tokens params

func (*GetV1TokensParams) WithTimeout

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

WithTimeout adds the timeout to the get v1 tokens params

func (*GetV1TokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetV1TokensReader

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

GetV1TokensReader is a Reader for the GetV1Tokens structure.

func (*GetV1TokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostV1TokensBadRequest

type PostV1TokensBadRequest struct {
}

PostV1TokensBadRequest handles this case with default header values.

PostV1TokensBadRequest post v1 tokens bad request

func NewPostV1TokensBadRequest

func NewPostV1TokensBadRequest() *PostV1TokensBadRequest

NewPostV1TokensBadRequest creates a PostV1TokensBadRequest with default headers values

func (*PostV1TokensBadRequest) Error

func (o *PostV1TokensBadRequest) Error() string

type PostV1TokensCreated

type PostV1TokensCreated struct {
	Payload *models.TokenCreateResponse
}

PostV1TokensCreated handles this case with default header values.

Create a new token

func NewPostV1TokensCreated

func NewPostV1TokensCreated() *PostV1TokensCreated

NewPostV1TokensCreated creates a PostV1TokensCreated with default headers values

func (*PostV1TokensCreated) Error

func (o *PostV1TokensCreated) Error() string

func (*PostV1TokensCreated) GetPayload

type PostV1TokensParams

type PostV1TokensParams struct {

	/*Body*/
	Body *models.Token

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

PostV1TokensParams contains all the parameters to send to the API endpoint for the post v1 tokens operation typically these are written to a http.Request

func NewPostV1TokensParams

func NewPostV1TokensParams() *PostV1TokensParams

NewPostV1TokensParams creates a new PostV1TokensParams object with the default values initialized.

func NewPostV1TokensParamsWithContext

func NewPostV1TokensParamsWithContext(ctx context.Context) *PostV1TokensParams

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

func NewPostV1TokensParamsWithHTTPClient

func NewPostV1TokensParamsWithHTTPClient(client *http.Client) *PostV1TokensParams

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

func NewPostV1TokensParamsWithTimeout

func NewPostV1TokensParamsWithTimeout(timeout time.Duration) *PostV1TokensParams

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

func (*PostV1TokensParams) SetBody

func (o *PostV1TokensParams) SetBody(body *models.Token)

SetBody adds the body to the post v1 tokens params

func (*PostV1TokensParams) SetContext

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

SetContext adds the context to the post v1 tokens params

func (*PostV1TokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 tokens params

func (*PostV1TokensParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 tokens params

func (*PostV1TokensParams) WithBody

func (o *PostV1TokensParams) WithBody(body *models.Token) *PostV1TokensParams

WithBody adds the body to the post v1 tokens params

func (*PostV1TokensParams) WithContext

WithContext adds the context to the post v1 tokens params

func (*PostV1TokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post v1 tokens params

func (*PostV1TokensParams) WithTimeout

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

WithTimeout adds the timeout to the post v1 tokens params

func (*PostV1TokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostV1TokensReader

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

PostV1TokensReader is a Reader for the PostV1Tokens structure.

func (*PostV1TokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutV1TokensTokenIDBadRequest

type PutV1TokensTokenIDBadRequest struct {
}

PutV1TokensTokenIDBadRequest handles this case with default header values.

Bad request (check response message)

func NewPutV1TokensTokenIDBadRequest

func NewPutV1TokensTokenIDBadRequest() *PutV1TokensTokenIDBadRequest

NewPutV1TokensTokenIDBadRequest creates a PutV1TokensTokenIDBadRequest with default headers values

func (*PutV1TokensTokenIDBadRequest) Error

type PutV1TokensTokenIDNotFound

type PutV1TokensTokenIDNotFound struct {
}

PutV1TokensTokenIDNotFound handles this case with default header values.

Tunnel not found

func NewPutV1TokensTokenIDNotFound

func NewPutV1TokensTokenIDNotFound() *PutV1TokensTokenIDNotFound

NewPutV1TokensTokenIDNotFound creates a PutV1TokensTokenIDNotFound with default headers values

func (*PutV1TokensTokenIDNotFound) Error

type PutV1TokensTokenIDOK

type PutV1TokensTokenIDOK struct {
	Payload *models.Token
}

PutV1TokensTokenIDOK handles this case with default header values.

Successful Response

func NewPutV1TokensTokenIDOK

func NewPutV1TokensTokenIDOK() *PutV1TokensTokenIDOK

NewPutV1TokensTokenIDOK creates a PutV1TokensTokenIDOK with default headers values

func (*PutV1TokensTokenIDOK) Error

func (o *PutV1TokensTokenIDOK) Error() string

func (*PutV1TokensTokenIDOK) GetPayload

func (o *PutV1TokensTokenIDOK) GetPayload() *models.Token

type PutV1TokensTokenIDParams

type PutV1TokensTokenIDParams struct {

	/*Body*/
	Body *models.Token
	/*TokenID
	  ID of token

	*/
	TokenID string

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

PutV1TokensTokenIDParams contains all the parameters to send to the API endpoint for the put v1 tokens token ID operation typically these are written to a http.Request

func NewPutV1TokensTokenIDParams

func NewPutV1TokensTokenIDParams() *PutV1TokensTokenIDParams

NewPutV1TokensTokenIDParams creates a new PutV1TokensTokenIDParams object with the default values initialized.

func NewPutV1TokensTokenIDParamsWithContext

func NewPutV1TokensTokenIDParamsWithContext(ctx context.Context) *PutV1TokensTokenIDParams

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

func NewPutV1TokensTokenIDParamsWithHTTPClient

func NewPutV1TokensTokenIDParamsWithHTTPClient(client *http.Client) *PutV1TokensTokenIDParams

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

func NewPutV1TokensTokenIDParamsWithTimeout

func NewPutV1TokensTokenIDParamsWithTimeout(timeout time.Duration) *PutV1TokensTokenIDParams

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

func (*PutV1TokensTokenIDParams) SetBody

func (o *PutV1TokensTokenIDParams) SetBody(body *models.Token)

SetBody adds the body to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) SetContext

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

SetContext adds the context to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) SetTimeout

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

SetTimeout adds the timeout to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) SetTokenID

func (o *PutV1TokensTokenIDParams) SetTokenID(tokenID string)

SetTokenID adds the tokenId to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WithBody

WithBody adds the body to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WithContext

WithContext adds the context to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WithTimeout

WithTimeout adds the timeout to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WithTokenID

func (o *PutV1TokensTokenIDParams) WithTokenID(tokenID string) *PutV1TokensTokenIDParams

WithTokenID adds the tokenID to the put v1 tokens token ID params

func (*PutV1TokensTokenIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutV1TokensTokenIDReader

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

PutV1TokensTokenIDReader is a Reader for the PutV1TokensTokenID structure.

func (*PutV1TokensTokenIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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