1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Merge pull request #243 from fengshunli/cmt

format comment format
This commit is contained in:
Frank Jogeleit 2023-01-18 08:59:49 +01:00 committed by GitHub
commit dde06864d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ func (f *genericInformer) Lister() cache.GenericLister {
// TODO extend this to unknown resources with a client pool
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
switch resource {
// Group=wgpolicyk8s.io, Version=v1alpha2
// Group=wgpolicyk8s.io, Version=v1alpha2
case policyreportv1alpha2.SchemeGroupVersion.WithResource("clusterpolicyreports"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Wgpolicyk8s().V1alpha2().ClusterPolicyReports().Informer()}, nil
case policyreportv1alpha2.SchemeGroupVersion.WithResource("policyreports"):

View file

@ -8,7 +8,7 @@ type PolicyReportResultListener = func(PolicyReport, Result, bool)
// PolicyReportClient watches for PolicyReport Events and executes registered callback
type PolicyReportClient interface {
// WatchPolicyReports starts to watch for PolicyReport LifecycleEvent events
// Run WatchPolicyReports starts to watch for PolicyReport LifecycleEvent events
Run(stopper chan struct{}) error
// HasSynced the configured PolicyReport
HasSynced() bool

View file

@ -11,7 +11,7 @@ type EventPublisher interface {
UnregisterListener(string)
// GetListener returns a list of all registered Listeners
GetListener() map[string]PolicyReportListener
// Process LifecycleEvent with all registered listeners
// Publish Process LifecycleEvent with all registered listeners
Publish(event LifecycleEvent)
}

View file

@ -9,7 +9,7 @@ type PolicyReportStore interface {
Get(id string) (PolicyReport, bool)
// Add a PolicyReport to the Store
Add(r PolicyReport) error
// Add a PolicyReport to the Store
// Update a PolicyReport to the Store
Update(r PolicyReport) error
// Remove a PolicyReport with the given Type and ID from the Store
Remove(id string) error