sysreport

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

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