transport

package
v0.0.0-...-87225a6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshTransport

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

func NewSshTransport

func NewSshTransport(host string, config *ssh.ClientConfig) (*SshTransport, error)

func (*SshTransport) ReadFile

func (s *SshTransport) ReadFile(path string) ([]byte, error)

func (*SshTransport) Run

func (s *SshTransport) Run(command string) ([]byte, error)

func (*SshTransport) WriteFile

func (s *SshTransport) WriteFile(path string, contents []byte) error

type Transport

type Transport interface {
	ReadFile(path string) ([]byte, error)
	WriteFile(path string, contents []byte) error
	Run(command string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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