stores

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVByte

type KVByte struct {
	Key   string
	Bytes []byte
}

func (*KVByte) String

func (kv *KVByte) String() string

type KVBytes

type KVBytes []*KVByte

type MockRepo added in v0.2.3

type MockRepo struct {
	// contains filtered or unexported fields
}

func (*MockRepo) Clone added in v0.2.3

func (mr *MockRepo) Clone() error

func (*MockRepo) Commit added in v0.2.3

func (mr *MockRepo) Commit(bts []byte, msg string) error

func (*MockRepo) Create added in v0.2.3

func (mr *MockRepo) Create() error

func (*MockRepo) CurrentSHA added in v0.2.3

func (mr *MockRepo) CurrentSHA() (string, error)

func (*MockRepo) Enabled added in v0.2.3

func (mr *MockRepo) Enabled() bool

func (*MockRepo) Exists added in v0.2.3

func (mr *MockRepo) Exists() bool

func (*MockRepo) Init added in v0.2.3

func (mr *MockRepo) Init()

func (*MockRepo) Pull added in v0.2.3

func (mr *MockRepo) Pull() error

func (*MockRepo) Push added in v0.2.3

func (mr *MockRepo) Push() error

type MockStore added in v0.2.3

type MockStore struct {
	Item  *KVByte
	Items KVBytes
	Err   error
}

func NewMockStore added in v0.2.3

func NewMockStore(ft *models.Feature, err error) (ms *MockStore)

func (*MockStore) Delete added in v0.2.3

func (ms *MockStore) Delete(key string) error

func (*MockStore) Get added in v0.2.3

func (ms *MockStore) Get(key string) (*KVByte, error)

func (*MockStore) List added in v0.2.3

func (ms *MockStore) List(prefix string) (KVBytes, error)

func (*MockStore) Put added in v0.2.3

func (ms *MockStore) Put(key string, bts []byte) error

func (*MockStore) Set added in v0.2.3

func (ms *MockStore) Set(key string, bts []byte) error

type StoreIFace

type StoreIFace interface {
	List(prefix string) (KVBytes, error)
	Get(key string) (*KVByte, error)
	Delete(key string) error
	Set(key string, bts []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL