keys

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 11 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 keys API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new keys API client.

func (*Client) GetKeypair

func (a *Client) GetKeypair(params *GetKeypairParams, authInfo runtime.ClientAuthInfoWriter) (*GetKeypairOK, error)

GetKeypair gets authenticated user s keypair

Get authenticated user's keypair

func (*Client) GetPublicKey

func (a *Client) GetPublicKey(params *GetPublicKeyParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicKeyOK, error)

GetPublicKey gets a specific user s public key

Get a specific user's public-key

func (*Client) SaveKeypair

func (a *Client) SaveKeypair(params *SaveKeypairParams, authInfo runtime.ClientAuthInfoWriter) (*SaveKeypairNoContent, error)

SaveKeypair creates or update a current user s keypair

Create or update current user's keypair

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetKeypairInternalServerError

type GetKeypairInternalServerError struct {
	Payload *secrets_models.Message
}

GetKeypairInternalServerError handles this case with default header values.

Server Error

func NewGetKeypairInternalServerError

func NewGetKeypairInternalServerError() *GetKeypairInternalServerError

NewGetKeypairInternalServerError creates a GetKeypairInternalServerError with default headers values

func (*GetKeypairInternalServerError) Error

type GetKeypairNotFound

type GetKeypairNotFound struct {
	Payload *secrets_models.Message
}

GetKeypairNotFound handles this case with default header values.

Not Found

func NewGetKeypairNotFound

func NewGetKeypairNotFound() *GetKeypairNotFound

NewGetKeypairNotFound creates a GetKeypairNotFound with default headers values

func (*GetKeypairNotFound) Error

func (o *GetKeypairNotFound) Error() string

type GetKeypairOK

type GetKeypairOK struct {
	Payload *secrets_models.Keypair
}

GetKeypairOK handles this case with default header values.

Success

func NewGetKeypairOK

func NewGetKeypairOK() *GetKeypairOK

NewGetKeypairOK creates a GetKeypairOK with default headers values

func (*GetKeypairOK) Error

func (o *GetKeypairOK) Error() string

type GetKeypairParams

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

GetKeypairParams contains all the parameters to send to the API endpoint for the get keypair operation typically these are written to a http.Request

func NewGetKeypairParams

func NewGetKeypairParams() *GetKeypairParams

NewGetKeypairParams creates a new GetKeypairParams object with the default values initialized.

func NewGetKeypairParamsWithContext

func NewGetKeypairParamsWithContext(ctx context.Context) *GetKeypairParams

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

func NewGetKeypairParamsWithHTTPClient

func NewGetKeypairParamsWithHTTPClient(client *http.Client) *GetKeypairParams

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

func NewGetKeypairParamsWithTimeout

func NewGetKeypairParamsWithTimeout(timeout time.Duration) *GetKeypairParams

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

func (*GetKeypairParams) SetContext

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

SetContext adds the context to the get keypair params

