Documentation ¶
Index ¶
- Constants
- type ClipArchiver
- func (ca *ClipArchiver) Create(opts ClipArchiverOptions) error
- func (ca *ClipArchiver) CreateRemoteArchive(storageInfo common.ClipStorageInfo, metadata *common.ClipArchiveMetadata, ...) error
- func (ca *ClipArchiver) DecodeHeader(headerBytes []byte) (*common.ClipArchiveHeader, error)
- func (ca *ClipArchiver) EncodeHeader(header *common.ClipArchiveHeader) ([]byte, error)
- func (ca *ClipArchiver) EncodeIndex(index *btree.BTree) ([]byte, error)
- func (ca *ClipArchiver) Extract(opts ClipArchiverOptions) error
- func (ca *ClipArchiver) ExtractMetadata(archivePath string) (*common.ClipArchiveMetadata, error)
- type ClipArchiverOptions
- type InodeGenerator
- type RClipArchiver
Constants ¶
View Source
const ChecksumLength = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClipArchiver ¶
type ClipArchiver struct { }
func NewClipArchiver ¶
func NewClipArchiver() *ClipArchiver
func (*ClipArchiver) Create ¶
func (ca *ClipArchiver) Create(opts ClipArchiverOptions) error
func (*ClipArchiver) CreateRemoteArchive ¶
func (ca *ClipArchiver) CreateRemoteArchive(storageInfo common.ClipStorageInfo, metadata *common.ClipArchiveMetadata, outputFile string) error
func (*ClipArchiver) DecodeHeader ¶
func (ca *ClipArchiver) DecodeHeader(headerBytes []byte) (*common.ClipArchiveHeader, error)
func (*ClipArchiver) EncodeHeader ¶
func (ca *ClipArchiver) EncodeHeader(header *common.ClipArchiveHeader) ([]byte, error)
func (*ClipArchiver) EncodeIndex ¶
func (ca *ClipArchiver) EncodeIndex(index *btree.BTree) ([]byte, error)
func (*ClipArchiver) Extract ¶
func (ca *ClipArchiver) Extract(opts ClipArchiverOptions) error
func (*ClipArchiver) ExtractMetadata ¶
func (ca *ClipArchiver) ExtractMetadata(archivePath string) (*common.ClipArchiveMetadata, error)
type ClipArchiverOptions ¶
type InodeGenerator ¶
type InodeGenerator struct {
// contains filtered or unexported fields
}
InodeGenerator generates unique inodes for each ClipNode
func (*InodeGenerator) Next ¶
func (ig *InodeGenerator) Next() uint64
type RClipArchiver ¶
type RClipArchiver struct { ClipArchiver *ClipArchiver StorageInfo common.ClipStorageInfo }
func NewRClipArchiver ¶
func NewRClipArchiver(si common.ClipStorageInfo) (*RClipArchiver, error)
func (*RClipArchiver) Create ¶
func (rca *RClipArchiver) Create(archivePath string, outputPath string, credentials storage.ClipStorageCredentials, progressChan chan<- int) error
Click to show internal directories.
Click to hide internal directories.