layer1: add namespace lifecycle subscribers step 16
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sort"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -8,6 +9,9 @@ import (
|
||||
|
||||
type NamespaceSubscriber interface {
|
||||
Name() string
|
||||
OnNamespaceAdd(ctx context.Context, record NamespaceRecord) error
|
||||
OnNamespaceRemove(ctx context.Context, record NamespaceRecord) error
|
||||
OnNamespaceResync(ctx context.Context, record NamespaceRecord) error
|
||||
}
|
||||
|
||||
type NamespaceManager interface {
|
||||
|
||||
Reference in New Issue
Block a user