Documentation
¶
Overview ¶
Package sysctl is used to process and analyze sysctl data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct { // Proc contains the /proc system control parameters and their values Proc map[string]interface{} `json:"proc,omitempty"` // Sys contains the /sys system control parameters and their values Sys map[string]interface{} `json:"sys,omitempty"` }
Snapshot defines an internal core dump
func (*Snapshot) InsertSnapshotEntry ¶
InsertSnapshotEntry inserts the provided file and its value in the input data
type SnapshotEvent ¶
type SnapshotEvent struct {
Sysctl Snapshot `json:"sysctl"`
}
SnapshotEvent is a wrapper used for serialization
func NewSnapshotEvent ¶
func NewSnapshotEvent(ignoredBaseNames []string) (*SnapshotEvent, error)
NewSnapshotEvent returns a new sysctl snapshot event
func (*SnapshotEvent) ToJSON ¶
func (s *SnapshotEvent) ToJSON() ([]byte, error)
ToJSON serializes the current SnapshotEvent object to JSON
Click to show internal directories.
Click to hide internal directories.