debug

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

debug supports tests that use the noop plugin

Index

Constants

View Source
const EmptyReportResultMessage = "set debug.ReportResult and call debug.WriteDebug() before calling this plugin"

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug struct {
	// Report* fields allow the test to control the behavior of the no-op plugin
	ReportResult         string
	ReportError          string
	ReportStderr         string
	ReportVersionSupport []string
	ExitWithCode         int

	// Command stores the CNI command that the plugin received
	Command string

	// CmdArgs stores the CNI Args and Env Vars that the plugin received
	CmdArgs skel.CmdArgs
}

Debug is used to control and record the behavior of the noop plugin

func ReadDebug

func ReadDebug(debugFilePath string) (*Debug, error)

ReadDebug will return a debug file recorded by the noop plugin

func (*Debug) WriteDebug

func (debug *Debug) WriteDebug(debugFilePath string) error

WriteDebug will create a debug file to control the noop plugin

Jump to

Keyboard shortcuts

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