data

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package data provides all the methods needed for collecting and saving node data to disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save added in v1.3.0

func Save(datadir, datatype string, nodeinfo api.NodeInfoV1) (string, error)

Save marshals the gathered data, writes it to a file, and returns the filename and/or error (if any).

Types

type Gatherer

type Gatherer struct {
	Name string
	Cmd  []string
}

Gatherer holds all the information needed about a single data-producing command.

func (Gatherer) Gather

func (g Gatherer) Gather(crashOnError bool, nodeinfo *api.NodeInfoV1)

Gather runs the command and gathers the data into the file in the directory.

Jump to

Keyboard shortcuts

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