sysreport

package
v3.0.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 27 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dev

type Dev = uint64

type Mode

type Mode = uint32
type Nlink = uint64

type Stat

type Stat struct {
	Path       string `json:"fpath"`    // /opt/opensvc/etc/vcluster.conf
	RealPath   string `json:"realpath"` // /opt/opensvc/etc/vcluster.conf
	Dev        Dev    `json:"dev"`      // 66306
	UID        uint32 `json:"uid"`      // 0
	GID        uint32 `json:"gid"`      // 0
	ModeOctStr string `json:"mode"`     // "0o100600",
	Mode       Mode
	Size       int64
	CTime      timestamp.T `json:"ctime"` // 1640331980
	MTime      timestamp.T `json:"mtime"` // 1640331980
	Nlink      Nlink       `json:"nlink"` // 1
}

Stat contains the metadata of a tracked file

func (Stat) IsEqual

func (t Stat) IsEqual(o Stat) bool

type Stats

type Stats []Stat

Stats is the list of the metadata of all tracked files. The serialized Stats is tracked as a special file, so tracked files metadata changes are also tracked.

func (*Stats) Load

func (t *Stats) Load(r io.Reader) error

func (Stats) Map

func (t Stats) Map() statsMap

func (Stats) Write

func (t Stats) Write(w io.Writer) error

type T

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

func New

func New() *T

func (*T) Do

func (t *T) Do() error

func (*T) SetCollectorClient

func (t *T) SetCollectorClient(c *collector.Client)

func (*T) SetConfigDir

func (t *T) SetConfigDir(path string)

func (*T) SetConfigReader

func (t *T) SetConfigReader(r io.Reader)

func (*T) SetForce

func (t *T) SetForce(v bool)

Jump to

Keyboard shortcuts

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