Documentation
¶
Index ¶
- Variables
- func ParseNOFILELimit(data string) (soft, hard uint64, ok bool)
- func StandardApplicationRoots() []string
- type App
- type AppScanner
- type Collector
- type CrashTermination
- type DescriptorSample
- type DiagnoseOptions
- type Doctor
- type DoctorOptions
- type LogSummary
- type NetworkInspector
- type PermissionInspector
- type ProcessDescriptorCount
- type ProcessInspector
- type ProcessThresholds
- type ProgressEvent
- type ResolveError
- type Resolver
- type WatchEvent
- type WatchOptions
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var DoctorChecks = []string{"storage", "memory", "cpu", "descriptors", "services", "updates", "crashes", "restarts", "startup", "apps", "network"}
Functions ¶
func ParseNOFILELimit ¶
func StandardApplicationRoots ¶ added in v0.2.0
func StandardApplicationRoots() []string
Types ¶
type App ¶
type App struct {
Path string `json:"path"`
Name string `json:"name"`
BundleID string `json:"bundle_id,omitempty"`
Executable string `json:"executable,omitempty"`
ExecutablePath string `json:"executable_path,omitempty"`
Version string `json:"version,omitempty"`
MinimumOS string `json:"minimum_os,omitempty"`
}
type AppScanner ¶ added in v0.2.0
type Collector ¶
type Collector struct {
Runner platform.Runner
Emit func(ProgressEvent)
}
type CrashTermination ¶
type CrashTermination = report.CrashTermination
func ParseCrashTermination ¶
func ParseCrashTermination(data []byte, extension string) CrashTermination
type DescriptorSample ¶
type DescriptorSample struct {
Count int `json:"count"`
ByType map[string]int `json:"by_type"`
ByPath map[string]int `json:"by_path,omitempty"`
}
func ParseLSOF ¶
func ParseLSOF(data []byte) DescriptorSample
type DiagnoseOptions ¶
type Doctor ¶ added in v0.3.0
type Doctor struct {
Runner platform.Runner
Emit func(ProgressEvent)
}
type DoctorOptions ¶ added in v0.3.0
type LogSummary ¶
type LogSummary struct {
EMFILE int `json:"emfile"`
ENFILE int `json:"enfile"`
SecStaticCode int `json:"sec_static_code"`
SyspolicydEMFILE int `json:"syspolicyd_emfile"`
SyspolicydENFILE int `json:"syspolicyd_enfile"`
SyspolicydSecStaticCode int `json:"syspolicyd_sec_static_code"`
SyspolicydWedgeSequence int `json:"syspolicyd_wedge_sequence"`
Signature int `json:"signature_errors"`
Gatekeeper int `json:"gatekeeper_errors"`
Notarization int `json:"notarization_errors"`
XProtect int `json:"xprotect"`
LaunchServices int `json:"launch_services"`
Terminations int `json:"terminations"`
MissingLibrary int `json:"missing_library"`
}
func ParseLogEvents ¶
func ParseLogEvents(data []byte) LogSummary
type NetworkInspector ¶ added in v0.3.0
type PermissionInspector ¶ added in v0.2.0
type ProcessDescriptorCount ¶
type ProcessDescriptorCount struct {
PID int `json:"pid"`
Command string `json:"command"`
Count int `json:"count"`
}
func ParseProcessDescriptorCounts ¶
func ParseProcessDescriptorCounts(data []byte) []ProcessDescriptorCount
type ProcessInspector ¶ added in v0.2.0
func (ProcessInspector) Inspect ¶ added in v0.2.0
func (p ProcessInspector) Inspect(ctx context.Context, target string, thresholds ProcessThresholds) (report.Report, error)
type ProcessThresholds ¶ added in v0.2.0
type ProgressEvent ¶
type ResolveError ¶
func (*ResolveError) Error ¶
func (e *ResolveError) Error() string
func (*ResolveError) Unwrap ¶
func (e *ResolveError) Unwrap() error
type WatchEvent ¶
type WatchEvent struct {
SchemaVersion string `json:"schema_version"`
Type string `json:"type"`
Timestamp time.Time `json:"timestamp"`
Target string `json:"target"`
PID int `json:"pid,omitempty"`
DescriptorCount int `json:"descriptor_count,omitempty"`
Growth int `json:"growth,omitempty"`
GrowthRate float64 `json:"growth_per_second,omitempty"`
WindowSeconds int `json:"window_seconds,omitempty"`
Severity report.Severity `json:"severity"`
Message string `json:"message"`
ByType map[string]int `json:"by_type,omitempty"`
ByPath map[string]int `json:"by_path,omitempty"`
CPUPercent float64 `json:"cpu_percent,omitempty"`
RSSBytes uint64 `json:"rss_bytes,omitempty"`
Threads int `json:"threads,omitempty"`
SocketCount int `json:"socket_count,omitempty"`
DiskReadBytes uint64 `json:"disk_read_bytes,omitempty"`
DiskWriteBytes uint64 `json:"disk_write_bytes,omitempty"`
MemoryFreePercent float64 `json:"memory_free_percent,omitempty"`
RestartCount int `json:"restart_count,omitempty"`
}
type WatchOptions ¶
Click to show internal directories.
Click to hide internal directories.