local

package
v0.0.0-...-c32de3e Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFileInfo

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

func NewLocalFileInfo

func NewLocalFileInfo(f os.FileInfo) *LocalFileInfo

func (*LocalFileInfo) Hash

func (f *LocalFileInfo) Hash() string

func (*LocalFileInfo) IsDir

func (f *LocalFileInfo) IsDir() bool

func (*LocalFileInfo) MimeType

func (f *LocalFileInfo) MimeType() string

func (*LocalFileInfo) ModTime

func (f *LocalFileInfo) ModTime() time.Time

func (*LocalFileInfo) Name

func (f *LocalFileInfo) Name() string

func (*LocalFileInfo) Size

func (f *LocalFileInfo) Size() int64

func (*LocalFileInfo) Sys

func (f *LocalFileInfo) Sys() interface{}

type LocalStorage

type LocalStorage struct {
}

func NewLocalStorage

func NewLocalStorage() *LocalStorage

func (*LocalStorage) Append

func (m *LocalStorage) Append(path string, contents string, context storage.Context) (int64, error)

func (*LocalStorage) AppendBytes

func (m *LocalStorage) AppendBytes(path string, contents []byte, context storage.Context) (int64, error)

func (*LocalStorage) AppendStream

func (m *LocalStorage) AppendStream(path string, reader io.Reader, size int64, context storage.Context) error

func (*LocalStorage) Copy

func (m *LocalStorage) Copy(src string, dst string, context storage.Context) error

func (*LocalStorage) CreateDir

func (m *LocalStorage) CreateDir(dst string, context storage.Context) error

func (*LocalStorage) Delete

func (m *LocalStorage) Delete(dst string, context storage.Context) error

func (*LocalStorage) DeleteDir

func (m *LocalStorage) DeleteDir(dst string, context storage.Context) error

func (*LocalStorage) ListDir

func (m *LocalStorage) ListDir(dst string, ctx storage.Context) ([]storage.FileInfo, int64, error)

func (*LocalStorage) ReName

func (m *LocalStorage) ReName(path string, newPath string, context storage.Context) error

func (*LocalStorage) Stat

func (m *LocalStorage) Stat(path string, context storage.Context) (storage.FileInfo, error)

func (*LocalStorage) Write

func (m *LocalStorage) Write(path string, contents string, context storage.Context) (int64, error)

func (*LocalStorage) WriteBytes

func (m *LocalStorage) WriteBytes(path string, contents []byte, context storage.Context) (int64, error)

func (*LocalStorage) WriteStream

func (m *LocalStorage) WriteStream(path string, reader io.Reader, size int64, context storage.Context) error

Jump to

Keyboard shortcuts

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