algorithm

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Run

type Run struct {
	Executer hook.Executer
}

Run is an implementation of an algorithm runner that uses CPA executers to run shell commands

func (*Run) RunAlgorithmWithValue

func (r *Run) RunAlgorithmWithValue(algorithmPath string, value string, timeout int) (string, error)

RunAlgorithmWithValue runs an algorithm at the path provided, passing through the value provided

type Runner

type Runner interface {
	RunAlgorithmWithValue(algorithmPath string, value string, timeout int) (string, error)
}

Runner defines an algorithm runner, allowing algorithms to be run

Jump to

Keyboard shortcuts

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