shell

package
v0.0.0-...-a649549 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "shell"

Name names the Starlark builtin

Variables

This section is empty.

Functions

func New

func New(kwargs []starlark.Tuple) (resetter.Interface, error)

New instanciates a new resetter

Types

type Resetter

type Resetter struct {
	fm.Clt_Fuzz_Resetter_Shell
	// contains filtered or unexported fields
}

Resetter implements resetter.Interface

func (*Resetter) Env

func (s *Resetter) Env(read map[string]string)

Env passes envs read during startup

func (*Resetter) ExecReset

func (s *Resetter) ExecReset(ctx context.Context, stdout io.Writer, stderr io.Writer, only bool) error

ExecReset resets the System Under Test to a state similar to a post-ExecStart state

func (*Resetter) ExecStart

func (s *Resetter) ExecStart(ctx context.Context, stdout io.Writer, stderr io.Writer, only bool) error

ExecStart executes the setup phase of the System Under Test

func (*Resetter) ExecStop

func (s *Resetter) ExecStop(ctx context.Context, stdout io.Writer, stderr io.Writer, only bool) error

ExecStop executes the cleanup phase of the System Under Test

func (*Resetter) Name

func (s *Resetter) Name() string

Name uniquely identifies this instance

func (*Resetter) Provides

func (s *Resetter) Provides() []string

Provides lists the models a resetter resets

func (*Resetter) Terminate

func (s *Resetter) Terminate(ctx context.Context, stdout io.Writer, stderr io.Writer) (err error)

Terminate cleans up after a resetter.Interface implementation instance

func (*Resetter) ToProto

func (s *Resetter) ToProto() *fm.Clt_Fuzz_Resetter

ToProto marshals a resetter.Interface implementation into a *fm.Clt_Fuzz_Resetter

Jump to

Keyboard shortcuts

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