Documentation ¶
Overview ¶
Package predicate contains all event filters of the project
Index ¶
- type CompositePredicate
- type NonAdminBackupPredicate
- func (NonAdminBackupPredicate) Create(ctx context.Context, evt event.CreateEvent) bool
- func (NonAdminBackupPredicate) Delete(ctx context.Context, evt event.DeleteEvent) bool
- func (NonAdminBackupPredicate) Generic(ctx context.Context, evt event.GenericEvent) bool
- func (NonAdminBackupPredicate) Update(ctx context.Context, evt event.UpdateEvent) bool
- type VeleroBackupPredicate
- func (veleroBackupPredicate VeleroBackupPredicate) Create(ctx context.Context, evt event.CreateEvent) bool
- func (VeleroBackupPredicate) Delete(_ context.Context, _ event.DeleteEvent) bool
- func (VeleroBackupPredicate) Generic(_ context.Context, _ event.GenericEvent) bool
- func (veleroBackupPredicate VeleroBackupPredicate) Update(ctx context.Context, evt event.UpdateEvent) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositePredicate ¶
type CompositePredicate struct { Context context.Context NonAdminBackupPredicate NonAdminBackupPredicate VeleroBackupPredicate VeleroBackupPredicate }
CompositePredicate is a combination of all project event filters
func (CompositePredicate) Create ¶
func (p CompositePredicate) Create(evt event.CreateEvent) bool
Create event filter
func (CompositePredicate) Delete ¶
func (p CompositePredicate) Delete(evt event.DeleteEvent) bool
Delete event filter
func (CompositePredicate) Generic ¶
func (p CompositePredicate) Generic(evt event.GenericEvent) bool
Generic event filter
func (CompositePredicate) Update ¶
func (p CompositePredicate) Update(evt event.UpdateEvent) bool
Update event filter
type NonAdminBackupPredicate ¶
NonAdminBackupPredicate contains event filters for Non Admin Backup objects
func (NonAdminBackupPredicate) Create ¶
func (NonAdminBackupPredicate) Create(ctx context.Context, evt event.CreateEvent) bool
Create event filter
func (NonAdminBackupPredicate) Delete ¶
func (NonAdminBackupPredicate) Delete(ctx context.Context, evt event.DeleteEvent) bool
Delete event filter
func (NonAdminBackupPredicate) Generic ¶
func (NonAdminBackupPredicate) Generic(ctx context.Context, evt event.GenericEvent) bool
Generic event filter
func (NonAdminBackupPredicate) Update ¶
func (NonAdminBackupPredicate) Update(ctx context.Context, evt event.UpdateEvent) bool
Update event filter
type VeleroBackupPredicate ¶
type VeleroBackupPredicate struct { // We are watching only Velero Backup objects within // namespace where OADP is. OadpVeleroNamespace string Logger logr.Logger }
VeleroBackupPredicate contains event filters for Velero Backup objects
func (VeleroBackupPredicate) Create ¶
func (veleroBackupPredicate VeleroBackupPredicate) Create(ctx context.Context, evt event.CreateEvent) bool
Create event filter
func (VeleroBackupPredicate) Delete ¶
func (VeleroBackupPredicate) Delete(_ context.Context, _ event.DeleteEvent) bool
Delete event filter
func (VeleroBackupPredicate) Generic ¶
func (VeleroBackupPredicate) Generic(_ context.Context, _ event.GenericEvent) bool
Generic event filter
func (VeleroBackupPredicate) Update ¶
func (veleroBackupPredicate VeleroBackupPredicate) Update(ctx context.Context, evt event.UpdateEvent) bool
Update event filter
Click to show internal directories.
Click to hide internal directories.