17 lines
413 B
Go
17 lines
413 B
Go
package secret
|
|
|
|
import (
|
|
"filippo.io/age"
|
|
)
|
|
|
|
// Unlocker interface defines the methods all unlocker types must implement
|
|
type Unlocker interface {
|
|
GetIdentity() (*age.X25519Identity, error)
|
|
GetType() string
|
|
GetMetadata() UnlockerMetadata
|
|
GetDirectory() string
|
|
GetID() string
|
|
ID() string // Generate ID from the unlocker's public key
|
|
Remove() error // Remove the unlocker and any associated resources
|
|
}
|