Documentation
¶
Index ¶
Constants ¶
View Source
const (
AgeEncryption = Encryption("age")
)
View Source
const (
AgeIdentityProvider = "age"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryption ¶
type Encryption string
type Identity ¶
type Identity struct {
Provider
Recipient
PrivateKey
}
type Manager ¶
type Manager interface {
// GenerateIdentity creates new identity
GenerateIdentity(encryption Encryption) (Identity, error)
// PrivateKey returns private key from host
PrivateKey(key Recipient) (PrivateKey, error)
EncryptService(encryption Encryption) (Service, error)
ImportRawIdentity(provider Provider, data []byte) (Identity, error)
ExportRawIdentity(identity Identity) ([]byte, error)
}
type PrivateKey ¶
type PrivateKey []byte
func (PrivateKey) String ¶
func (k PrivateKey) String() string
Click to show internal directories.
Click to hide internal directories.