rconf

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHClient

type SSHClient struct {
	// contains filtered or unexported fields
}

SSHClient wraps an SSH client and SFTP session.

func NewSSHClient

func NewSSHClient(connInfoPass connstr.ConnInfo, pkeyPath, pkeyPass string) (*SSHClient, error)

NewSSHClient establishes an SSH and SFTP connection.

func (*SSHClient) Close

func (s *SSHClient) Close()

Close closes SSH and SFTP connections.

func (*SSHClient) ExecuteScript

func (s *SSHClient) ExecuteScript(remotePath string, opts map[string][]string) (string, error)

ExecuteScript executes a script on the remote host.

func (*SSHClient) UploadScript

func (s *SSHClient) UploadScript(scriptContent []byte, remotePath string) error

UploadScript uploads a script to the remote host from memory.

Jump to

Keyboard shortcuts

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