Documentation ¶
Index ¶
- type Folder
- func (f *Folder) CopyObject(srcPath string, dstPath string) error
- func (f *Folder) DeleteObjects(objectRelativePaths []string) error
- func (f *Folder) Exists(objectRelativePath string) (bool, error)
- func (f *Folder) GetPath() string
- func (f *Folder) GetSubFolder(subFolderRelativePath string) storage.Folder
- func (f *Folder) ListFolder() (objects []storage.Object, subFolders []storage.Folder, err error)
- func (f *Folder) PutObject(name string, content io.Reader) error
- func (f *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Folder ¶
type Folder struct { MemFolder *memory.Folder GetPathMock func() string ListFolderMock func() (objects []storage.Object, subFolders []storage.Folder, err error) DeleteObjectsMock func(objectRelativePaths []string) error ExistsMock func(objectRelativePath string) (bool, error) GetSubFolderMock func(subFolderRelativePath string) storage.Folder ReadObjectMock func(objectRelativePath string) (io.ReadCloser, error) PutObjectMock func(name string, content io.Reader) error CopyObjectMock func(srcPath string, dstPath string) error }
func (*Folder) DeleteObjects ¶
func (*Folder) GetSubFolder ¶
func (*Folder) ListFolder ¶
func (*Folder) ReadObject ¶
func (f *Folder) ReadObject(objectRelativePath string) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.