etcd

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: 6 Imported by: 0

Documentation

Index

Constants

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

Module Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupInputEtcd

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

BackupInputEtcd is struct storing inner properties for mysql backups

func (*BackupInputEtcd) Close

func (b *BackupInputEtcd) Close() error

Close closes ...

func (*BackupInputEtcd) GetConfig

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

GetConfig returns config of module

func (*BackupInputEtcd) GetGroup

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

GetGroup returns group

func (*BackupInputEtcd) GetName

func (b *BackupInputEtcd) GetName() string

GetName returns name of module

func (*BackupInputEtcd) GetType

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

GetType returns type

func (*BackupInputEtcd) InitModule

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

InitModule initializes module

func (*BackupInputEtcd) InitPipe

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

InitPipe initializes pipe

func (*BackupInputEtcd) Run

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

Run dumps database

type Config

type Config struct {
	Endpoints []string
	Key       string
}

Jump to

Keyboard shortcuts

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