func (*GetKeypairParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get keypair params

func (*GetKeypairParams) SetTimeout

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

SetTimeout adds the timeout to the get keypair params

func (*GetKeypairParams) WithContext

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

WithContext adds the context to the get keypair params

func (*GetKeypairParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get keypair params

func (*GetKeypairParams) WithTimeout

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

WithTimeout adds the timeout to the get keypair params

func (*GetKeypairParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetKeypairReader

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

GetKeypairReader is a Reader for the GetKeypair structure.

func (*GetKeypairReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetKeypairUnauthorized

type GetKeypairUnauthorized struct {
	Payload *secrets_models.Message
}

GetKeypairUnauthorized handles this case with default header values.

Invalid credentials

func NewGetKeypairUnauthorized

func NewGetKeypairUnauthorized() *GetKeypairUnauthorized

NewGetKeypairUnauthorized creates a GetKeypairUnauthorized with default headers values

func (*GetKeypairUnauthorized) Error

func (o *GetKeypairUnauthorized) Error() string

type GetPublicKeyInternalServerError

type GetPublicKeyInternalServerError struct {
	Payload *secrets_models.Message
}

GetPublicKeyInternalServerError handles this case with default header values.

Server Error

func NewGetPublicKeyInternalServerError

func NewGetPublicKeyInternalServerError() *GetPublicKeyInternalServerError

NewGetPublicKeyInternalServerError creates a GetPublicKeyInternalServerError with default headers values

func (*GetPublicKeyInternalServerError) Error

type GetPublicKeyNotFound

type GetPublicKeyNotFound struct {
	Payload *secrets_models.Message
}

GetPublicKeyNotFound handles this case with default header values.

Not Found

func NewGetPublicKeyNotFound

func NewGetPublicKeyNotFound() *GetPublicKeyNotFound

NewGetPublicKeyNotFound creates a GetPublicKeyNotFound with default headers values

func (*GetPublicKeyNotFound) Error

func (o *GetPublicKeyNotFound) Error() string

type GetPublicKeyOK

type GetPublicKeyOK struct {
	Payload *secrets_models.PublicKey
}

GetPublicKeyOK handles this case with default header values.

Success

func NewGetPublicKeyOK

func NewGetPublicKeyOK() *GetPublicKeyOK

NewGetPublicKeyOK creates a GetPublicKeyOK with default headers values

func (*GetPublicKeyOK) Error

func (o *GetPublicKeyOK) Error() string

type GetPublicKeyParams

type GetPublicKeyParams struct {

	/*UserID
	  ID of User to retrieve public key for

	*/
	UserID strfmt.UUID

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

GetPublicKeyParams contains all the parameters to send to the API endpoint for the get public key operation typically these are written to a http.Request

func NewGetPublicKeyParams

func NewGetPublicKeyParams() *GetPublicKeyParams

NewGetPublicKeyParams creates a new GetPublicKeyParams object with the default values initialized.

func NewGetPublicKeyParamsWithContext

func NewGetPublicKeyParamsWithContext(ctx context.Context) *GetPublicKeyParams

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

func NewGetPublicKeyParamsWithHTTPClient

func NewGetPublicKeyParamsWithHTTPClient(client *http.Client) *GetPublicKeyParams

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

func NewGetPublicKeyParamsWithTimeout

func NewGetPublicKeyParamsWithTimeout(timeout time.Duration) *GetPublicKeyParams

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

func (*GetPublicKeyParams) SetContext

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

SetContext adds the context to the get public key params

func (*GetPublicKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public key params

func (*GetPublicKeyParams) SetTimeout

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

SetTimeout adds the timeout to the get public key params

func (*GetPublicKeyParams) SetUserID

func (o *GetPublicKeyParams) SetUserID(userID strfmt.UUID)

SetUserID adds the userId to the get public key params

func (*GetPublicKeyParams) WithContext

WithContext adds the context to the get public key params

func (*GetPublicKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public key params

func (*GetPublicKeyParams) WithTimeout

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

WithTimeout adds the timeout to the get public key params

func (*GetPublicKeyParams) WithUserID

func (o *GetPublicKeyParams) WithUserID(userID strfmt.UUID) *GetPublicKeyParams

WithUserID adds the userID to the get public key params

func (*GetPublicKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPublicKeyReader

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

GetPublicKeyReader is a Reader for the GetPublicKey structure.

func (*GetPublicKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicKeyUnauthorized

type GetPublicKeyUnauthorized struct {
	Payload *secrets_models.Message
}

GetPublicKeyUnauthorized handles this case with default header values.

Invalid credentials

func NewGetPublicKeyUnauthorized

func NewGetPublicKeyUnauthorized() *GetPublicKeyUnauthorized

NewGetPublicKeyUnauthorized creates a GetPublicKeyUnauthorized with default headers values

func (*GetPublicKeyUnauthorized) Error

func (o *GetPublicKeyUnauthorized) Error() string

type SaveKeypairBadRequest

type SaveKeypairBadRequest struct {
	Payload *secrets_models.Message
}

SaveKeypairBadRequest handles this case with default header values.

Bad Request

func NewSaveKeypairBadRequest

func NewSaveKeypairBadRequest() *SaveKeypairBadRequest

NewSaveKeypairBadRequest creates a SaveKeypairBadRequest with default headers values

func (*SaveKeypairBadRequest) Error

func (o *SaveKeypairBadRequest) Error() string

type SaveKeypairInternalServerError

type SaveKeypairInternalServerError struct {
	Payload *secrets_models.Message
}

SaveKeypairInternalServerError handles this case with default header values.

Server Error

func NewSaveKeypairInternalServerError

func NewSaveKeypairInternalServerError() *SaveKeypairInternalServerError

NewSaveKeypairInternalServerError creates a SaveKeypairInternalServerError with default headers values

func (*SaveKeypairInternalServerError) Error

type SaveKeypairNoContent

type SaveKeypairNoContent struct {
}

SaveKeypairNoContent handles this case with default header values.

Success

func NewSaveKeypairNoContent

func NewSaveKeypairNoContent() *SaveKeypairNoContent

NewSaveKeypairNoContent creates a SaveKeypairNoContent with default headers values

func (*SaveKeypairNoContent) Error

func (o *SaveKeypairNoContent) Error() string

type SaveKeypairParams

type SaveKeypairParams struct {

	/*Keypair
	  Keypair to create or update

	*/
	Keypair *secrets_models.KeypairChange

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

SaveKeypairParams contains all the parameters to send to the API endpoint for the save keypair operation typically these are written to a http.Request

func NewSaveKeypairParams

func NewSaveKeypairParams() *SaveKeypairParams

NewSaveKeypairParams creates a new SaveKeypairParams object with the default values initialized.

func NewSaveKeypairParamsWithContext

func NewSaveKeypairParamsWithContext(ctx context.Context) *SaveKeypairParams

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

func NewSaveKeypairParamsWithHTTPClient

func NewSaveKeypairParamsWithHTTPClient(client *http.Client) *SaveKeypairParams

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

func NewSaveKeypairParamsWithTimeout

func NewSaveKeypairParamsWithTimeout(timeout time.Duration) *SaveKeypairParams

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

func (*SaveKeypairParams) SetContext

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

SetContext adds the context to the save keypair params

func (*SaveKeypairParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the save keypair params

func (*SaveKeypairParams) SetKeypair

func (o *SaveKeypairParams) SetKeypair(keypair *secrets_models.KeypairChange)

SetKeypair adds the keypair to the save keypair params

func (*SaveKeypairParams) SetTimeout

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

SetTimeout adds the timeout to the save keypair params

func (*SaveKeypairParams) WithContext

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

WithContext adds the context to the save keypair params

func (*SaveKeypairParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the save keypair params

func (*SaveKeypairParams) WithKeypair

WithKeypair adds the keypair to the save keypair params

func (*SaveKeypairParams) WithTimeout

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

WithTimeout adds the timeout to the save keypair params

func (*SaveKeypairParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SaveKeypairReader

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

SaveKeypairReader is a Reader for the SaveKeypair structure.

func (*SaveKeypairReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SaveKeypairUnauthorized

type SaveKeypairUnauthorized struct {
	Payload *secrets_models.Message
}

SaveKeypairUnauthorized handles this case with default header values.

Invalid credentials

func NewSaveKeypairUnauthorized

func NewSaveKeypairUnauthorized() *SaveKeypairUnauthorized

NewSaveKeypairUnauthorized creates a SaveKeypairUnauthorized with default headers values

func (*SaveKeypairUnauthorized) Error

func (o *SaveKeypairUnauthorized) Error() string

Jump to

Keyboard shortcuts

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