Documentation
¶
Index ¶
- Variables
- func DecodeArq(r io.Reader, i interface{}) error
- func NewEObjectReader(ur io.Reader, e *encryptionV3) io.Reader
- func Unlock(ctx context.Context, reader io.ReadCloser, passphrase string) (*encryptionV3, error)
- type ArqBlobKey
- type ArqNode
- type ArqPack
- type ArqPackIndex
- type ArqPackIndexObject
- type ArqPackObject
- type ArqTree
- type ArqTreeNode
- type ArqUnmarshaler
- type CompressionType
- type Computer
- func (c *Computer) List(ctx context.Context, dir string) (fs.DirEntries, error)
- func (c *Computer) ListFolders(ctx context.Context) ([]FolderInfo, error)
- func (c *Computer) NewObject(ctx context.Context, p string) (fs.Object, error)
- func (c *Computer) Open(ctx context.Context, passphrase string) error
- type ComputerInfo
- type Folder
- type FolderInfo
- type PaddedReader
- type RefEntry
- type RefListEntry
- type ShaHash
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ArqBlobKey ¶
type ArqNode ¶
type ArqNode struct {
IsTree bool
TreeContainsMissingItems bool
DataCompressionType CompressionType
XattrsCompressionType CompressionType
AclCompressionType CompressionType
DataBlobKeys []ArqBlobKey `arq:"len-uint32"`
DataSize uint64
XattrsBlobKey ArqBlobKey
XattrsSize uint64
AclBlobKey ArqBlobKey
Uid int32
Gid int32
Mode int32
Mtime time.Time `arq:"nsec"`
Flags int64
FinderFlags int32
ExtendedFinderFlags int32
FinderFileType string
FinderFileCreator string
IsFileExtensionHidden bool
StDev int32
StIno int32
StNlink uint32
StRdev int32
Ctime time.Time `arq:"nsec"`
CreateTime time.Time `arq:"nsec"`
StBlocks int64
StBlkSize uint32
}
type ArqPack ¶
type ArqPack struct {
Magic [4]byte
Version uint32
ObjectCount uint64
Objects []ArqPackObject
SHA1 [20]byte
}
type ArqPackIndex ¶
type ArqPackIndex struct {
Header [4]byte
Version uint32
Fanout [256]uint32
Objects []ArqPackIndexObject
SHA1 [20]byte
}
func (*ArqPackIndex) UnmarshalArq ¶
func (o *ArqPackIndex) UnmarshalArq(input io.Reader) error
type ArqPackIndexObject ¶
func (ArqPackIndexObject) String ¶
func (o ArqPackIndexObject) String() string
type ArqPackObject ¶
type ArqTree ¶
type ArqTree struct {
// 54 72 65 65 56 30 32 32 "TreeV022"
Header [8]byte
XattrsCompressionType CompressionType
AclCompressionType CompressionType
XattrsBlobKey ArqBlobKey
XattrsSize uint64
AclBlobKey ArqBlobKey
Uid int32
Gid int32
Mode int32
Mtime time.Time `arq:"nsec"`
Flags int64
FinderFlags int32
ExtendedFinderFlags int32
StDev int32
StIno int32
StNlink uint32
StRdev int32
Ctime time.Time `arq:"nsec"`
StBlocks int64
StBlkSize uint32
CreateTimeSec int64
CreateTimeNsec int64
MissingNodes []string `arq:"len-uint32"`
Nodes []ArqTreeNode `arq:"len-uint32"`
}
type ArqTreeNode ¶
type ArqUnmarshaler ¶
type CompressionType ¶
type CompressionType int32
const ( NoneCompression CompressionType = 0 GzipCompression CompressionType = 1 Lz4Compression CompressionType = 2 )
func (CompressionType) String ¶
func (ct CompressionType) String() string
type Computer ¶
type Computer struct {
Uuid string
Info ComputerInfo
// contains filtered or unexported fields
}
func ListComputers ¶
func (*Computer) ListFolders ¶
func (c *Computer) ListFolders(ctx context.Context) ([]FolderInfo, error)
type ComputerInfo ¶
type Folder ¶
type Folder struct {
// contains filtered or unexported fields
}
type FolderInfo ¶
type FolderInfo struct {
Endpoint string `plist:"Endpoint"`
BucketUuid string `plist:"BucketUUID"`
BucketName string `plist:"BucketName"`
ComputerUuid string `plist:"ComputerUUID"`
LocalPath string `plist:"LocalPath"`
LocalMountPoint string `plist:"LocalMountPoint"`
StorageType int `plist:"StorageType"`
SkipDuringBackup bool `plist:"SkipDuringBackup"`
ExcludeItemsWithTimeMachineExcludeMetadataFlag bool `plist:"ExcludeItemsWithTimeMachineExcludeMetadataFlag"`
// contains filtered or unexported fields
}
func (*FolderInfo) Folder ¶
func (fi *FolderInfo) Folder() *Folder
type PaddedReader ¶
type PaddedReader struct {
// contains filtered or unexported fields
}
func NewPaddedReader ¶
func NewPaddedReader(r io.Reader, blockSize int) *PaddedReader
type RefListEntry ¶
type RefListEntry struct {
Name int
// contains filtered or unexported fields
}
type ShaHash ¶
type ShaHash struct {
Contents [20]byte
}
func DecodeShaHash ¶
func DecodeShaHashString ¶
func WrapShaHash ¶
Click to show internal directories.
Click to hide internal directories.