Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct {
ID string `json:"id"`
}
ID provides a implementation of the Keyed interface. It can be embedded in another structure to build custom Keyed values.
type Keyed ¶
type Keyed interface { // Key is the byte representation of the key. Key() []byte // Namespace is the namespace to use when storing the key. Namespace() string // ValidKey returns nil if the key is valid, otherwise ErrInvalidKey. ValidKey() error }
Keyed provides a management interface for keyed values.
type Secure ¶
type Secure struct { ID Data []byte `json:"data,secure"` Metadata map[string]interface{} `json:"metadata"` }
Secure provides a simple value for storing sparsely encrypted blobs and plaintext metadata.
func NewSecureValue ¶
NewSecureValue returns a new Secure value.
func (*Secure) GetMetadata ¶
GetMetadata gets the metadata entry for k and returns it as v.
func (*Secure) SetMetadata ¶
SetMetadata sets the metadata entry for k to v.
Click to show internal directories.
Click to hide internal directories.