meta

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package meta provides tool for reading metadata from services declaring "MetaProvider" support

Index

Constants

View Source
const (
	ServiceMetaProvider   = "MetaProvider"
	ServiceMetaNsProvider = "MetaNsProvider"
)

Variables

This section is empty.

Functions

func EnrichNodesMetaFromProviders

func EnrichNodesMetaFromProviders(ctx context.Context, streamers []tree.NodeProviderStreamer_ReadNodeStreamClient, names []string, nodes ...*tree.Node)

Types

type MetaProviderCloser

type MetaProviderCloser func()

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) ReadNode added in v1.5.0

func (p *NamespacesProvider) ReadNode(node *tree.Node) (*tree.Node, error)

func (*NamespacesProvider) Watch added in v1.5.0

func (p *NamespacesProvider) Watch()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL