utils

package
v0.57.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionID added in v0.10.0

func GetSessionID() string

GetSessionID generates a new session id. This is essentially an instance of a running plugin.

func IsPodFailing

func IsPodFailing(pod *v1.Pod) (bool, string)

IsPodFailing returns whether a plugin's pod is failing and isn't likely to succeed.

func MakeErrorResult

func MakeErrorResult(resultType string, errdata map[string]interface{}, nodeName string) *plugin.Result

MakeErrorResult constructs a plugin.Result given an error message and error data. errdata is a map that will be placed in the sonobuoy results tarball for this plugin as a JSON file, so it's what users will see for why the plugin failed. If errdata["error"] is not set, it will be filled in with an "Unknown error" string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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