Documentation ¶
Index ¶
- Variables
- func NewController() controller.Controller
- func NewRawController() controller.Controller
- type ReconcileSelinux
- func (r *ReconcileSelinux) Healthz(*http.Request) error
- func (r *ReconcileSelinux) Name() string
- func (r *ReconcileSelinux) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileSelinux) SchemeBuilder() *scheme.Builder
- func (r *ReconcileSelinux) Setup(_ context.Context, mgr ctrl.Manager, met *metrics.Metrics) error
- type SelinuxObjectHandler
- type SelinuxObjectHandlerInit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLabelKey = errors.New("invalid label key") ErrInvalidObjClass = errors.New("invalid object class") ErrInvalidPermission = errors.New("invalid permission") ErrSystemInheritNotAllowed = errors.New("system profile not allowed") ErrUnknownKindForEntry = errors.New("unknown inherit kind for entry") )
Functions ¶
func NewController ¶ added in v0.4.0
func NewController() controller.Controller
NewController returns a new empty controller instance.
func NewRawController ¶ added in v0.4.0
func NewRawController() controller.Controller
NewController returns a new empty controller instance.
Types ¶
type ReconcileSelinux ¶ added in v0.4.0
type ReconcileSelinux struct {
// contains filtered or unexported fields
}
ReconcileSelinux reconciles a Selinux profile objects.
func (*ReconcileSelinux) Healthz ¶ added in v0.4.0
func (r *ReconcileSelinux) Healthz(*http.Request) error
Healthz is the liveness probe endpoint of the controller.
func (*ReconcileSelinux) Name ¶ added in v0.4.0
func (r *ReconcileSelinux) Name() string
Name returns the name of the controller.
func (*ReconcileSelinux) Reconcile ¶ added in v0.4.0
func (r *ReconcileSelinux) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a SelinuxProfile object and makes changes based on the state read and what is in the `SelinuxProfile.Spec`.
func (*ReconcileSelinux) SchemeBuilder ¶ added in v0.4.0
func (r *ReconcileSelinux) SchemeBuilder() *scheme.Builder
SchemeBuilder returns the API scheme of the controller.
type SelinuxObjectHandler ¶ added in v0.4.0
type SelinuxObjectHandler interface { Init(context.Context, client.Client, types.NamespacedName) error GetProfileObject() selxv1alpha2.SelinuxProfileObject Validate() error GetCILPolicy() (string, error) }
type SelinuxObjectHandlerInit ¶ added in v0.4.0
type SelinuxObjectHandlerInit func(context.Context, client.Client, types.NamespacedName) (SelinuxObjectHandler, error)
Click to show internal directories.
Click to hide internal directories.