secrets

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkEncryptedSecret added in v0.1.0

type BulkEncryptedSecret struct {
	client.Resource
	Data      []*EncryptedSecret `json:"data,omitempty"`
	RewrapKey string             `json:"rewrapKey,omitempty"`
}

func GetBulkEncryptedSecretResource added in v0.1.0

func GetBulkEncryptedSecretResource() *BulkEncryptedSecret

func NewBulkEncryptedSecret added in v0.1.0

func NewBulkEncryptedSecret(secretInput *BulkSecretInput) (*BulkEncryptedSecret, error)

func (*BulkEncryptedSecret) Delete added in v0.1.0

func (bes *BulkEncryptedSecret) Delete() error

type BulkRewrappedSecret added in v0.1.0

type BulkRewrappedSecret struct {
	client.Resource
	Data []*RewrappedSecret `json:"data,omitempty"`
}

func NewBulkRewrappedSecret added in v0.1.0

func NewBulkRewrappedSecret(secrets *BulkEncryptedSecret) (*BulkRewrappedSecret, error)

type BulkSecretInput added in v0.1.0

type BulkSecretInput struct {
	client.Resource
	Data []*UnencryptedSecret `json:"data,omitempty"`
}

func NewBulkSecretInput added in v0.1.0

func NewBulkSecretInput() *BulkSecretInput

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 EncryptedSecret added in v0.1.0

type EncryptedSecret struct {
	client.Resource
	Backend             string `json:"backend"`
	KeyName             string `json:"keyName"`
	CipherText          string `json:"cipherText,omitempty"`
	HashAlgorithm       string `json:"hashAlgorithm"`
	EncryptionAlgorithm string `json:"encryptionAglorigthm"`
	Signature           string `json:"signature"`
	RewrapKey           string `json:"rewrapKey,omitempty"`
	// contains filtered or unexported fields
}

func GetEncryptedSecretResource added in v0.1.0

func GetEncryptedSecretResource() *EncryptedSecret

func NewEncryptedSecret added in v0.1.0

func NewEncryptedSecret(clearSecret *UnencryptedSecret) (*EncryptedSecret, error)

func (*EncryptedSecret) Delete added in v0.1.0

func (s *EncryptedSecret) Delete() error

func (*EncryptedSecret) SetTmpKey added in v0.1.0

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

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 RewrappedSecret added in v0.1.0

type RewrappedSecret struct {
	client.Resource
	SecretName string `json:"name,omitempty"`
	RewrapText string `json:"rewrapText,omitempty"`
}

func NewRewrappedSecret added in v0.1.0

func NewRewrappedSecret(encSecret *EncryptedSecret) (*RewrappedSecret, error)

type Secret

type Secret struct {
	client.Resource
}

type SecretCollection

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

type UnencryptedSecret added in v0.1.0

type UnencryptedSecret struct {
	client.Resource
	Backend   string `json:"backend"`
	KeyName   string `json:"keyName"`
	ClearText string `json:"clearText,omitempty"`
}

func GetUnencryptedSecretResource added in v0.1.0

func GetUnencryptedSecretResource() *UnencryptedSecret

func NewUnencryptedSecret added in v0.1.0

func NewUnencryptedSecret(context *api.ApiContext) *UnencryptedSecret

Jump to

Keyboard shortcuts

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