deploy

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingFile error = Error("missing file")
View Source
var ErrTooManyFiles error = Error("too many files collected")
View Source
var ErrUnexpectedFile error = Error("unexpected file")
View Source
var ErrUnexpectedFileSize error = Error("unexpected file size")

Functions

func ExtractFiles

func ExtractFiles(r io.Reader, files []models.FileEntry, handle func(models.FileEntry, io.Reader) error) error

Types

type Collector

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

func NewCollector

func NewCollector(modTime time.Time, tarfile *os.File) (coll *Collector, err error)

func (*Collector) AddDir

func (c *Collector) AddDir(path string)

func (*Collector) AddFile

func (c *Collector) AddFile(path string, data []byte) error

func (*Collector) Close

func (c *Collector) Close()

func (*Collector) Collect

func (c *Collector) Collect(fsys fs.FS, dir string) error

func (*Collector) Files

func (c *Collector) Files() []models.FileEntry

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type FileHash

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

func NewFileHash

func NewFileHash() *FileHash

func (*FileHash) Sum

func (h *FileHash) Sum() string

func (*FileHash) Write

func (h *FileHash) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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