-
-
Notifications
You must be signed in to change notification settings - Fork 480
/
rcs.go
78 lines (63 loc) · 1.71 KB
/
rcs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package fs
import (
"context"
"time"
"github.com/gopasspw/gopass/internal/backend"
"github.com/gopasspw/gopass/internal/store"
)
// Add does nothing
func (s *Store) Add(ctx context.Context, args ...string) error {
return store.ErrGitNotInit
}
// Commit does nothing
func (s *Store) Commit(ctx context.Context, msg string) error {
return store.ErrGitNotInit
}
// Push does nothing
func (s *Store) Push(ctx context.Context, origin, branch string) error {
return store.ErrGitNotInit
}
// Pull does nothing
func (s *Store) Pull(ctx context.Context, origin, branch string) error {
return store.ErrGitNotInit
}
// Cmd does nothing
func (s *Store) Cmd(ctx context.Context, name string, args ...string) error {
return nil
}
// Init does nothing
func (s *Store) Init(context.Context, string, string) error {
return backend.ErrNotSupported
}
// InitConfig does nothing
func (s *Store) InitConfig(context.Context, string, string) error {
return nil
}
// AddRemote does nothing
func (s *Store) AddRemote(ctx context.Context, remote, url string) error {
return nil
}
// RemoveRemote does nothing
func (s *Store) RemoveRemote(ctx context.Context, remote string) error {
return nil
}
// Revisions is not implemented
func (s *Store) Revisions(context.Context, string) ([]backend.Revision, error) {
return []backend.Revision{
{
Hash: "latest",
Date: time.Now(),
}}, nil
}
// GetRevision is not implemented
func (s *Store) GetRevision(context.Context, string, string) ([]byte, error) {
return []byte("foo\nbar"), nil
}
// Status is not implemented
func (s *Store) Status(context.Context) ([]byte, error) {
return []byte(""), nil
}
// Compact is not implemented
func (s *Store) Compact(context.Context) error {
return nil
}