general

package
v0.0.0-...-f01ac60 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralStorage

type GeneralStorage struct {
	store.Store
	// contains filtered or unexported fields
}

func New

func New(s store.Store, w string) *GeneralStorage

func (*GeneralStorage) Cat

func (m *GeneralStorage) Cat(path string) (*store.KVPair, error)

{{{ implement Command interface

func (*GeneralStorage) Dump

func (m *GeneralStorage) Dump(path string) ([]byte, error)

func (*GeneralStorage) Ls

func (m *GeneralStorage) Ls(path string) ([]*store.KVPair, error)

func (*GeneralStorage) Mkdir

func (m *GeneralStorage) Mkdir(path string, opt *lib.MkdirOption) error

func (*GeneralStorage) Restore

func (m *GeneralStorage) Restore(archive []byte) error

func (*GeneralStorage) Rm

func (m *GeneralStorage) Rm(path string, recursive bool) error

func (*GeneralStorage) Touch

func (m *GeneralStorage) Touch(path string, data []byte, opts *store.WriteOptions) error

Jump to

Keyboard shortcuts

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