apparmorprofile

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController() controller.Controller

NewController returns a new empty controller instance.

Types

type ProfileManager

type ProfileManager interface {
	// Enabled checks whether the given profile technology is supported and
	// enabled by the underlying systems in the host.
	Enabled() bool

	// InstallProfile ensure the profile is installed/copied/loaded into the host.
	InstallProfile(p profilebasev1alpha1.StatusBaseUser) (bool, error)

	// RemoveProfile ensure the profile is uninstalled/deleted/unloaded from the host.
	RemoveProfile(p profilebasev1alpha1.StatusBaseUser) error
}

func NewAppArmorProfileManager

func NewAppArmorProfileManager(logger logr.Logger) ProfileManager

type Reconciler

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

A Reconciler reconciles AppArmor profiles.

func (*Reconciler) Healthz

func (r *Reconciler) Healthz(*http.Request) error

Healthz is the liveness probe endpoint of the controller.

func (*Reconciler) Name

func (r *Reconciler) Name() string

Name returns the name of the controller.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile reconciles a AppArmorProfile.

func (*Reconciler) SchemeBuilder

func (r *Reconciler) SchemeBuilder() *scheme.Builder

SchemeBuilder returns the API scheme of the controller.

func (*Reconciler) Setup

func (r *Reconciler) Setup(
	_ context.Context,
	mgr ctrl.Manager,
	met *metrics.Metrics,
) error

Setup adds a controller that reconciles AppArmor profiles.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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