Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkSecret ¶
type BulkSecret struct {
client.Resource
Data []Secret `json:"data,omitempty"`
RewrapKey string `json:"rewrapKey,omitempty"`
}
func NewBulkSecret ¶
func NewBulkSecret() *BulkSecret
func (*BulkSecret) Encrypt ¶
func (s *BulkSecret) Encrypt() error
func (*BulkSecret) Rewrap ¶
func (s *BulkSecret) Rewrap() error
type EncryptedData ¶ added in v0.0.5
type EncryptedData struct {
EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
EncryptedText string `json:"encryptedText,omitempty"`
HashAlgorithm string `json:"hashAlgorithm,omitempty"`
EncryptedKey RSAEncryptedData `json:"encryptedKey,omitempty"`
Signature string `json:"signature,omitempty"`
}
type RSAEncryptedData ¶ added in v0.0.5
type Secret ¶
type Secret struct {
client.Resource
SecretName string `json:"name"`
Backend string `json:"backend"`
KeyName string `json:"keyName"`
CipherText string `json:"cipherText,omitempty"`
ClearText string `json:"clearText,omitempty"`
RewrapText string `json:"rewrapText,omitempty"`
RewrapKey string `json:"rewrapKey,omitempty"`
HashAlgorithm string `json:"hashAlgorithm"`
EncryptionAlgorithm string `json:"encryptionAglorigthm"`
Signature string `json:"signature"`
// contains filtered or unexported fields
}
func GetSecretResource ¶
func GetSecretResource() *Secret
func NewSecret ¶
func NewSecret(context *api.ApiContext) *Secret
func (*Secret) Encrypt ¶
Encrypt implements the interface and uses a wrapper to ensure that clear text doesn't leave
type SecretCollection ¶
type SecretCollection struct {
client.Collection
Data []Secret `json:"data,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.