secrets

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 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 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 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"`
}

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

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