scp

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

README

before tests we should run ssh 127.0.0.1 and accept invitation

Documentation

Index

Constants

View Source
const GROUP_NAME = "backup"

Module Constants

View Source
const MODULE_NAME = "scp"
View Source
const TYPE_NAME = "output"

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupOutputScp

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

func (*BackupOutputScp) Close

func (m *BackupOutputScp) Close() error

func (*BackupOutputScp) GetConfig

func (m *BackupOutputScp) GetConfig() interface{}

func (*BackupOutputScp) GetGroup

func (m *BackupOutputScp) GetGroup() core.ModuleGroup

func (*BackupOutputScp) GetName

func (m *BackupOutputScp) GetName() string

func (*BackupOutputScp) GetType

func (m *BackupOutputScp) GetType() core.ModuleType

func (*BackupOutputScp) InitModule

func (m *BackupOutputScp) InitModule(_config interface{}) error

func (*BackupOutputScp) InitPipe

func (m *BackupOutputScp) InitPipe(w io.Writer, r io.Reader) error

func (*BackupOutputScp) Run

func (m *BackupOutputScp) Run(ctx context.Context) error

type Config

type Config struct {
	Addr               string
	Port               int
	User               string
	Password           string
	FileName           string
	PathToKey          string
	PrivateKeyPassword string
}

Jump to

Keyboard shortcuts

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