key_service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 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 key service API

func New

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

New creates a new key service API client.

func (*Client) GetAllEncryptedKeys

func (a *Client) GetAllEncryptedKeys(params *GetAllEncryptedKeysParams, authInfo runtime.ClientAuthInfoWriter) (*GetAllEncryptedKeysOK, error)

GetAllEncryptedKeys gets all encrypted symmetric keys that are encrypted with this encrypting key Id optionally limiting the request to a set of symmetric key domains

func (*Client) GetPublicKey

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

GetPublicKey gets the public key associated with the passed in key ID

func (*Client) PostNewEncryptedKeys

func (a *Client) PostNewEncryptedKeys(params *PostNewEncryptedKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PostNewEncryptedKeysOK, error)

PostNewEncryptedKeys adds a new encrypted key the encrypting key that protects the encrypted key is identified with encrypting key Id request must come from a registered key manager

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetAllEncryptedKeysBadRequest

type GetAllEncryptedKeysBadRequest struct {
}

GetAllEncryptedKeysBadRequest handles this case with default header values.

Unable to process request

func NewGetAllEncryptedKeysBadRequest

func NewGetAllEncryptedKeysBadRequest() *GetAllEncryptedKeysBadRequest

NewGetAllEncryptedKeysBadRequest creates a GetAllEncryptedKeysBadRequest with default headers values

func (*GetAllEncryptedKeysBadRequest) Error

type GetAllEncryptedKeysOK

type GetAllEncryptedKeysOK struct {
	Payload []*models.EncryptedSymmetricKey
}

GetAllEncryptedKeysOK handles this case with default header values.

Returns an array of encrypted keys

func NewGetAllEncryptedKeysOK

func NewGetAllEncryptedKeysOK() *GetAllEncryptedKeysOK

NewGetAllEncryptedKeysOK creates a GetAllEncryptedKeysOK with default headers values

func (*GetAllEncryptedKeysOK) Error

func (o *GetAllEncryptedKeysOK) Error() string

type GetAllEncryptedKeysParams

type GetAllEncryptedKeysParams struct {

	/*EncryptingKeyID*/
	EncryptingKeyID string
	/*SymmetricKeyIds*/
	SymmetricKeyIds []string

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

GetAllEncryptedKeysParams contains all the parameters to send to the API endpoint for the get all encrypted keys operation typically these are written to a http.Request

func NewGetAllEncryptedKeysParams

func NewGetAllEncryptedKeysParams() *GetAllEncryptedKeysParams

NewGetAllEncryptedKeysParams creates a new GetAllEncryptedKeysParams object with the default values initialized.

func NewGetAllEncryptedKeysParamsWithContext

func NewGetAllEncryptedKeysParamsWithContext(ctx context.Context) *GetAllEncryptedKeysParams

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

func NewGetAllEncryptedKeysParamsWithHTTPClient

func NewGetAllEncryptedKeysParamsWithHTTPClient(client *http.Client) *GetAllEncryptedKeysParams

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

func NewGetAllEncryptedKeysParamsWithTimeout

func NewGetAllEncryptedKeysParamsWithTimeout(timeout time.Duration) *GetAllEncryptedKeysParams

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

func (*GetAllEncryptedKeysParams) SetContext

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

SetContext adds the context to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) SetEncryptingKeyID

func (o *GetAllEncryptedKeysParams) SetEncryptingKeyID(encryptingKeyID string)

SetEncryptingKeyID adds the encryptingKeyId to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) SetSymmetricKeyIds

func (o *GetAllEncryptedKeysParams) SetSymmetricKeyIds(symmetricKeyIds []string)

SetSymmetricKeyIds adds the symmetricKeyIds to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) SetTimeout

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

SetTimeout adds the timeout to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WithContext

WithContext adds the context to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WithEncryptingKeyID

func (o *GetAllEncryptedKeysParams) WithEncryptingKeyID(encryptingKeyID string) *GetAllEncryptedKeysParams

WithEncryptingKeyID adds the encryptingKeyID to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WithSymmetricKeyIds

func (o *GetAllEncryptedKeysParams) WithSymmetricKeyIds(symmetricKeyIds []string) *GetAllEncryptedKeysParams

WithSymmetricKeyIds adds the symmetricKeyIds to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WithTimeout

WithTimeout adds the timeout to the get all encrypted keys params

