ssh

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunnerParameters

func NewRunnerParameters() eventline.RunnerParameters

func RunnerDef

func RunnerDef() *eventline.RunnerDef

Types

type Runner

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

func (*Runner) DirPath

func (r *Runner) DirPath() string

func (*Runner) ExecuteStep

func (r *Runner) ExecuteStep(ctx context.Context, se *eventline.StepExecution, step *eventline.Step, stdout, stderr io.WriteCloser) error

func (*Runner) Init

func (r *Runner) Init(ctx context.Context) error

func (*Runner) Terminate

func (r *Runner) Terminate()

type RunnerCfg

type RunnerCfg struct {
	RootDirectory string `json:"root_directory"`
}

func (*RunnerCfg) ValidateJSON added in v1.1.0

func (cfg *RunnerCfg) ValidateJSON(v *ejson.Validator)

type RunnerParameters

type RunnerParameters struct {
	Host             string `json:"host"`
	Port             int    `json:"port"`
	User             string `json:"user"`
	HostKey          []byte `json:"host_key,omitempty"`
	HostKeyAlgorithm string `json:"host_key_algorithm,omitempty"`
}

func (*RunnerParameters) ValidateJSON added in v1.1.0

func (r *RunnerParameters) ValidateJSON(v *ejson.Validator)

Jump to

Keyboard shortcuts

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