Documentation ¶
Overview ¶
Package meta provides tool for reading metadata from services declaring "MetaProvider" support
Index ¶
- Constants
- func EnrichNodesMetaFromProviders(ctx context.Context, ...)
- type MetaProviderCloser
- type NamespacesProvider
- func (p *NamespacesProvider) Clear()
- func (p *NamespacesProvider) CloseStreamers() error
- func (p *NamespacesProvider) ExcludeIndexes() map[string]struct{}
- func (p *NamespacesProvider) InitStreamers(ctx context.Context) error
- func (p *NamespacesProvider) Load()
- func (p *NamespacesProvider) Namespaces() map[string]*idm.UserMetaNamespace
- func (p *NamespacesProvider) ReadNode(node *tree.Node) (*tree.Node, error)
- func (p *NamespacesProvider) Watch()
Constants ¶
View Source
const ( ServiceMetaProvider = "MetaProvider" ServiceMetaNsProvider = "MetaNsProvider" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetaProviderCloser ¶
type MetaProviderCloser func()
func InitMetaProviderClients ¶
func InitMetaProviderClients(ctx context.Context, withCoreMeta bool) ([]tree.NodeProviderStreamer_ReadNodeStreamClient, MetaProviderCloser, []string)
type NamespacesProvider ¶ added in v1.5.0
type NamespacesProvider struct { sync.RWMutex // this handles a lock for the namespaces field // contains filtered or unexported fields }
NamespaceProvider list all namespaces info from services declared ServiceMetaNsProvider It watches events to maintain the list
func NewNamespacesProvider ¶ added in v1.5.0
func NewNamespacesProvider() *NamespacesProvider
func (*NamespacesProvider) Clear ¶ added in v1.5.0
func (p *NamespacesProvider) Clear()
func (*NamespacesProvider) CloseStreamers ¶ added in v1.5.0
func (p *NamespacesProvider) CloseStreamers() error
func (*NamespacesProvider) ExcludeIndexes ¶ added in v1.5.0
func (p *NamespacesProvider) ExcludeIndexes() map[string]struct{}
func (*NamespacesProvider) InitStreamers ¶ added in v1.5.0
func (p *NamespacesProvider) InitStreamers(ctx context.Context) error
func (*NamespacesProvider) Load ¶ added in v1.5.0
func (p *NamespacesProvider) Load()
func (*NamespacesProvider) Namespaces ¶ added in v1.5.0
func (p *NamespacesProvider) Namespaces() map[string]*idm.UserMetaNamespace
func (*NamespacesProvider) Watch ¶ added in v1.5.0
func (p *NamespacesProvider) Watch()
Click to show internal directories.
Click to hide internal directories.