rc_replay

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorPathNotFound = errors.New("replay path not found")
)
View Source
var (
	ErrorReportDiffFound = errors.New("report diff found")
)
View Source
var (
	PreserveLogFilePrefixes = []string{
		rc_value.FeedBackupFilePrefix,
		app.LogCapture,
		app.LogNameStart,
	}
)

Functions

func ReplayPath

func ReplayPath(path mo_string.OptionalString) (string, error)

Types

type Capture

type Capture struct {
	Req nw_request.Req `json:"req"`
	Res nw_capture.Res `json:"res"`
}

type Opt

type Opt func(o Opts) Opts

func ReportDiffs

func ReportDiffs(enabled bool) Opt

type Opts

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

func (Opts) Apply

func (z Opts) Apply(opts []Opt) Opts

type Replay

type Replay interface {
	// Preserve the specified Job to dest path as the zip archive.
	// destPath requires file name of the archive
	Preserve(target app_workspace.Job, destPath string) error

	// Replay the recipe.
	Replay(target app_workspace.Job, ctl app_control.Control) error

	// Compare plays.
	Compare(preserved app_workspace.Job, replay app_workspace.Job) (err error)
}

func New

func New(logger esl.Logger, opts ...Opt) Replay

Jump to

Keyboard shortcuts

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