Documentation ¶
Index ¶
Constants ¶
View Source
const ( FileType_Invalid int = iota + 1 FileType_Object FileType_Directory )
Variables ¶
This section is empty.
Functions ¶
func GetAllParents ¶
Types ¶
type DUTree ¶
func (*DUTree) ToDiskUsages ¶
type FileObject ¶
type FileObject struct { System ISystem Bucket string Prefix string Remote bool Attributes *Attrs // contains filtered or unexported fields }
func ParseFileObject ¶
func ParseFileObject(path string) *FileObject
func (*FileObject) FileType ¶
func (fo *FileObject) FileType() int
func (*FileObject) GetFullPath ¶ added in v1.0.5
func (fo *FileObject) GetFullPath() string
func (*FileObject) SetAttributes ¶
func (fo *FileObject) SetAttributes(attrs *Attrs)
func (*FileObject) SetInvalid ¶
func (fo *FileObject) SetInvalid()
type ISystem ¶
type ISystem interface { Init(buckets ...string) error Scheme() string Attributes(bucket, prefix string) (*Attrs, error) BatchAttributes(bucket, prefix string, recursive bool) ([]*Attrs, error) List(bucket, prefix string, recursive bool) ([]*FileObject, error) DiskUsage(bucket, prefix string, recursive bool) ([]DiskUsage, error) Delete(bucket, prefix string) error Copy(srcBucket, srcPrefix, dstBucket, dstPrefix string) error Download(bucket, prefix, dstFile string, forceChecksum bool, ctx RunContext) error Upload(srcFile, bucket, object string, ctx RunContext) error Move(srcBucket, srcPrefix, dstBucket, dstPrefix string) error Cat(bucket, prefix string) ([]byte, error) IsObject(bucket, prefix string) (bool, error) IsDirectory(bucket, prefix string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.