Documentation
¶
Index ¶
- type BoxBackup
- func (b *BoxBackup) CheckVersion(version int32) error
- func (b *BoxBackup) CreateFile(curDir int64, name string) (*RemoteFile, error)
- func (b *BoxBackup) DeleteFile(d int64, fn string) error
- func (b *BoxBackup) Execute(op *Operation) (interface{}, error)
- func (b *BoxBackup) Finish() error
- func (b *BoxBackup) GetAccountUsage() error
- func (b *BoxBackup) GetBlockIndexByID(id int64) error
- func (b *BoxBackup) GetBlockIndexByName(d int64, fn string) error
- func (b *BoxBackup) GetFile(d, id int64) (*RemoteFile, error)
- func (b *BoxBackup) GetObject(id int64) (*RemoteFile, error)
- func (b *BoxBackup) GetObjectName(d, id int64) ([]string, error)
- func (b *BoxBackup) GetStream() (*Stream, error)
- func (b *BoxBackup) HandleError(ret *proto.Error) error
- func (b *BoxBackup) Login(user int32, ro bool) error
- func (b *BoxBackup) OpenFile(curDir, id int64) (*RemoteFile, error)
- func (b *BoxBackup) ReadDir(id int64) ([]*RemoteFile, error)
- func (b *BoxBackup) StoreFile(d, m, a int64, fn string, fc []byte) error
- type Config
- type Operation
- type RemoteFile
- func (f *RemoteFile) Close() error
- func (f *RemoteFile) Commit() error
- func (f *RemoteFile) IsDir() bool
- func (f *RemoteFile) ModTime() time.Time
- func (f *RemoteFile) Mode() os.FileMode
- func (f *RemoteFile) Name() string
- func (f *RemoteFile) Read(p []byte) (int, error)
- func (f *RemoteFile) Size() int64
- func (f *RemoteFile) Sys() interface{}
- func (f *RemoteFile) Write(p []byte) (int, error)
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxBackup ¶
type BoxBackup struct {
// contains filtered or unexported fields
}
func (*BoxBackup) CheckVersion ¶
func (*BoxBackup) CreateFile ¶
func (b *BoxBackup) CreateFile(curDir int64, name string) (*RemoteFile, error)
func (*BoxBackup) Execute ¶
Takes one of the structures defined in proto.go and writes them to the wire, gets reponse from the server and packs it into an appropriate struct.
func (*BoxBackup) GetAccountUsage ¶
func (*BoxBackup) GetBlockIndexByID ¶
func (*BoxBackup) GetBlockIndexByName ¶
type RemoteFile ¶
type RemoteFile struct { Id int64 ParentId int64 UID uint32 GID uint32 Flags int16 ModificationTime time.Time AttributesModTime time.Time FileGenerationNumber uint32 Symlink string // contains filtered or unexported fields }
RemoteFile structure implements os.FileInfo interface.
func (*RemoteFile) Close ¶
func (f *RemoteFile) Close() error
func (*RemoteFile) Commit ¶
func (f *RemoteFile) Commit() error
func (*RemoteFile) Size ¶
func (f *RemoteFile) Size() int64
length in bytes for regular files; system-dependent for others
func (*RemoteFile) Sys ¶
func (f *RemoteFile) Sys() interface{}
underlying data source (can return nil)
Click to show internal directories.
Click to hide internal directories.