utils

package
v0.0.0-...-ac72dc2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cmds ...string) (cmd *exec.Cmd)

Types

type ExecuteParams

type ExecuteParams struct {
	Cmd                      *exec.Cmd
	Dir                      string
	CallerWithSkipFrameCount int
	DisableStdout            bool
	AllowFailed              bool
	DisableLog               bool
	Envs                     map[string]string
}

type ExecuteResult

type ExecuteResult struct {
	Output    string
	ExitCode  int
	ExecuteID string
}

func Execute

func Execute(ctx context.Context, params ExecuteParams) ExecuteResult

type SshExecuteParams

type SshExecuteParams struct {
	Host          string
	Port          int
	User          string
	Command       string
	PrivateKeyPem []byte
}

type SshExecuteResult

type SshExecuteResult struct {
	Output   string
	ExitCode int
}

func SshExecute

func SshExecute(ctx context.Context, params SshExecuteParams) (SshExecuteResult, error)

Jump to

Keyboard shortcuts

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