kernel

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DetectKernelVersion(ctx context.Context) (string, error)
	GetModules(ctx context.Context, wantedModules []string) ([]string, error)
}

type LinuxKernelHandler

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

func NewLinuxKernelHandler

func NewLinuxKernelHandler() *LinuxKernelHandler

NewLinuxKernelHandler initializes LinuxKernelHandler with exec.

func (*LinuxKernelHandler) DetectKernelVersion

func (kh *LinuxKernelHandler) DetectKernelVersion(ctx context.Context) (string, error)

func (*LinuxKernelHandler) GetModules

func (kh *LinuxKernelHandler) GetModules(ctx context.Context, wantedModules []string) ([]string, error)

GetModules returns all installed kernel modules.

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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