packager

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name          string    `json:"name"`
	Time          time.Time `json:"time"`
	Extension     string    `json:"extension"`
	ChunkSuffixes []string  `json:"chunkSuffixes"`
}

func NewPackage

func NewPackage(name string, packageTime time.Time) *Package

func (*Package) BaseName

func (p *Package) BaseName() string

func (*Package) FileNames

func (p *Package) FileNames() []string

type Packager

type Packager struct {
	Config config.ModelConfig
}

func (*Packager) Run

func (p *Packager) Run(backupPackage *Package) (err error)

type Splitter

type Splitter struct {
	Config       config.ModelConfig
	Package      *Package
	ChunkSize    int
	SuffixLength int
}

func (*Splitter) AfterPackaging

func (s *Splitter) AfterPackaging() error

func (*Splitter) Split

func (s *Splitter) Split(r io.Reader) (err error)

Jump to

Keyboard shortcuts

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