secrets

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

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 RSAEncryptedData struct {
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptedText       string `json:"encryptedText,omitempty"`
	HashAlgorithm       string `json:"hashAlgorithm,omitempty"`
}

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

func (s *Secret) Encrypt() error

Encrypt implements the interface and uses a wrapper to ensure that clear text doesn't leave

func (*Secret) Rewrap

func (s *Secret) Rewrap() error

Rewrap implements the interface and uses a wrapper to ensure that clear text doesn't leave

func (*Secret) SetTmpKey added in v0.0.5

func (s *Secret) SetTmpKey(key aesutils.AESKey)

type SecretCollection

type SecretCollection struct {
	client.Collection
	Data []Secret `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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