Documentation
¶
Index ¶
- type LocalFileInfo
- type LocalStorage
- func (m *LocalStorage) Append(path string, contents string, context storage.Context) (int64, error)
- func (m *LocalStorage) AppendBytes(path string, contents []byte, context storage.Context) (int64, error)
- func (m *LocalStorage) AppendStream(path string, reader io.Reader, size int64, context storage.Context) error
- func (m *LocalStorage) Copy(src string, dst string, context storage.Context) error
- func (m *LocalStorage) CreateDir(dst string, context storage.Context) error
- func (m *LocalStorage) Delete(dst string, context storage.Context) error
- func (m *LocalStorage) DeleteDir(dst string, context storage.Context) error
- func (m *LocalStorage) ListDir(dst string, ctx storage.Context) ([]storage.FileInfo, int64, error)
- func (m *LocalStorage) ReName(path string, newPath string, context storage.Context) error
- func (m *LocalStorage) Stat(path string, context storage.Context) (storage.FileInfo, error)
- func (m *LocalStorage) Write(path string, contents string, context storage.Context) (int64, error)
- func (m *LocalStorage) WriteBytes(path string, contents []byte, context storage.Context) (int64, error)
- func (m *LocalStorage) WriteStream(path string, reader io.Reader, size int64, context storage.Context) error
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.