archive

package
v0.0.0-...-cdc1e65 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 23 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 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) error

Jump to

Keyboard shortcuts

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