archive

package
v0.0.0-...-297f53a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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 ClipArchiverOptions struct {
	Verbose     bool
	Compress    bool
	ArchivePath string
	SourcePath  string
	OutputFile  string
	OutputPath  string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL