archive

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

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

Archiver consolidates templates into archives

func NewArchiver

func NewArchiver(opts config.Opts, rw readWriter, date time.Time) *Archiver

NewArchiver constructs a new Archiver

func (*Archiver) Add

func (a *Archiver) Add(date time.Time) error

Add adds a template corresponding to a date to the archive

func (*Archiver) GetArchivedFiles

func (a *Archiver) GetArchivedFiles() []string

GetArchivedFiles returns the files that have been archived

func (*Archiver) Write

func (a *Archiver) Write() error

Write writes all of the archive templates stored in the Archiver

Jump to

Keyboard shortcuts

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