Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAllEncryptedKeys(params *GetAllEncryptedKeysParams, authInfo runtime.ClientAuthInfoWriter) (*GetAllEncryptedKeysOK, error)
- func (a *Client) GetPublicKey(params *GetPublicKeyParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicKeyOK, error)
- func (a *Client) PostNewEncryptedKeys(params *PostNewEncryptedKeysParams, authInfo runtime.ClientAuthInfoWriter) (*PostNewEncryptedKeysOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetAllEncryptedKeysBadRequest
- type GetAllEncryptedKeysOK
- type GetAllEncryptedKeysParams
- func NewGetAllEncryptedKeysParams() *GetAllEncryptedKeysParams
- func NewGetAllEncryptedKeysParamsWithContext(ctx context.Context) *GetAllEncryptedKeysParams
- func NewGetAllEncryptedKeysParamsWithHTTPClient(client *http.Client) *GetAllEncryptedKeysParams
- func NewGetAllEncryptedKeysParamsWithTimeout(timeout time.Duration) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) SetContext(ctx context.Context)
- func (o *GetAllEncryptedKeysParams) SetEncryptingKeyID(encryptingKeyID string)
- func (o *GetAllEncryptedKeysParams) SetHTTPClient(client *http.Client)
- func (o *GetAllEncryptedKeysParams) SetSymmetricKeyIds(symmetricKeyIds []string)
- func (o *GetAllEncryptedKeysParams) SetTimeout(timeout time.Duration)
- func (o *GetAllEncryptedKeysParams) WithContext(ctx context.Context) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) WithEncryptingKeyID(encryptingKeyID string) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) WithHTTPClient(client *http.Client) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) WithSymmetricKeyIds(symmetricKeyIds []string) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) WithTimeout(timeout time.Duration) *GetAllEncryptedKeysParams
- func (o *GetAllEncryptedKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAllEncryptedKeysReader
- type GetPublicKeyBadRequest
- type GetPublicKeyOK
- type GetPublicKeyParams
- func (o *GetPublicKeyParams) SetContext(ctx context.Context)
- func (o *GetPublicKeyParams) SetHTTPClient(client *http.Client)
- func (o *GetPublicKeyParams) SetKeyID(keyID string)
- func (o *GetPublicKeyParams) SetTimeout(timeout time.Duration)
- func (o *GetPublicKeyParams) WithContext(ctx context.Context) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithHTTPClient(client *http.Client) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithKeyID(keyID string) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithTimeout(timeout time.Duration) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPublicKeyReader
- type PostNewEncryptedKeysBadRequest
- type PostNewEncryptedKeysOK
- type PostNewEncryptedKeysParams
- func NewPostNewEncryptedKeysParams() *PostNewEncryptedKeysParams
- func NewPostNewEncryptedKeysParamsWithContext(ctx context.Context) *PostNewEncryptedKeysParams
- func NewPostNewEncryptedKeysParamsWithHTTPClient(client *http.Client) *PostNewEncryptedKeysParams
- func NewPostNewEncryptedKeysParamsWithTimeout(timeout time.Duration) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) SetContext(ctx context.Context)
- func (o *PostNewEncryptedKeysParams) SetEncryptedSymmetricKey(encryptedSymmetricKey []*models.EncryptedSymmetricKey)
- func (o *PostNewEncryptedKeysParams) SetEncryptingKeyID(encryptingKeyID string)
- func (o *PostNewEncryptedKeysParams) SetHTTPClient(client *http.Client)
- func (o *PostNewEncryptedKeysParams) SetTimeout(timeout time.Duration)
- func (o *PostNewEncryptedKeysParams) WithContext(ctx context.Context) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) WithEncryptedSymmetricKey(encryptedSymmetricKey []*models.EncryptedSymmetricKey) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) WithEncryptingKeyID(encryptingKeyID string) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) WithHTTPClient(client *http.Client) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) WithTimeout(timeout time.Duration) *PostNewEncryptedKeysParams
- func (o *PostNewEncryptedKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostNewEncryptedKeysReader
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 ¶
func (o *GetAllEncryptedKeysBadRequest) Error() string
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 ¶
func (o *GetAllEncryptedKeysParams) WithContext(ctx context.Context) *GetAllEncryptedKeysParams
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 ¶
func (o *GetAllEncryptedKeysParams) WithTimeout(timeout time.Duration) *GetAllEncryptedKeysParams
WithTimeout adds the timeout to the get all encrypted keys params
func (*GetAllEncryptedKeysParams) WriteToRequest ¶
func (o *GetAllEncryptedKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 GetPublicKeyOK ¶
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 ¶
func (o *GetPublicKeyParams) WithContext(ctx context.Context) *GetPublicKeyParams
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 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 ¶
func (o *PostNewEncryptedKeysBadRequest) Error() string
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 ¶
func (o *PostNewEncryptedKeysParams) WithContext(ctx context.Context) *PostNewEncryptedKeysParams
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 ¶
func (o *PostNewEncryptedKeysParams) WithHTTPClient(client *http.Client) *PostNewEncryptedKeysParams
WithHTTPClient adds the HTTPClient to the post new encrypted keys params
func (*PostNewEncryptedKeysParams) WithTimeout ¶
func (o *PostNewEncryptedKeysParams) WithTimeout(timeout time.Duration) *PostNewEncryptedKeysParams
WithTimeout adds the timeout to the post new encrypted keys params
func (*PostNewEncryptedKeysParams) WriteToRequest ¶
func (o *PostNewEncryptedKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.