mdeploy

package
v0.0.0-...-f3b02ed Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSFTPClient

func NewSFTPClient(conn *ssh.Client) (*sftpclient, error)

Types

type FileStat

type FileStat interface {
	IsDir() bool
	IsRegular() bool
}

type SshSession

type SshSession interface {
	Stat(path string) (FileStat, error)
	SendDir(output chan<- string, src, dst string) error
	SendFile(progress p.ProgressBarReaderWriter, src, dst string) error
	Exec(output chan<- string, cmd string, param ...string) error
	ReceiveRemoteFile(progress p.ProgressBarReaderWriter, remoteSrc, dst string) error
	ReceiveRemoteDir(output chan<- string, remoteDir, dst string) error
	RemoveFile(path string) error
	Mkdir(path string) error
	RemoveDirectory(path string) error
	RemoveAll(srcdir string) error
	Close()
}

func ConnectWithPassword

func ConnectWithPassword(src string, port int, user string, password string, trustServerHost bool) (SshSession, error)

type StatusError

type StatusError struct {
	Code uint32
	// contains filtered or unexported fields
}

func (*StatusError) Error

func (s *StatusError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