Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClipHeaderLength = 54 ClipFileFormatVersion uint8 = 0x01 )
Variables ¶
View Source
var ( ErrFileHeaderMismatch = errors.New("unexpected file header") ErrCrcMismatch = errors.New("crc64 mismatch") ErrMissingArchiveRoot = errors.New("no root node found") )
View Source
var ClipFileStartBytes []byte = []byte{0x89, 0x43, 0x4C, 0x49, 0x50, 0x0D, 0x0A, 0x1A, 0x0A}
Functions ¶
This section is empty.
Types ¶
type ClipArchiveHeader ¶
type ClipArchiveMetadata ¶
type ClipArchiveMetadata struct { Header ClipArchiveHeader Index *btree.BTree StorageInfo ClipStorageInfo }
func (*ClipArchiveMetadata) Get ¶
func (m *ClipArchiveMetadata) Get(path string) *ClipNode
func (*ClipArchiveMetadata) Insert ¶
func (m *ClipArchiveMetadata) Insert(node *ClipNode)
func (*ClipArchiveMetadata) ListDirectory ¶
func (m *ClipArchiveMetadata) ListDirectory(path string) []fuse.DirEntry
type ClipNode ¶
type ClipNode struct { NodeType ClipNodeType Path string Attr fuse.Attr Target string ContentHash string DataPos int64 // Position of the nodes data in the final binary DataLen int64 // Length of the nodes data }
type ClipNodeType ¶
type ClipNodeType string
const ( DirNode ClipNodeType = "dir" FileNode ClipNodeType = "file" SymLinkNode ClipNodeType = "symlink" )
type ClipStorageInfo ¶
type S3StorageInfo ¶
Storage Info Implementations
func (S3StorageInfo) Encode ¶
func (ssi S3StorageInfo) Encode() ([]byte, error)
func (S3StorageInfo) Type ¶
func (ssi S3StorageInfo) Type() string
type StorageInfoWrapper ¶
Storage info is a structure containing data describing remote storage config
Click to show internal directories.
Click to hide internal directories.