tar

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName  = "backup"
	TypeName   = "input"
	ModuleName = "tar"
)

Module Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupInputTar

type BackupInputTar struct {
	core.Module
	// contains filtered or unexported fields
}

BackupInputTar is struct storing inner properties for mysql backups

func (*BackupInputTar) Close

func (b *BackupInputTar) Close() error

Close closes ...

func (*BackupInputTar) GetConfig

func (b *BackupInputTar) GetConfig() interface{}

GetConfig returns config of module

func (*BackupInputTar) GetGroup

func (b *BackupInputTar) GetGroup() core.ModuleGroup

GetGroup returns group

func (*BackupInputTar) GetName

func (b *BackupInputTar) GetName() string

GetName returns name of module

func (*BackupInputTar) GetType

func (b *BackupInputTar) GetType() core.ModuleType

GetType returns type

func (*BackupInputTar) InitModule

func (b *BackupInputTar) InitModule(cfg interface{}) error

InitModule initializes module

func (*BackupInputTar) InitPipe

func (b *BackupInputTar) InitPipe(w io.Writer, r io.Reader) error

InitPipe initializes pipe

func (*BackupInputTar) Run

func (b *BackupInputTar) Run(ctx context.Context) error

Run dumps database

type Config

type Config struct {
	DirectoryPath string
}

Jump to

Keyboard shortcuts

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