Documentation ¶
Index ¶
- func NewController() controller.Controller
- type ProfileManager
- type Reconciler
- func (r *Reconciler) Healthz(*http.Request) error
- func (r *Reconciler) Name() string
- func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
- func (r *Reconciler) SchemeBuilder() *scheme.Builder
- func (r *Reconciler) Setup(_ context.Context, mgr ctrl.Manager, met *metrics.Metrics) error
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.