scriptRunner

package
v0.0.0-...-8fd811e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ScriptTimeout = time.Second * 20

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(l *logger.Logger, workingDir string) *consumer

func RunCancelableScript

func RunCancelableScript(ctx context.Context, workingDir string, script string, body string) (string, error)

Types

type Buffer

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

Buffer is a goroutine safe bytes.Buffer

func (*Buffer) CollectiongDone

func (s *Buffer) CollectiongDone()

func (*Buffer) Len

func (s *Buffer) Len() int

func (*Buffer) String

func (s *Buffer) String() string

func (*Buffer) Write

func (s *Buffer) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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