gopass: Index | Files

package fs

import ""


Package Files

fsck.go loader.go store.go

type Store Uses

type Store struct {
    // contains filtered or unexported fields

Store is a fs based store

func New Uses

func New(dir string) *Store

New creates a new store

func (*Store) Available Uses

func (s *Store) Available(ctx context.Context) error

Available will check if this backend is useable

func (*Store) Delete Uses

func (s *Store) Delete(ctx context.Context, name string) error

Delete removes the named entity

func (*Store) Exists Uses

func (s *Store) Exists(ctx context.Context, name string) bool

Exists checks if the named entity exists

func (*Store) Fsck Uses

func (s *Store) Fsck(ctx context.Context) error

Fsck checks the storage integrity

func (*Store) Get Uses

func (s *Store) Get(ctx context.Context, name string) ([]byte, error)

Get retrieves the named content

func (*Store) IsDir Uses

func (s *Store) IsDir(ctx context.Context, name string) bool

IsDir returns true if the named entity is a directory

func (*Store) List Uses

func (s *Store) List(ctx context.Context, prefix string) ([]string, error)

List returns a list of all entities

func (*Store) Name Uses

func (s *Store) Name() string

Name returns the name of this backend

func (*Store) Prune Uses

func (s *Store) Prune(ctx context.Context, prefix string) error

Prune removes a named directory

func (*Store) Set Uses

func (s *Store) Set(ctx context.Context, name string, value []byte) error

Set writes the given content

func (*Store) String Uses

func (s *Store) String() string

String implements fmt.Stringer

func (*Store) Version Uses

func (s *Store) Version(context.Context) semver.Version

Version returns the version of this backend

Package fs imports 13 packages (graph). Updated 2019-08-27. Refresh now. Tools for package owners.