Documentation ¶
Overview ¶
Package inmem implements an in memory storage backend for tests.
Index ¶
- type InMem
- func (m *InMem) Add(ctx context.Context, args ...string) error
- func (m *InMem) AddRemote(ctx context.Context, remote, url string) error
- func (m *InMem) Cmd(ctx context.Context, name string, args ...string) error
- func (m *InMem) Commit(ctx context.Context, msg string) error
- func (m *InMem) Compact(context.Context) error
- func (m *InMem) Delete(ctx context.Context, name string) error
- func (m *InMem) Exists(ctx context.Context, name string) bool
- func (m *InMem) Fsck(ctx context.Context) error
- func (m *InMem) Get(ctx context.Context, name string) ([]byte, error)
- func (m *InMem) GetRevision(context.Context, string, string) ([]byte, error)
- func (m *InMem) Init(context.Context, string, string) error
- func (m *InMem) InitConfig(context.Context, string, string) error
- func (m *InMem) IsDir(ctx context.Context, name string) bool
- func (m *InMem) Link(context.Context, string, string) error
- func (m *InMem) List(ctx context.Context, prefix string) ([]string, error)
- func (m *InMem) Name() string
- func (m *InMem) Path() string
- func (m *InMem) Prune(ctx context.Context, prefix string) error
- func (m *InMem) Pull(ctx context.Context, origin, branch string) error
- func (m *InMem) Push(ctx context.Context, origin, branch string) error
- func (m *InMem) RemoveRemote(ctx context.Context, remote string) error
- func (m *InMem) Revisions(context.Context, string) ([]backend.Revision, error)
- func (m *InMem) Set(ctx context.Context, name string, value []byte) error
- func (m *InMem) Status(context.Context) ([]byte, error)
- func (m *InMem) String() string
- func (m *InMem) Version(context.Context) semver.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMem ¶
InMem is a in-memory store
func (*InMem) GetRevision ¶
GetRevision is not implemented
func (*InMem) InitConfig ¶
InitConfig does nothing
func (*InMem) RemoveRemote ¶
RemoveRemote does nothing
Click to show internal directories.
Click to hide internal directories.