mirror of
https://github.com/gopasspw/gopass.git
synced 2026-05-30 11:18:48 +02:00
16c071a780
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
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)
|
|
}
|