archiver

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 7 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 interface {
	runnable.Runnable
	Archive(sourceFile string) error
}

type ArchiverOpt

type ArchiverOpt func(*LogArchiver) error

func SetBackupDelay

func SetBackupDelay(delay time.Duration) ArchiverOpt

func SetBackupExt

func SetBackupExt(ext string) ArchiverOpt

type LogArchiver

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

func NewLogArchiver

func NewLogArchiver(backupDir string, options ...ArchiverOpt) (*LogArchiver, error)

func (*LogArchiver) Archive

func (la *LogArchiver) Archive(sourceFile string) error

func (*LogArchiver) Init

func (la *LogArchiver) Init() error

func (*LogArchiver) Run

func (la *LogArchiver) Run() error

func (*LogArchiver) Shutdown

func (la *LogArchiver) Shutdown()

Jump to

Keyboard shortcuts

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