fsprobe

package
v0.0.0-...-97d2b70 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright © 2020 GUILLAUME FOURNIER

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSProbe

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

FSProbe - Main File system probe structure

func NewFSProbeWithOptions

func NewFSProbeWithOptions(options model.FSProbeOptions) *FSProbe

NewFSProbeWithOptions - Creates a new FSProbe instance with the provided options

func (*FSProbe) EditEBPFConstants

func (fsp *FSProbe) EditEBPFConstants(spec *ebpf.CollectionSpec) error

EditEBPFConstants - Edit the runtime eBPF constants

func (*FSProbe) GetBootTime

func (fsp *FSProbe) GetBootTime() time.Time

GetBootTime - Returns the boot time of fsprobe

func (*FSProbe) GetCollection

func (fsp *FSProbe) GetCollection() *ebpf.Collection

GetCollection - Returns the eBPF collection of fsprobe

func (*FSProbe) GetHostPidns

func (fsp *FSProbe) GetHostPidns() uint64

GetHostPidns - Returns the host pidns of fsprobe

func (*FSProbe) GetOptions

func (fsp *FSProbe) GetOptions() *model.FSProbeOptions

GetOptions - Returns the config of fsprobe

func (*FSProbe) GetWaitGroup

func (fsp *FSProbe) GetWaitGroup() *sync.WaitGroup

GetWaitGroup - Returns the wait group of fsprobe

func (*FSProbe) Stop

func (fsp *FSProbe) Stop() error

Stop - Stop the file system probe

func (*FSProbe) Watch

func (fsp *FSProbe) Watch(paths ...string) error

Watch - start watching the provided paths. This function is thread safe and can be called multiple times. If already running, the new paths will be added dynamically.

Directories

Path Synopsis
fs

Jump to

Keyboard shortcuts

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