Documentation
¶
Index ¶
- type AttributeExecutor
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithAttribute(name kmip.AttributeName, value any) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithAttributes(attributes ...kmip.Attribute) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithLink(linkType kmip.LinkType, linkedObjectID string) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithName(name string) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithObjectType(objectType kmip.ObjectType) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithURI(uri string) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithUniqueID(id string) Wrap
- func (ex AttributeExecutor[Req, Resp, Wrap]) WithUsageLimit(total int64, unit kmip.UsageLimitsUnit) Wrap
- type Client
- func (c *Client) Activate(id string) ExecActivate
- func (c *Client) AddAttribute(id string, name kmip.AttributeName, value any) ExecAddAttribute
- func (c *Client) Addr() string
- func (c *Client) Archive(id string) ExecArchive
- func (c *Client) Batch(ctx context.Context, payloads ...kmip.OperationPayload) ([]kmip.ResponseBatchItem, error)
- func (c *Client) Clone() (*Client, error)
- func (c *Client) CloneCtx(ctx context.Context) (*Client, error)
- func (c *Client) Close() error
- func (c *Client) Create() ExecCreateWantType
- func (c *Client) CreateKeyPair() ExecCreateKeyPair
- func (c *Client) Decrypt(id string) ExecDecryptWantsData
- func (c *Client) DeleteAttribute(id string, name kmip.AttributeName) ExecDeleteAttribute
- func (c *Client) Destroy(id string) ExecDestroy
- func (c *Client) Encrypt(id string) ExecEncryptWantsData
- func (c *Client) Get(id string) ExecGet
- func (c *Client) GetAttributeList(id string) ExecGetAttributeList
- func (c *Client) GetAttributes(id string, attributes ...kmip.AttributeName) ExecGetAttributes
- func (c *Client) GetUsageAllocation(id string, limitCount int64) ExecGetUsageAllocation
- func (c *Client) Locate() ExecLocate
- func (c *Client) ModifyAttribute(id string, name kmip.AttributeName, value any) ExecModifyAttribute
- func (c *Client) ObtainLease(id string) ExecObtainLease
- func (c *Client) Query() ExecQuery
- func (c *Client) Recover(id string) ExecRecover
- func (c *Client) Register() ExecRegisterWantType
- func (c *Client) Rekey(id string) ExecRekey
- func (c *Client) Request(ctx context.Context, payload kmip.OperationPayload) (kmip.OperationPayload, error)
- func (c *Client) Revoke(id string) ExecRevoke
- func (c *Client) Roundtrip(ctx context.Context, msg *kmip.RequestMessage) (*kmip.ResponseMessage, error)
- func (c *Client) Sign(id string) ExecSignWantsData
- func (c *Client) SignatureVerify(id string) ExecSignatureVerifyWantsData
- func (c *Client) Version() kmip.ProtocolVersion
- type ExecActivate
- type ExecAddAttribute
- type ExecArchive
- type ExecCreate
- type ExecCreateKeyPair
- func (ex ExecCreateKeyPair) Common() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPair) ECDSA(curve kmip.RecommendedCurve, ...) ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPair) PrivateKey() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPair) PublicKey() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPair) RSA(bitlen int, privateUsage, publicUsage kmip.CryptographicUsageMask) ExecCreateKeyPairAttr
- type ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPairAttr) Common() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPairAttr) PrivateKey() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPairAttr) PublicKey() ExecCreateKeyPairAttr
- func (ex ExecCreateKeyPairAttr) WithTemplate(name string, nameType kmip.NameType) ExecCreateKeyPairAttrdeprecated
- func (ex ExecCreateKeyPairAttr) WithTemplates(names ...kmip.Name) ExecCreateKeyPairAttrdeprecated
- type ExecCreateWantType
- func (ex ExecCreateWantType) AES(length int, usage kmip.CryptographicUsageMask) ExecCreate
- func (ex ExecCreateWantType) Object(objectType kmip.ObjectType, attrs ...kmip.Attribute) ExecCreate
- func (ex ExecCreateWantType) Skipjack(usage kmip.CryptographicUsageMask) ExecCreate
- func (ex ExecCreateWantType) SymmetricKey(alg kmip.CryptographicAlgorithm, length int, usage kmip.CryptographicUsageMask) ExecCreate
- func (ex ExecCreateWantType) TDES(length int, usage kmip.CryptographicUsageMask) ExecCreate
- type ExecDecrypt
- type ExecDecryptWantsData
- func (ex ExecDecryptWantsData) Data(data []byte) ExecDecrypt
- func (ex ExecDecryptWantsData) WithAAD(aad []byte) ExecDecryptWantsData
- func (ex ExecDecryptWantsData) WithAuthTag(tag []byte) ExecDecryptWantsData
- func (ex ExecDecryptWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecDecryptWantsData
- func (ex ExecDecryptWantsData) WithIvCounterNonce(iv []byte) ExecDecryptWantsData
- type ExecDeleteAttribute
- type ExecDestroy
- type ExecEncrypt
- type ExecEncryptWantsData
- func (ex ExecEncryptWantsData) Data(data []byte) ExecEncrypt
- func (ex ExecEncryptWantsData) WithAAD(aad []byte) ExecEncryptWantsData
- func (ex ExecEncryptWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecEncryptWantsData
- func (ex ExecEncryptWantsData) WithIvCounterNonce(iv []byte) ExecEncryptWantsData
- type ExecGet
- type ExecGetAttributeList
- type ExecGetAttributes
- type ExecGetUsageAllocation
- type ExecLocate
- type ExecModifyAttribute
- type ExecObtainLease
- type ExecQuery
- func (ex ExecQuery) All() ExecQuery
- func (ex ExecQuery) ApplicationNamespaces() ExecQuery
- func (ex ExecQuery) AttestationTypes() ExecQuery
- func (ex ExecQuery) Capabilities() ExecQuery
- func (ex ExecQuery) ClientRegistrationMethods() ExecQuery
- func (ex ExecQuery) ExtensionList() ExecQuery
- func (ex ExecQuery) ExtensionMap() ExecQuery
- func (ex ExecQuery) Objects() ExecQuery
- func (ex ExecQuery) Operations() ExecQuery
- func (ex ExecQuery) Profiles() ExecQuery
- func (ex ExecQuery) RNGs() ExecQuery
- func (ex ExecQuery) ServerInformation() ExecQuery
- func (ex ExecQuery) Validations() ExecQuery
- type ExecRecover
- type ExecRegister
- type ExecRegisterWantType
- func (ex ExecRegisterWantType) Certificate(kind kmip.CertificateType, value []byte) ExecRegister
- func (ex ExecRegisterWantType) EcdsaPrivateKey(key *ecdsa.PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) EcdsaPublicKey(key *ecdsa.PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Object(value kmip.Object) ExecRegister
- func (ex ExecRegisterWantType) PemCertificate(data []byte) ExecRegister
- func (ex ExecRegisterWantType) PemKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) PemPrivateKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) PemPublicKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Pkcs1PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Pkcs1PublicKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Pkcs8PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) PrivateKey(key PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) PublicKey(key PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) RsaPrivateKey(key *rsa.PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) RsaPublicKey(key *rsa.PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Sec1PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
- func (ex ExecRegisterWantType) Secret(kind kmip.SecretDataType, value []byte) ExecRegister
- func (ex ExecRegisterWantType) SecretString(kind kmip.SecretDataType, value string) ExecRegister
- func (ex ExecRegisterWantType) SymmetricKey(alg kmip.CryptographicAlgorithm, usage kmip.CryptographicUsageMask, ...) ExecRegister
- func (ex ExecRegisterWantType) WithKeyFormat(format KeyFormat) ExecRegisterWantType
- func (ex ExecRegisterWantType) X509Certificate(cert *x509.Certificate) ExecRegister
- func (ex ExecRegisterWantType) X509PublicKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
- type ExecRekey
- type ExecRevoke
- type ExecSign
- type ExecSignWantsData
- type ExecSignatureVerify
- type ExecSignatureVerifyWantsData
- func (ex ExecSignatureVerifyWantsData) Data(data []byte) ExecSignatureVerifyWantsSignature
- func (ex ExecSignatureVerifyWantsData) DigestedData(data []byte) ExecSignatureVerifyWantsSignature
- func (ex ExecSignatureVerifyWantsData) Signature(sig []byte) ExecSignatureVerify
- func (ex ExecSignatureVerifyWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecSignatureVerifyWantsData
- type ExecSignatureVerifyWantsSignature
- type Executor
- type KeyFormat
- type Middleware
- type Next
- type Option
- func EnforceVersion(v kmip.ProtocolVersion) Option
- func WithClientCert(cert tls.Certificate) Option
- func WithClientCertFiles(certFile, keyFile string) Option
- func WithClientCertPEM(certPEMBlock, keyPEMBlock []byte) Option
- func WithKmipVersions(versions ...kmip.ProtocolVersion) Option
- func WithMiddlewares(middlewares ...Middleware) Option
- func WithRootCAFile(path string) Option
- func WithRootCAPem(pem []byte) Option
- func WithServerName(name string) Option
- func WithTlsCipherSuiteNames(ciphers ...string) Option
- func WithTlsCipherSuites(ciphers ...uint16) Option
- func WithTlsConfig(cfg *tls.Config) Option
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeExecutor ¶
type AttributeExecutor[Req, Resp kmip.OperationPayload, Wrap any] struct { Executor[Req, Resp] // contains filtered or unexported fields }
func (AttributeExecutor[Req, Resp, Wrap]) WithAttribute ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithAttribute(name kmip.AttributeName, value any) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithAttributes ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithAttributes(attributes ...kmip.Attribute) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithLink ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithLink(linkType kmip.LinkType, linkedObjectID string) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithName ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithName(name string) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithObjectType ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithObjectType(objectType kmip.ObjectType) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithURI ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithURI(uri string) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithUniqueID ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithUniqueID(id string) Wrap
func (AttributeExecutor[Req, Resp, Wrap]) WithUsageLimit ¶
func (ex AttributeExecutor[Req, Resp, Wrap]) WithUsageLimit(total int64, unit kmip.UsageLimitsUnit) Wrap
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DialContext ¶
func (*Client) Activate ¶
func (c *Client) Activate(id string) ExecActivate
func (*Client) AddAttribute ¶
func (c *Client) AddAttribute(id string, name kmip.AttributeName, value any) ExecAddAttribute
func (*Client) Archive ¶
func (c *Client) Archive(id string) ExecArchive
func (*Client) CloneCtx ¶ added in v0.2.5
CloneCtx clones the current kmip client into a new independent client with a separate new connection. The new client inherits allt he configured parameters as well as the negotiated kmip protocol version. Meaning that cloning a client does not perform protocol version negotiation.
Cloning a closed client is valid and will create a new connected client.
func (*Client) Create ¶
func (c *Client) Create() ExecCreateWantType
func (*Client) CreateKeyPair ¶
func (c *Client) CreateKeyPair() ExecCreateKeyPair
func (*Client) Decrypt ¶ added in v0.2.5
func (c *Client) Decrypt(id string) ExecDecryptWantsData
func (*Client) DeleteAttribute ¶
func (c *Client) DeleteAttribute(id string, name kmip.AttributeName) ExecDeleteAttribute
func (*Client) Destroy ¶
func (c *Client) Destroy(id string) ExecDestroy
func (*Client) Encrypt ¶ added in v0.2.5
func (c *Client) Encrypt(id string) ExecEncryptWantsData
func (*Client) GetAttributeList ¶
func (c *Client) GetAttributeList(id string) ExecGetAttributeList
func (*Client) GetAttributes ¶
func (c *Client) GetAttributes(id string, attributes ...kmip.AttributeName) ExecGetAttributes
func (*Client) GetUsageAllocation ¶
func (c *Client) GetUsageAllocation(id string, limitCount int64) ExecGetUsageAllocation
func (*Client) Locate ¶
func (c *Client) Locate() ExecLocate
func (*Client) ModifyAttribute ¶
func (c *Client) ModifyAttribute(id string, name kmip.AttributeName, value any) ExecModifyAttribute
func (*Client) ObtainLease ¶
func (c *Client) ObtainLease(id string) ExecObtainLease
func (*Client) Recover ¶
func (c *Client) Recover(id string) ExecRecover
func (*Client) Register ¶
func (c *Client) Register() ExecRegisterWantType
func (*Client) Revoke ¶
func (c *Client) Revoke(id string) ExecRevoke
func (*Client) Sign ¶ added in v0.2.5
func (c *Client) Sign(id string) ExecSignWantsData
func (*Client) SignatureVerify ¶ added in v0.2.5
func (c *Client) SignatureVerify(id string) ExecSignatureVerifyWantsData
type ExecActivate ¶
type ExecActivate = Executor[*payloads.ActivateRequestPayload, *payloads.ActivateResponsePayload]
type ExecAddAttribute ¶
type ExecAddAttribute struct { Executor[*payloads.AddAttributeRequestPayload, *payloads.AddAttributeResponsePayload] }
func (ExecAddAttribute) WithIndex ¶
func (ex ExecAddAttribute) WithIndex(index int32) ExecAddAttribute
type ExecArchive ¶
type ExecArchive = Executor[*payloads.ArchiveRequestPayload, *payloads.ArchiveResponsePayload]
type ExecCreate ¶
type ExecCreate struct { AttributeExecutor[*payloads.CreateRequestPayload, *payloads.CreateResponsePayload, ExecCreate] }
func (ExecCreate) WithTemplate
deprecated
func (ex ExecCreate) WithTemplate(name string, nameType kmip.NameType) ExecCreate
Deprecated: Templates have been deprecated in KMIP v1.3.
func (ExecCreate) WithTemplates
deprecated
func (ex ExecCreate) WithTemplates(names ...kmip.Name) ExecCreate
Deprecated: Templates have been deprecated in KMIP v1.3.
type ExecCreateKeyPair ¶
type ExecCreateKeyPair struct { Executor[*payloads.CreateKeyPairRequestPayload, *payloads.CreateKeyPairResponsePayload] }
func (ExecCreateKeyPair) Common ¶
func (ex ExecCreateKeyPair) Common() ExecCreateKeyPairAttr
func (ExecCreateKeyPair) ECDSA ¶
func (ex ExecCreateKeyPair) ECDSA(curve kmip.RecommendedCurve, privateUsage, publicUsage kmip.CryptographicUsageMask) ExecCreateKeyPairAttr
func (ExecCreateKeyPair) PrivateKey ¶
func (ex ExecCreateKeyPair) PrivateKey() ExecCreateKeyPairAttr
func (ExecCreateKeyPair) PublicKey ¶
func (ex ExecCreateKeyPair) PublicKey() ExecCreateKeyPairAttr
func (ExecCreateKeyPair) RSA ¶
func (ex ExecCreateKeyPair) RSA(bitlen int, privateUsage, publicUsage kmip.CryptographicUsageMask) ExecCreateKeyPairAttr
type ExecCreateKeyPairAttr ¶
type ExecCreateKeyPairAttr struct { AttributeExecutor[*payloads.CreateKeyPairRequestPayload, *payloads.CreateKeyPairResponsePayload, ExecCreateKeyPairAttr] // contains filtered or unexported fields }
func (ExecCreateKeyPairAttr) Common ¶
func (ex ExecCreateKeyPairAttr) Common() ExecCreateKeyPairAttr
func (ExecCreateKeyPairAttr) PrivateKey ¶
func (ex ExecCreateKeyPairAttr) PrivateKey() ExecCreateKeyPairAttr
func (ExecCreateKeyPairAttr) PublicKey ¶
func (ex ExecCreateKeyPairAttr) PublicKey() ExecCreateKeyPairAttr
func (ExecCreateKeyPairAttr) WithTemplate
deprecated
func (ex ExecCreateKeyPairAttr) WithTemplate(name string, nameType kmip.NameType) ExecCreateKeyPairAttr
Deprecated: Templates have been deprecated in KMIP v1.3.
func (ExecCreateKeyPairAttr) WithTemplates
deprecated
func (ex ExecCreateKeyPairAttr) WithTemplates(names ...kmip.Name) ExecCreateKeyPairAttr
Deprecated: Templates have been deprecated in KMIP v1.3.
type ExecCreateWantType ¶
type ExecCreateWantType struct {
// contains filtered or unexported fields
}
func (ExecCreateWantType) AES ¶
func (ex ExecCreateWantType) AES(length int, usage kmip.CryptographicUsageMask) ExecCreate
func (ExecCreateWantType) Object ¶
func (ex ExecCreateWantType) Object(objectType kmip.ObjectType, attrs ...kmip.Attribute) ExecCreate
func (ExecCreateWantType) Skipjack ¶
func (ex ExecCreateWantType) Skipjack(usage kmip.CryptographicUsageMask) ExecCreate
func (ExecCreateWantType) SymmetricKey ¶
func (ex ExecCreateWantType) SymmetricKey(alg kmip.CryptographicAlgorithm, length int, usage kmip.CryptographicUsageMask) ExecCreate
func (ExecCreateWantType) TDES ¶
func (ex ExecCreateWantType) TDES(length int, usage kmip.CryptographicUsageMask) ExecCreate
type ExecDecrypt ¶ added in v0.2.5
type ExecDecrypt struct { Executor[*payloads.DecryptRequestPayload, *payloads.DecryptResponsePayload] }
type ExecDecryptWantsData ¶ added in v0.2.5
type ExecDecryptWantsData struct {
// contains filtered or unexported fields
}
func (ExecDecryptWantsData) Data ¶ added in v0.2.5
func (ex ExecDecryptWantsData) Data(data []byte) ExecDecrypt
func (ExecDecryptWantsData) WithAAD ¶ added in v0.2.5
func (ex ExecDecryptWantsData) WithAAD(aad []byte) ExecDecryptWantsData
func (ExecDecryptWantsData) WithAuthTag ¶ added in v0.2.5
func (ex ExecDecryptWantsData) WithAuthTag(tag []byte) ExecDecryptWantsData
func (ExecDecryptWantsData) WithCryptographicParameters ¶ added in v0.2.5
func (ex ExecDecryptWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecDecryptWantsData
func (ExecDecryptWantsData) WithIvCounterNonce ¶ added in v0.2.5
func (ex ExecDecryptWantsData) WithIvCounterNonce(iv []byte) ExecDecryptWantsData
type ExecDeleteAttribute ¶
type ExecDeleteAttribute struct { Executor[*payloads.DeleteAttributeRequestPayload, *payloads.DeleteAttributeResponsePayload] }
func (ExecDeleteAttribute) WithIndex ¶
func (ex ExecDeleteAttribute) WithIndex(index int32) ExecDeleteAttribute
type ExecDestroy ¶
type ExecDestroy = Executor[*payloads.DestroyRequestPayload, *payloads.DestroyResponsePayload]
type ExecEncrypt ¶ added in v0.2.5
type ExecEncrypt struct { Executor[*payloads.EncryptRequestPayload, *payloads.EncryptResponsePayload] }
type ExecEncryptWantsData ¶ added in v0.2.5
type ExecEncryptWantsData struct {
// contains filtered or unexported fields
}
func (ExecEncryptWantsData) Data ¶ added in v0.2.5
func (ex ExecEncryptWantsData) Data(data []byte) ExecEncrypt
func (ExecEncryptWantsData) WithAAD ¶ added in v0.2.5
func (ex ExecEncryptWantsData) WithAAD(aad []byte) ExecEncryptWantsData
func (ExecEncryptWantsData) WithCryptographicParameters ¶ added in v0.2.5
func (ex ExecEncryptWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecEncryptWantsData
func (ExecEncryptWantsData) WithIvCounterNonce ¶ added in v0.2.5
func (ex ExecEncryptWantsData) WithIvCounterNonce(iv []byte) ExecEncryptWantsData
type ExecGet ¶
type ExecGet struct { Executor[*payloads.GetRequestPayload, *payloads.GetResponsePayload] }
func (ExecGet) WithKeyCompression ¶
func (ExecGet) WithKeyFormat ¶
func (ExecGet) WithKeyWrapType ¶
func (ExecGet) WithKeyWrapping ¶
type ExecGetAttributeList ¶
type ExecGetAttributeList = Executor[*payloads.GetAttributeListRequestPayload, *payloads.GetAttributeListResponsePayload]
type ExecGetAttributes ¶
type ExecGetAttributes struct { Executor[*payloads.GetAttributesRequestPayload, *payloads.GetAttributesResponsePayload] }
func (ExecGetAttributes) WithAttributes ¶
func (ex ExecGetAttributes) WithAttributes(names ...kmip.AttributeName) ExecGetAttributes
type ExecGetUsageAllocation ¶
type ExecGetUsageAllocation = Executor[*payloads.GetUsageAllocationRequestPayload, *payloads.GetUsageAllocationResponsePayload]
type ExecLocate ¶
type ExecLocate struct { AttributeExecutor[*payloads.LocateRequestPayload, *payloads.LocateResponsePayload, ExecLocate] }
func (ExecLocate) WithMaxItems ¶
func (ex ExecLocate) WithMaxItems(maximum int32) ExecLocate
func (ExecLocate) WithObjectGroupMember ¶
func (ex ExecLocate) WithObjectGroupMember(groupMember kmip.ObjectGroupMember) ExecLocate
func (ExecLocate) WithOffset ¶
func (ex ExecLocate) WithOffset(offset int32) ExecLocate
func (ExecLocate) WithStorageStatusMask ¶
func (ex ExecLocate) WithStorageStatusMask(mask kmip.StorageStatusMask) ExecLocate
type ExecModifyAttribute ¶
type ExecModifyAttribute struct { Executor[*payloads.ModifyAttributeRequestPayload, *payloads.ModifyAttributeResponsePayload] }
func (ExecModifyAttribute) WithIndex ¶
func (ex ExecModifyAttribute) WithIndex(index int32) ExecModifyAttribute
type ExecObtainLease ¶
type ExecObtainLease = Executor[*payloads.ObtainLeaseRequestPayload, *payloads.ObtainLeaseResponsePayload]
type ExecQuery ¶
type ExecQuery struct { Executor[*payloads.QueryRequestPayload, *payloads.QueryResponsePayload] }
func (ExecQuery) ApplicationNamespaces ¶
func (ExecQuery) Capabilities ¶
func (ExecQuery) ClientRegistrationMethods ¶
func (ExecQuery) Operations ¶
func (ExecQuery) ServerInformation ¶
func (ExecQuery) Validations ¶
type ExecRecover ¶
type ExecRecover = Executor[*payloads.RecoverRequestPayload, *payloads.RecoverResponsePayload]
type ExecRegister ¶
type ExecRegister struct { AttributeExecutor[*payloads.RegisterRequestPayload, *payloads.RegisterResponsePayload, ExecRegister] }
type ExecRegisterWantType ¶
type ExecRegisterWantType struct {
// contains filtered or unexported fields
}
func (ExecRegisterWantType) Certificate ¶
func (ex ExecRegisterWantType) Certificate(kind kmip.CertificateType, value []byte) ExecRegister
func (ExecRegisterWantType) EcdsaPrivateKey ¶
func (ex ExecRegisterWantType) EcdsaPrivateKey(key *ecdsa.PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) EcdsaPublicKey ¶
func (ex ExecRegisterWantType) EcdsaPublicKey(key *ecdsa.PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) Object ¶
func (ex ExecRegisterWantType) Object(value kmip.Object) ExecRegister
func (ExecRegisterWantType) PemCertificate ¶
func (ex ExecRegisterWantType) PemCertificate(data []byte) ExecRegister
func (ExecRegisterWantType) PemKey ¶
func (ex ExecRegisterWantType) PemKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) PemPrivateKey ¶ added in v0.2.1
func (ex ExecRegisterWantType) PemPrivateKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) PemPublicKey ¶ added in v0.2.1
func (ex ExecRegisterWantType) PemPublicKey(data []byte, usage kmip.CryptographicUsageMask) ExecRegister
PemPublicKey registers a public key from PEM data. It also accepts PEM encoded private keys but will register only the public key part of it.
func (ExecRegisterWantType) Pkcs1PrivateKey ¶
func (ex ExecRegisterWantType) Pkcs1PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) Pkcs1PublicKey ¶
func (ex ExecRegisterWantType) Pkcs1PublicKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) Pkcs8PrivateKey ¶
func (ex ExecRegisterWantType) Pkcs8PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) PrivateKey ¶
func (ex ExecRegisterWantType) PrivateKey(key PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) PublicKey ¶
func (ex ExecRegisterWantType) PublicKey(key PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) RsaPrivateKey ¶
func (ex ExecRegisterWantType) RsaPrivateKey(key *rsa.PrivateKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) RsaPublicKey ¶
func (ex ExecRegisterWantType) RsaPublicKey(key *rsa.PublicKey, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) Sec1PrivateKey ¶
func (ex ExecRegisterWantType) Sec1PrivateKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
func (ExecRegisterWantType) Secret ¶
func (ex ExecRegisterWantType) Secret(kind kmip.SecretDataType, value []byte) ExecRegister
func (ExecRegisterWantType) SecretString ¶
func (ex ExecRegisterWantType) SecretString(kind kmip.SecretDataType, value string) ExecRegister
func (ExecRegisterWantType) SymmetricKey ¶
func (ex ExecRegisterWantType) SymmetricKey(alg kmip.CryptographicAlgorithm, usage kmip.CryptographicUsageMask, value []byte) ExecRegister
func (ExecRegisterWantType) WithKeyFormat ¶
func (ex ExecRegisterWantType) WithKeyFormat(format KeyFormat) ExecRegisterWantType
func (ExecRegisterWantType) X509Certificate ¶
func (ex ExecRegisterWantType) X509Certificate(cert *x509.Certificate) ExecRegister
func (ExecRegisterWantType) X509PublicKey ¶
func (ex ExecRegisterWantType) X509PublicKey(der []byte, usage kmip.CryptographicUsageMask) ExecRegister
type ExecRekey ¶
type ExecRekey struct { AttributeExecutor[*payloads.RekeyRequestPayload, *payloads.RekeyResponsePayload, ExecRekey] }
func (ExecRekey) WithTemplate
deprecated
func (ExecRekey) WithTemplates
deprecated
type ExecRevoke ¶
type ExecRevoke struct { Executor[*payloads.RevokeRequestPayload, *payloads.RevokeResponsePayload] }
func (ExecRevoke) WithCompromiseOccurrenceDate ¶
func (ex ExecRevoke) WithCompromiseOccurrenceDate(dt time.Time) ExecRevoke
func (ExecRevoke) WithRevocationMessage ¶
func (ex ExecRevoke) WithRevocationMessage(msg string) ExecRevoke
func (ExecRevoke) WithRevocationReasonCode ¶
func (ex ExecRevoke) WithRevocationReasonCode(code kmip.RevocationReasonCode) ExecRevoke
type ExecSign ¶ added in v0.2.5
type ExecSign struct { Executor[*payloads.SignRequestPayload, *payloads.SignResponsePayload] }
type ExecSignWantsData ¶ added in v0.2.5
type ExecSignWantsData struct {
// contains filtered or unexported fields
}
func (ExecSignWantsData) Data ¶ added in v0.2.5
func (ex ExecSignWantsData) Data(data []byte) ExecSign
func (ExecSignWantsData) DigestedData ¶ added in v0.2.5
func (ex ExecSignWantsData) DigestedData(data []byte) ExecSign
func (ExecSignWantsData) WithCryptographicParameters ¶ added in v0.2.5
func (ex ExecSignWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecSignWantsData
type ExecSignatureVerify ¶ added in v0.2.5
type ExecSignatureVerify struct { Executor[*payloads.SignatureVerifyRequestPayload, *payloads.SignatureVerifyResponsePayload] }
type ExecSignatureVerifyWantsData ¶ added in v0.2.5
type ExecSignatureVerifyWantsData struct {
// contains filtered or unexported fields
}
func (ExecSignatureVerifyWantsData) Data ¶ added in v0.2.5
func (ex ExecSignatureVerifyWantsData) Data(data []byte) ExecSignatureVerifyWantsSignature
func (ExecSignatureVerifyWantsData) DigestedData ¶ added in v0.2.5
func (ex ExecSignatureVerifyWantsData) DigestedData(data []byte) ExecSignatureVerifyWantsSignature
func (ExecSignatureVerifyWantsData) Signature ¶ added in v0.2.5
func (ex ExecSignatureVerifyWantsData) Signature(sig []byte) ExecSignatureVerify
func (ExecSignatureVerifyWantsData) WithCryptographicParameters ¶ added in v0.2.5
func (ex ExecSignatureVerifyWantsData) WithCryptographicParameters(params kmip.CryptographicParameters) ExecSignatureVerifyWantsData
type ExecSignatureVerifyWantsSignature ¶ added in v0.2.5
type ExecSignatureVerifyWantsSignature struct {
// contains filtered or unexported fields
}
func (ExecSignatureVerifyWantsSignature) Signature ¶ added in v0.2.5
func (ex ExecSignatureVerifyWantsSignature) Signature(sig []byte) ExecSignatureVerify
type Executor ¶
type Executor[Req, Resp kmip.OperationPayload] struct {
// contains filtered or unexported fields
}
func (Executor[Req, Resp]) Exec ¶
Exec sends the request to the remote KMIP server, and returns the parsed response.
It returns an error if the request could not be sent, or if the server replies with KMIP error.
func (Executor[Req, Resp]) ExecContext ¶
ExecContext sends the request to the remote KMIP server, and returns the parsed response.
It returns an error if the request could not be sent, or if the server replies with KMIP error.
func (Executor[Req, Resp]) MustExec ¶
func (ex Executor[Req, Resp]) MustExec() Resp
MustExec is like Exec except it panics if the request fails.
func (Executor[Req, Resp]) MustExecContext ¶
MustExecContext is like Exec except it panics if the request fails.
func (Executor[Req, Resp]) RequestPayload ¶
func (ex Executor[Req, Resp]) RequestPayload() Req
type Middleware ¶
type Middleware func(next Next, ctx context.Context, msg *kmip.RequestMessage) (*kmip.ResponseMessage, error)
func CorrelationValueMiddleware ¶
func CorrelationValueMiddleware(fn func() string) Middleware
func DebugMiddleware ¶
func DebugMiddleware(out io.Writer, marshal func(data any) []byte) Middleware
func TimeoutMiddleware ¶ added in v0.2.5
func TimeoutMiddleware(timeout time.Duration) Middleware
type Option ¶
type Option func(*opts) error
func EnforceVersion ¶
func EnforceVersion(v kmip.ProtocolVersion) Option
func WithClientCert ¶
func WithClientCert(cert tls.Certificate) Option
func WithClientCertFiles ¶
func WithClientCertPEM ¶
func WithKmipVersions ¶
func WithKmipVersions(versions ...kmip.ProtocolVersion) Option
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...Middleware) Option
func WithRootCAFile ¶
WithRootCAFile adds the CA in the file located at `path` t othe clients CA pool. If path is an empty string, the option is a no-op.
func WithRootCAPem ¶
func WithServerName ¶
func WithTlsCipherSuiteNames ¶ added in v0.3.0
func WithTlsCipherSuites ¶ added in v0.3.0
func WithTlsConfig ¶ added in v0.1.0
type PrivateKey ¶
type PrivateKey interface { Public() crypto.PublicKey Equal(x crypto.PrivateKey) bool }