mirror of
https://github.com/gopasspw/gopass.git
synced 2025-12-08 19:24:54 +00:00
15 lines
291 B
Go
15 lines
291 B
Go
package root
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gopasspw/gopass/pkg/gopass"
|
|
)
|
|
|
|
// Set encodes and write the ciphertext of one entry to disk.
|
|
func (r *Store) Set(ctx context.Context, name string, sec gopass.Byter) error {
|
|
store, name := r.getStore(name)
|
|
|
|
return store.Set(ctx, name, sec)
|
|
}
|