github.com/operator-framework/operator-lifecycle-manager@v0.30.0/pkg/lib/csv/notification.go (about) 1 package csv 2 3 import ( 4 "github.com/operator-framework/api/pkg/operators/v1alpha1" 5 ) 6 7 // WatchNotification is an sink interface that can be used to get notification 8 // of CSV reconciliation request(s) received by the operator. 9 type WatchNotification interface { 10 // OnAddOrUpdate is invoked when a add or update reconciliation request has 11 // been received by the operator. 12 OnAddOrUpdate(in *v1alpha1.ClusterServiceVersion) 13 14 // OnDelete is invoked when a delete reconciliation request has 15 // been received by the operator. 16 OnDelete(in *v1alpha1.ClusterServiceVersion) 17 }