Versions in this module Expand all Collapse all v0 v0.1.1 Jul 30, 2024 v0.1.0 May 16, 2022 Changes in this version + const CompressionFormatBrotliKey + const CompressionFormatBzip2Key + const CompressionFormatBzip2ParallelKey + const CompressionFormatGZipKey + const CompressionFormatLZ4Key + const CompressionFormatParallelGZipKey + const CompressionFormatZStandardKey + const CompressionLevelBalancedKey + const CompressionLevelFastestKey + const CompressionLevelSmallestKey + const EncryptionFormatAgeKey + const EncryptionFormatPGPKey + const FileSystemCacheTypeDir + const FileSystemCacheTypeMemory + const FileSystemNameSTFS + const HeaderEventTypeArchive + const HeaderEventTypeDelete + const HeaderEventTypeMove + const HeaderEventTypeRestore + const HeaderEventTypeUpdate + const MagneticTapeBlockSize + const NoneKey + const SignatureFormatMinisignKey + const SignatureFormatPGPKey + const WriteCacheTypeFile + const WriteCacheTypeMemory + var ErrCompressionFormatRegularOnly = errors.New("compression format only supports regular files, not tape drives") + var ErrCompressionFormatRequiresLargerRecordSize = errors.New("compression format requires larger record size") + var ErrCompressionFormatUnknown = errors.New("compression format unknown") + var ErrCompressionFormatUnsupported = errors.New("compression format unsupported") + var ErrCompressionLevelUnknown = errors.New("compression level unknown") + var ErrCompressionLevelUnsupported = errors.New("compression level unsupported") + var ErrDirectoryNotEmpty = errors.New("directory not empty") + var ErrEncryptionFormatUnknown = errors.New("encryption format unknown") + var ErrEncryptionFormatUnsupported = errors.New("encryption format unsupported") + var ErrFileSystemCacheTypeUnknown = errors.New("file system cache type unknown") + var ErrFileSystemCacheTypeUnsupported = errors.New("file system cache type unsupported") + var ErrIdentityUnparsable = errors.New("identity could not be parsed") + var ErrIsDirectory = errors.New("is a directory") + var ErrIsFile = errors.New("is a file") + var ErrKeygenFormatUnsupported = errors.New("key generation for format unsupported") + var ErrNoRootDirectory = errors.New("root directory could not be found") + var ErrNotImplemented = errors.New("not implemented") + var ErrRecipientUnparsable = errors.New("recipient could not be parsed") + var ErrSTFSActionUnsupported = errors.New("STFS action unsupported") + var ErrSTFSVersionUnsupported = errors.New("STFS version unsupported") + var ErrSignatureFormatRegularOnly = errors.New("signature format only supports regular files, not tape drives") + var ErrSignatureFormatUnknown = errors.New("signature format unknown") + var ErrSignatureFormatUnsupported = errors.New("signature format unsupported") + var ErrSignatureInvalid = errors.New("signature invalid") + var ErrSignatureMissing = errors.New("signature missing") + var ErrTapeDrivesUnsupported = errors.New("system unsupported for tape drives") + var ErrTarHeaderEmbeddedMissing = errors.New("embedded tar header missing") + var ErrTarHeaderMissing = errors.New("tar header missing") + var ErrWriteCacheTypeUnknown = errors.New("write cache type unknown") + var ErrWriteCacheTypeUnsupported = errors.New("write cache type unsupported") + var KnownCompressionFormats = []string + var KnownCompressionLevels = []string + var KnownEncryptionFormats = []string + var KnownFileSystemCacheTypes = []string + var KnownSignatureFormats = []string + var KnownWriteCacheTypes = []string + type BackendConfig struct + CloseReader func() error + CloseWriter func() error + GetReader func() (DriveReaderConfig, error) + GetWriter func() (DriveWriterConfig, error) + MagneticTapeIO MagneticTapeIO + type CryptoConfig struct + Identity interface{} + Password string + Recipient interface{} + type DriveReaderConfig struct + Drive ReadSeekFder + DriveIsRegular bool + type DriveWriterConfig struct + Drive io.Writer + DriveIsRegular bool + type FileConfig struct + GetFile func() (io.ReadSeekCloser, error) + Info fs.FileInfo + Link string + Path string + type Header struct + Accesstime time.Time + Block int64 + Changetime time.Time + Deleted int64 + Devmajor int64 + Devminor int64 + Format int64 + Gid int64 + Gname string + Lastknownblock int64 + Lastknownrecord int64 + Linkname string + Mode int64 + Modtime time.Time + Name string + Paxrecords string + Record int64 + Size int64 + Typeflag int64 + UID int64 + Uname string + type HeaderEvent struct + Header *Header + Indexed bool + Type string + type MagneticTapeIO interface + EjectTape func(fd uintptr) error + GetCurrentRecordFromTape func(fd uintptr) (int64, error) + GoToEndOfTape func(fd uintptr) error + GoToNextFileOnTape func(fd uintptr) error + SeekToRecordOnTape func(fd uintptr, record int32) error + type MetadataConfig struct + Metadata MetadataPersister + type MetadataPersister interface + DeleteHeader func(ctx context.Context, name string, lastknownrecord, lastknownblock int64) (*Header, error) + GetHeader func(ctx context.Context, name string) (*Header, error) + GetHeaderByLinkname func(ctx context.Context, linkname string) (*Header, error) + GetHeaderChildren func(ctx context.Context, name string) ([]*Header, error) + GetHeaderDirectChildren func(ctx context.Context, name string, limit int) ([]*Header, error) + GetHeaders func(ctx context.Context) ([]*Header, error) + GetLastIndexedRecordAndBlock func(ctx context.Context, recordSize int) (int64, int64, error) + GetRootPath func(ctx context.Context) (string, error) + MoveHeader func(ctx context.Context, oldName string, newName string, ...) error + PurgeAllHeaders func(ctx context.Context) error + UpdateHeaderMetadata func(ctx context.Context, dbhdr *Header) error + UpsertHeader func(ctx context.Context, dbhdr *Header, initializing bool) error + type PasswordConfig struct + Password string + type PipeConfig struct + Compression string + Encryption string + RecordSize int + Signature string + type ReadSeekFder interface + Fd func() uintptr