func (*GetAllEncryptedKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAllEncryptedKeysReader

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

GetAllEncryptedKeysReader is a Reader for the GetAllEncryptedKeys structure.

func (*GetAllEncryptedKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicKeyBadRequest

type GetPublicKeyBadRequest struct {
}

GetPublicKeyBadRequest handles this case with default header values.

Unable to process request

func NewGetPublicKeyBadRequest

func NewGetPublicKeyBadRequest() *GetPublicKeyBadRequest

NewGetPublicKeyBadRequest creates a GetPublicKeyBadRequest with default headers values

func (*GetPublicKeyBadRequest) Error

func (o *GetPublicKeyBadRequest) Error() string

type GetPublicKeyForbidden

type GetPublicKeyForbidden struct {
}

GetPublicKeyForbidden handles this case with default header values.

Not authorized

func NewGetPublicKeyForbidden

func NewGetPublicKeyForbidden() *GetPublicKeyForbidden

NewGetPublicKeyForbidden creates a GetPublicKeyForbidden with default headers values

func (*GetPublicKeyForbidden) Error

func (o *GetPublicKeyForbidden) Error() string

type GetPublicKeyInternalServerError

type GetPublicKeyInternalServerError struct {
}

GetPublicKeyInternalServerError handles this case with default header values.

Internal server error

func NewGetPublicKeyInternalServerError

func NewGetPublicKeyInternalServerError() *GetPublicKeyInternalServerError

NewGetPublicKeyInternalServerError creates a GetPublicKeyInternalServerError with default headers values

func (*GetPublicKeyInternalServerError) Error

type GetPublicKeyOK

type GetPublicKeyOK struct {
	Payload *models.PublicKey
}

GetPublicKeyOK handles this case with default header values.

Returns a public key in PEM format

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 {

	/*KeyID*/
	KeyID string

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

func (o *GetPublicKeyParams) SetKeyID(keyID string)

SetKeyID adds the keyId 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) 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) WithKeyID

func (o *GetPublicKeyParams) WithKeyID(keyID string) *GetPublicKeyParams

WithKeyID adds the keyID 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) 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 {
}

GetPublicKeyUnauthorized handles this case with default header values.

Not authenticated

func NewGetPublicKeyUnauthorized

func NewGetPublicKeyUnauthorized() *GetPublicKeyUnauthorized

NewGetPublicKeyUnauthorized creates a GetPublicKeyUnauthorized with default headers values

func (*GetPublicKeyUnauthorized) Error

func (o *GetPublicKeyUnauthorized) Error() string

type PostNewEncryptedKeysBadRequest

type PostNewEncryptedKeysBadRequest struct {
}

PostNewEncryptedKeysBadRequest handles this case with default header values.

Unable to process request

func NewPostNewEncryptedKeysBadRequest

func NewPostNewEncryptedKeysBadRequest() *PostNewEncryptedKeysBadRequest

NewPostNewEncryptedKeysBadRequest creates a PostNewEncryptedKeysBadRequest with default headers values

func (*PostNewEncryptedKeysBadRequest) Error

type PostNewEncryptedKeysOK

type PostNewEncryptedKeysOK struct {
}

PostNewEncryptedKeysOK handles this case with default header values.

Successfully persist the encrypted symmetric keys

func NewPostNewEncryptedKeysOK

func NewPostNewEncryptedKeysOK() *PostNewEncryptedKeysOK

NewPostNewEncryptedKeysOK creates a PostNewEncryptedKeysOK with default headers values

func (*PostNewEncryptedKeysOK) Error

func (o *PostNewEncryptedKeysOK) Error() string

type PostNewEncryptedKeysParams

type PostNewEncryptedKeysParams struct {

	/*EncryptedSymmetricKey*/
	EncryptedSymmetricKey []*models.EncryptedSymmetricKey
	/*EncryptingKeyID*/
	EncryptingKeyID string

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

PostNewEncryptedKeysParams contains all the parameters to send to the API endpoint for the post new encrypted keys operation typically these are written to a http.Request

func NewPostNewEncryptedKeysParams

func NewPostNewEncryptedKeysParams() *PostNewEncryptedKeysParams

NewPostNewEncryptedKeysParams creates a new PostNewEncryptedKeysParams object with the default values initialized.

func NewPostNewEncryptedKeysParamsWithContext

func NewPostNewEncryptedKeysParamsWithContext(ctx context.Context) *PostNewEncryptedKeysParams

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

func NewPostNewEncryptedKeysParamsWithHTTPClient

func NewPostNewEncryptedKeysParamsWithHTTPClient(client *http.Client) *PostNewEncryptedKeysParams

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

func NewPostNewEncryptedKeysParamsWithTimeout

func NewPostNewEncryptedKeysParamsWithTimeout(timeout time.Duration) *PostNewEncryptedKeysParams

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

func (*PostNewEncryptedKeysParams) SetContext

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

SetContext adds the context to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) SetEncryptedSymmetricKey

func (o *PostNewEncryptedKeysParams) SetEncryptedSymmetricKey(encryptedSymmetricKey []*models.EncryptedSymmetricKey)

SetEncryptedSymmetricKey adds the encryptedSymmetricKey to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) SetEncryptingKeyID

func (o *PostNewEncryptedKeysParams) SetEncryptingKeyID(encryptingKeyID string)

SetEncryptingKeyID adds the encryptingKeyId to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) SetTimeout

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

SetTimeout adds the timeout to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WithContext

WithContext adds the context to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WithEncryptedSymmetricKey

func (o *PostNewEncryptedKeysParams) WithEncryptedSymmetricKey(encryptedSymmetricKey []*models.EncryptedSymmetricKey) *PostNewEncryptedKeysParams

WithEncryptedSymmetricKey adds the encryptedSymmetricKey to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WithEncryptingKeyID

func (o *PostNewEncryptedKeysParams) WithEncryptingKeyID(encryptingKeyID string) *PostNewEncryptedKeysParams

WithEncryptingKeyID adds the encryptingKeyID to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WithTimeout

WithTimeout adds the timeout to the post new encrypted keys params

func (*PostNewEncryptedKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostNewEncryptedKeysReader

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

PostNewEncryptedKeysReader is a Reader for the PostNewEncryptedKeys structure.

func (*PostNewEncryptedKeysReader) ReadResponse

func (o *PostNewEncryptedKeysReader) 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