backend

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 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 Local

type Local struct {
	// Requested version of PowerShell to start.
	Version PowerShellVersion // Default 5.1
}

Local represents a PowerShell session on the local machine, that is, the machine executing this code.

func (*Local) StartProcess

func (b *Local) StartProcess(cmd string, args ...string) (Waiter, io.Writer, io.Reader, io.Reader, error)

type PowerShellVersion added in v0.3.0

type PowerShellVersion int
const (
	// Use Windows Powershell (5.1)
	WindowsPowerShell PowerShellVersion = iota

	// Use pwsh if found on system (version > 5)
	Pwsh
)

type SSH

type SSH struct {
	Session sshSession
}

SSH represents a session on a remote computer, via SSH

func (*SSH) StartProcess

func (b *SSH) StartProcess(cmd string, args ...string) (Waiter, io.Writer, io.Reader, io.Reader, error)

type Starter

type Starter interface {
	StartProcess(cmd string, args ...string) (Waiter, io.Writer, io.Reader, io.Reader, error)
}

type Waiter

type Waiter interface {
	Wait() error
}

Jump to

Keyboard shortcuts

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