zip

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFileSystem

type CacheFileSystem struct {
	// contains filtered or unexported fields
}

func NewCacheFileSystem

func NewCacheFileSystem(cacheDir string) (*CacheFileSystem, error)

func NewModelCache

func NewModelCache(user string, modelName string) (*CacheFileSystem, error)

func (*CacheFileSystem) GetHashes

func (c *CacheFileSystem) GetHashes() ([]string, error)

type CachingZip

type CachingZip struct {
	// contains filtered or unexported fields
}

func NewCachingZip

func NewCachingZip() *CachingZip

func (*CachingZip) ReaderUnarchive

func (z *CachingZip) ReaderUnarchive(source io.Reader, size int64, destination string, cacheFS *CacheFileSystem) error

func (*CachingZip) WriterArchive

func (z *CachingZip) WriterArchive(source string, destination io.Writer, cachedHashes []string) error

Jump to

Keyboard shortcuts

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