Clear confusing comments
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
This commit is contained in:
parent
9a62ca140b
commit
9d07030f11
|
@ -33,7 +33,7 @@ func (k ClusterWideKey) String() string {
|
|||
return fmt.Sprintf("%s, kind=%s, %s", k.GroupVersion().String(), k.Kind, k.NamespaceKey())
|
||||
}
|
||||
|
||||
// NamespaceKey returns the traditional key of a object.
|
||||
// NamespaceKey returns the traditional key of an object.
|
||||
func (k *ClusterWideKey) NamespaceKey() string {
|
||||
if len(k.Namespace) > 0 {
|
||||
return k.Namespace + "/" + k.Name
|
||||
|
|
|
@ -22,13 +22,13 @@ type SingleClusterInformerManager interface {
|
|||
ForResource(resource schema.GroupVersionResource, handler cache.ResourceEventHandler)
|
||||
|
||||
// IsInformerSynced checks if the resource's informer is synced.
|
||||
// A informer is synced means:
|
||||
// An informer is synced means:
|
||||
// - The informer has been created(by method 'ForResource' or 'Lister').
|
||||
// - The informer has started(by method 'Start').
|
||||
// - The informer's cache has been synced.
|
||||
IsInformerSynced(resource schema.GroupVersionResource) bool
|
||||
|
||||
// IsHandlerExist checks if handler already added to a the informer that watches the 'resource'.
|
||||
// IsHandlerExist checks if handler already added to the informer that watches the 'resource'.
|
||||
IsHandlerExist(resource schema.GroupVersionResource, handler cache.ResourceEventHandler) bool
|
||||
|
||||
// Lister returns a generic lister used to get 'resource' from informer's store.
|
||||
|
|
Loading…
Reference in New Issue