jobs

package
v0.0.0-...-1285923 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(TaskID string, nowreturn bool) error

Backup ...

func ExecBackup

func ExecBackup(taskinfo *md.Task) (string, error)

ExecBackup ...

func ExecRemote

func ExecRemote(v md.RemoteStorage, rlid string, lid string, Localfilepath string) error

ExecRemote ...

func ExpireDelete

func ExpireDelete(id string, num int) error

ExpireDelete ... num 份数

func Jobs

func Jobs(i string) func() error

Jobs ...

func SshBackup

func SshBackup(id string, bol bool) error

func SshJobs

func SshJobs(id string) func() error

func TestBackup

func TestBackup(t *md.Task) (string, error)

TestBackup ...

func TestRemote

func TestRemote(zipfile string, v md.RemoteStorage) error

TestRemote ...

Types

type SshConfig

type SshConfig struct {
	Addr       string
	Port       string
	User       string
	Password   string
	Session    *ssh.Session
	Client     *ssh.Client
	SftpClient *sftp.Client
}

func (*SshConfig) Run

func (c *SshConfig) Run(cmd string) error

Jump to

Keyboard shortcuts

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