github.com/cilium/cilium@v1.16.2/pkg/k8s/watchers/subscriber/subscriber.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  // Package subscriber implements a mechanism to represent K8s watcher
     5  // subscribers and allows K8s events to objects / resources to notify their
     6  // respective subscribers. The intent is to allow the K8s watchers to
     7  // consolidate all the event handling from various subsystems into one place.
     8  package subscriber
     9  
    10  import "github.com/cilium/cilium/pkg/lock"
    11  
    12  type list struct {
    13  	lock.RWMutex
    14  }