func (a *MockAPI) Sync(ctx context.Context) error {
	return fmt.Errorf("not yet implemented")
}
Sync does nothing
package apimock
import (
	"context"
	"fmt"
	"github.com/gopasspw/gopass/internal/store/mockstore"
	"github.com/gopasspw/gopass/pkg/gopass"
)
type Secret struct {
	Buf []byte
}
func (m *Secret) Bytes() []byte {
	return m.Buf
}
type MockAPI struct {
	store *mockstore.MockStore
}
func New() *MockAPI {
	return &MockAPI{
		store: mockstore.New(""),
	}
}
func (a *MockAPI) String() string {
	return "mockapi"
}
func (a *MockAPI) List(ctx context.Context) ([]string, error) {
	return a.store.List(ctx, "")
}
func (a *MockAPI) Get(ctx context.Context, name, _ string) (gopass.Secret, error) {
	return a.store.Get(ctx, name)
}
func (a *MockAPI) Revisions(ctx context.Context, name string) ([]string, error) {
	rs, err := a.store.ListRevisions(ctx, name)
	if err != nil {
		return nil, err
	}
	revs := make([]string, 0, len(rs))
	for _, r := range rs {
		revs = append(revs, r.Hash)
	}
	return revs, nil
}
func (a *MockAPI) Set(ctx context.Context, name string, sec gopass.Byter) error {
	return a.store.Set(ctx, name, sec)
}
func (a *MockAPI) Remove(ctx context.Context, name string) error {
	return a.store.Delete(ctx, name)
}
func (a *MockAPI) RemoveAll(ctx context.Context, prefix string) error {
	return a.store.Prune(ctx, prefix)
}
func (a *MockAPI) Rename(ctx context.Context, src, dest string) error {
	return a.store.Move(ctx, src, dest)
}