Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("Volume not found") ErrAlreadyExist = errors.New("Volume already exists") )
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func (*MemoryStore) Del ¶
func (m *MemoryStore) Del(name string) error
func (*MemoryStore) Set ¶
func (m *MemoryStore) Set(volume *Volume) error
func (*MemoryStore) Setx ¶
func (m *MemoryStore) Setx(volume *Volume) error
type Store ¶
type Store interface { Get(string) (*Volume, error) Set(*Volume) error Setx(*Volume) error Del(string) error }
func NewMemoryStore ¶
func NewMemoryStore() Store
Click to show internal directories.
Click to hide internal directories.