modules

package
v1.15.4 Latest Latest
Warning

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

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

Documentation

Overview

Package modules contains a manager of loaded modules which supports search operation.

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"kernel-modules-manager",
	"Load kernel modules required by Cilium",

	cell.Provide(newManager),
)

Functions

This section is empty.

Types

type Manager

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

Manager stores information about loaded modules and provides a search operation.

func (*Manager) FindModules

func (m *Manager) FindModules(expectedNames ...string) (bool, []string)

FindModules checks whether the given kernel modules are loaded and also returns a slice with names of modules which are not loaded.

func (*Manager) FindOrLoadModules

func (m *Manager) FindOrLoadModules(expectedNames ...string) error

FindOrLoadModules checks whether the given kernel modules are loaded and tries to load those which are not.

func (*Manager) Start

func (m *Manager) Start(cell.HookContext) (err error)

Jump to

Keyboard shortcuts

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