Documentation
¶
Index ¶
- func Open() *zipArchive
- func Restore(ctx context.Context, assets iter.Seq[asset.ArchivedAsset], ...) error
- func StoreAssets(ctx context.Context, sourcePath string, dest ArchiveDescriptor, ...) error
- type ArchiveDescriptor
- type OnlyNewAssets
- type RegisterArchivedAssets
- type RestoreOption
- type StoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Restore ¶
func Restore(ctx context.Context, assets iter.Seq[asset.ArchivedAsset], logger zerolog.Logger, opts ...RestoreOption) error
func StoreAssets ¶
Types ¶
type ArchiveDescriptor ¶
type OnlyNewAssets ¶
type RegisterArchivedAssets ¶
type RestoreOption ¶
type RestoreOption func(o *restoreOptions)
func WithRestoreDryRun ¶
func WithRestoreDryRun(dryRun bool) RestoreOption
type StoreOption ¶
type StoreOption func(o *storeOptions)
func WithDryRun ¶
func WithDryRun(dryRun bool) StoreOption
func WithIncludeLargeFiles ¶
func WithIncludeLargeFiles(include bool) StoreOption
If true, files larger than maxFileBytes will be stored.
func WithMaxFileBytes ¶
func WithMaxFileBytes(maxFileBytes int64) StoreOption
The maximum number of bytes (uncompressed) to store in a single archive.
func WithOnlyNewAssets ¶
func WithOnlyNewAssets(only OnlyNewAssets) StoreOption
func WithRegisterArchivedAssets ¶
func WithRegisterArchivedAssets(register RegisterArchivedAssets) StoreOption
Register the assets stored in the archive.
Click to show internal directories.
Click to hide internal directories.