Documentation ¶
Index ¶
- func HandleCatObject(objectPath string, folder storage.Folder, decrypt, decompress bool)
- func HandleCheckRead(folder storage.Folder, filenames []string)
- func HandleCheckWrite(folder storage.Folder)
- func HandleDeleteObject(objectPath string, folder storage.Folder)
- func HandleFolderList(folder storage.Folder, recursive bool)
- func HandleGetObject(objectPath, dstPath string, folder storage.Folder, decrypt, decompress bool)
- func HandlePutObject(localPath, dstPath string, uploader *internal.Uploader, ...)
- func WriteObjectsList(objects []ListElement, output io.Writer) error
- type ListDirectory
- type ListElement
- type ListElementType
- type ListObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCatObject ¶
func HandleCheckRead ¶
func HandleCheckWrite ¶
func HandleDeleteObject ¶
func HandleFolderList ¶
func HandleGetObject ¶
func HandlePutObject ¶
func WriteObjectsList ¶
func WriteObjectsList(objects []ListElement, output io.Writer) error
Types ¶
type ListDirectory ¶
type ListDirectory struct {
// contains filtered or unexported fields
}
func NewListDirectory ¶
func NewListDirectory(folder storage.Folder, rootFolder storage.Folder) *ListDirectory
func (*ListDirectory) GetLastModified ¶
func (ld *ListDirectory) GetLastModified() time.Time
func (*ListDirectory) GetName ¶
func (ld *ListDirectory) GetName() string
func (*ListDirectory) GetSize ¶
func (ld *ListDirectory) GetSize() int64
func (*ListDirectory) Type ¶
func (ld *ListDirectory) Type() ListElementType
type ListElement ¶
type ListElement interface { storage.Object Type() ListElementType }
type ListElementType ¶
type ListElementType string
const ( Object ListElementType = "obj" Directory ListElementType = "dir" )
type ListObject ¶
func NewListObject ¶
func NewListObject(object storage.Object) *ListObject
func (*ListObject) Type ¶
func (lo *ListObject) Type() ListElementType
Click to show internal directories.
Click to hide internal directories.