runner

package
v0.0.0-...-bba1545 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnv

func BuildEnv(cfg *config.Config) map[string]string

func Connect

func Connect(cfg *config.Config) (*ssh.Client, error)

func EnsureRemoteDirs

func EnsureRemoteDirs(client *ssh.Client, dirs []string) error

func IsExcluded

func IsExcluded(rel string, patterns []string) bool

func NewSFTPClient

func NewSFTPClient(client *ssh.Client) (*sftp.Client, error)

func Pull

func Pull(sc *sftp.Client, remotePath string, artifacts []string, localDir string, verbose bool) error

func RemotePathExists

func RemotePathExists(client *ssh.Client, path string) (bool, error)

func RemoveRemoteFiles

func RemoveRemoteFiles(client *ssh.Client, files []string) error

func RunCommand

func RunCommand(client *ssh.Client, workDir, command string, stdout, stderr io.Writer, env map[string]string) error

func Shellescape

func Shellescape(s string) string

Types

type PortForward

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

func StartPortForward

func StartPortForward(client *ssh.Client, port int) (*PortForward, error)

func (*PortForward) Stop

func (pf *PortForward) Stop()

type PushStats

type PushStats struct {
	Uploaded int
	Skipped  int
	Deleted  int
}

func Push

func Push(client *ssh.Client, localDir, remotePath, remoteKey string, exclude []string, verbose, force bool) (PushStats, error)

type ToolStatus

type ToolStatus struct {
	Name     string
	Version  string
	Found    bool
	Required bool
}

func VerifyTools

func VerifyTools(client *ssh.Client, required, optional []string) ([]ToolStatus, error)

Jump to

Keyboard shortcuts

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