local

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(sett settings.Settings, program string, args ...string) *Command

func (*Command) Cmd

func (c *Command) Cmd(_ context.Context)

func (*Command) CombinedOutput

func (c *Command) CombinedOutput(ctx context.Context) ([]byte, error)

func (*Command) OnCommandStart

func (c *Command) OnCommandStart(fn func())

func (*Command) Output

func (c *Command) Output(ctx context.Context) ([]byte, []byte, error)

func (*Command) Run

func (c *Command) Run(ctx context.Context) error

func (*Command) StderrBytes

func (c *Command) StderrBytes() []byte

func (*Command) StdoutBytes

func (c *Command) StdoutBytes() []byte

func (*Command) Sudo

func (c *Command) Sudo(_ context.Context)

func (*Command) WithEnv

func (c *Command) WithEnv(env map[string]string)

func (*Command) WithSSHArgs

func (c *Command) WithSSHArgs(_ ...string)

func (*Command) WithStderrHandler

func (c *Command) WithStderrHandler(h func(line string))

func (*Command) WithStdoutHandler

func (c *Command) WithStdoutHandler(h func(line string))

func (*Command) WithTimeout

func (c *Command) WithTimeout(t time.Duration)

type File

type File struct{}

func NewFile

func NewFile() *File

func (File) Download

func (File) Download(_ context.Context, srcPath, dstPath string) error

func (File) DownloadBytes

func (File) DownloadBytes(_ context.Context, srcPath string) ([]byte, error)

func (File) Upload

func (File) Upload(_ context.Context, srcPath, dstPath string) error

func (File) UploadBytes

func (File) UploadBytes(_ context.Context, data []byte, dstPath string) error

type NodeInterface

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

func NewDefaultNodeInterface

func NewDefaultNodeInterface() *NodeInterface

NewDefaultNodeInterface Deprecated: use NewNodeInterface

func NewNodeInterface

func NewNodeInterface(sett settings.Settings) *NodeInterface

func (*NodeInterface) Command

func (n *NodeInterface) Command(name string, args ...string) connection.Command

func (*NodeInterface) File

func (n *NodeInterface) File() connection.File

func (*NodeInterface) UploadScript

func (n *NodeInterface) UploadScript(scriptPath string, args ...string) connection.Script

type Script

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

func NewScript

func NewScript(sett settings.Settings, path string, args ...string) *Script

func (*Script) Execute

func (s *Script) Execute(ctx context.Context) ([]byte, error)

func (*Script) ExecuteBundle

func (s *Script) ExecuteBundle(ctx context.Context, parentDir, bundleDir string) ([]byte, error)

func (*Script) Sudo

func (s *Script) Sudo()

func (*Script) WithBundlerOpts

func (s *Script) WithBundlerOpts(opts ...connection.BundlerOption)

func (*Script) WithCleanupAfterExec

func (s *Script) WithCleanupAfterExec(doCleanup bool)

func (*Script) WithEnvs

func (s *Script) WithEnvs(envs map[string]string)

func (*Script) WithExecuteUploadDir

func (s *Script) WithExecuteUploadDir(string)

func (*Script) WithNoLogStepOutOnError

func (s *Script) WithNoLogStepOutOnError(bool)

func (*Script) WithStdoutHandler

func (s *Script) WithStdoutHandler(handler func(string))

func (*Script) WithTimeout

func (s *Script) WithTimeout(timeout time.Duration)

Jump to

Keyboard shortcuts

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