Documentation ¶
Index ¶
- Constants
- Variables
- func Collect(ctx context.Context) (*memfs.FS, error)
- func Decrypt(ctx context.Context, keyDir fs.FS, src io.Reader) ([]byte, error)
- func DecryptAsFS(ctx context.Context, keyDir fs.FS, archive io.Reader) (fs.FS, error)
- func EnsureKeysDir(ctx context.Context) (fnfs.LocalFS, error)
- func Key(key string) (*age.X25519Identity, error)
- func KeysDir() (fnfs.LocalFS, error)
- func Select(ctx context.Context, key string) (*age.X25519Identity, error)
- func Visit(ctx context.Context, keysDir fs.FS, callback func(*age.X25519Identity) error) error
- type Reader
Constants ¶
View Source
const SnapshotKeys = "fn.keys"
Variables ¶
View Source
var ErrKeyGen = fnerrors.UsageError("Please run `ns keys generate` to generate a new identity.", "Decryption requires that at least one identity to be configured.")
Functions ¶
func DecryptAsFS ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.