executer

package
v0.0.0-...-05593c5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address        string
	Port           string
	Username       string
	SSHKeyLocation string
}

Config has the configuration options for the commenter

type Dependencies

type Dependencies struct {
	Logger    zerolog.Logger
	Converter providers.EnvironmentConverter
}

Dependencies defines the dependencies of this commenter

type SSHExec

type SSHExec struct {
	Config
	Dependencies
}

SSHExec is an executioner which can execute commands on a remote machine.

func NewSSHExecutioner

func NewSSHExecutioner(cfg Config, deps Dependencies) *SSHExec

NewSSHExecutioner creates a new SSHExec

func (*SSHExec) Execute

func (e *SSHExec) Execute(ctx context.Context, script string, replace map[string]string) error

Executioner defines an execution method.

Jump to

Keyboard shortcuts

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