registry

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package registry provides a simple wrapper for building a Registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	// NetworkServiceRegistryServer returns network service server
	NetworkServiceRegistryServer() registry.NetworkServiceRegistryServer
	// NetworkServiceRegistryServer returns network service endpoint server
	NetworkServiceEndpointRegistryServer() registry.NetworkServiceEndpointRegistryServer
	Register(s *grpc.Server)
}

Registry - aggregates the APIs:

  • registry.NetworkServiceRegistryServer
  • registry.NetworkServiceEndpointRegistryServer

func NewServer

NewServer creates new Registry with specific NetworkServiceRegistryServer and NetworkServiceEndpointRegistryServer functionality

Directories

Path Synopsis
chains
client
Package client provides common functions for building NS, NSE registry clients Package client provides a simple functions for building a NetworkServiceEndpointRegistryClient, NetworkServiceRegistryClient
Package client provides common functions for building NS, NSE registry clients Package client provides a simple functions for building a NetworkServiceEndpointRegistryClient, NetworkServiceRegistryClient
memory
Package memory provides registry chain based on memory chain elements
Package memory provides registry chain based on memory chain elements
proxydns
Package proxydns provides default chain for stateless proxy registries based on DNS
Package proxydns provides default chain for stateless proxy registries based on DNS
common
clientinfo
Package clientinfo provides a chain element that adds pod, node and cluster names to request
Package clientinfo provides a chain element that adds pod, node and cluster names to request
clienturl
Package clienturl provides NS, NSE registry server chain elements that set client URL in context
Package clienturl provides NS, NSE registry server chain elements that set client URL in context
connect
Package connect provides NS, NSE registry server chain elements providing access to remote registry servers Code generated by "-output ns_client_map.gen.go -type nsClientMap<string,*nsClient> -output ns_client_map.gen.go -type nsClientMap<string,*nsClient>"; DO NOT EDIT.
Package connect provides NS, NSE registry server chain elements providing access to remote registry servers Code generated by "-output ns_client_map.gen.go -type nsClientMap<string,*nsClient> -output ns_client_map.gen.go -type nsClientMap<string,*nsClient>"; DO NOT EDIT.
dnsresolve
Package dnsresolve provides registry chain elements that can resolve passed Domain to URL
Package dnsresolve provides registry chain elements that can resolve passed Domain to URL
endpointurls
Package endpointurls provides registry.NetworkServiceEndpointRegistryServer that can be injected in the chain of registry.NetworkServiceEndpointRegistryServer to get an actual nses of registry.NetworkServiceEndpoint URLs.
Package endpointurls provides registry.NetworkServiceEndpointRegistryServer that can be injected in the chain of registry.NetworkServiceEndpointRegistryServer to get an actual nses of registry.NetworkServiceEndpoint URLs.
expire
Package expire provides registry server chain elements for unregistering expired endpoints, services
Package expire provides registry server chain elements for unregistering expired endpoints, services
heal
Package heal provides NS, NSE registry client chain elements for healing failed remote side Code generated by "-output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo> -output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo>"; DO NOT EDIT.
Package heal provides NS, NSE registry client chain elements for healing failed remote side Code generated by "-output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo> -output ns_info_map.gen.go -type nsInfoMap<string,*nsInfo>"; DO NOT EDIT.
localbypass
Package localbypass implements a chain element to set NSMgr URL to endpoints on registration and set back endpoints URLs on find
Package localbypass implements a chain element to set NSMgr URL to endpoints on registration and set back endpoints URLs on find
memory
Package memory provides NSM registry chain elements to building memory-based registries Code generated by "-output ns_sync_map.gen.go -type NetworkServiceSyncMap<string,*github.com/networkservicemesh/api/pkg/api/registry.NetworkService> -output ns_sync_map.gen.go -type NetworkServiceSyncMap<string,*github.com/networkservicemesh/api/pkg/api/registry.NetworkService>"; DO NOT EDIT.
Package memory provides NSM registry chain elements to building memory-based registries Code generated by "-output ns_sync_map.gen.go -type NetworkServiceSyncMap<string,*github.com/networkservicemesh/api/pkg/api/registry.NetworkService> -output ns_sync_map.gen.go -type NetworkServiceSyncMap<string,*github.com/networkservicemesh/api/pkg/api/registry.NetworkService>"; DO NOT EDIT.
null
Package null provides simple registry chain elements that do nothing by call next and returns what comes back.
Package null provides simple registry chain elements that do nothing by call next and returns what comes back.
proxy
Package proxy provides registry chain elements that can put URL to the proxy registry to the context in case of interdomain upstream.
Package proxy provides registry chain elements that can put URL to the proxy registry to the context in case of interdomain upstream.
querycache
Code generated by "-output cache_entry_map.gen.go -type cacheEntryMap<string,*cacheEntry> -output cache_entry_map.gen.go -type cacheEntryMap<string,*cacheEntry>"; DO NOT EDIT.
Code generated by "-output cache_entry_map.gen.go -type cacheEntryMap<string,*cacheEntry> -output cache_entry_map.gen.go -type cacheEntryMap<string,*cacheEntry>"; DO NOT EDIT.
recvfd
Code generated by "-output per_endpoint_file_map.gen.go -type perEndpointFileMapMap<string,*perEndpointFileMap> -output per_endpoint_file_map.gen.go -type perEndpointFileMapMap<string,*perEndpointFileMap>"; DO NOT EDIT.
Code generated by "-output per_endpoint_file_map.gen.go -type perEndpointFileMapMap<string,*perEndpointFileMap> -output per_endpoint_file_map.gen.go -type perEndpointFileMapMap<string,*perEndpointFileMap>"; DO NOT EDIT.
refresh
Package refresh provides registry elements for refreshing resources Code generated by "-output sync_map.gen.go -type cancelsMap<string,context.CancelFunc> -output sync_map.gen.go -type cancelsMap<string,context.CancelFunc>"; DO NOT EDIT.
Package refresh provides registry elements for refreshing resources Code generated by "-output sync_map.gen.go -type cancelsMap<string,context.CancelFunc> -output sync_map.gen.go -type cancelsMap<string,context.CancelFunc>"; DO NOT EDIT.
sendfd
Package sendfd provides a registry.NetworkServiceEndpointRegistryClient chain element to convert any unix file socket endpoint.URLs into 'inode://${dev}/${ino}' urls and send the fd over the unix file socket.
Package sendfd provides a registry.NetworkServiceEndpointRegistryClient chain element to convert any unix file socket endpoint.URLs into 'inode://${dev}/${ino}' urls and send the fd over the unix file socket.
serialize
Package serialize provides NSE, NS registry chain elements for serial Register, Unregister event processing
Package serialize provides NSE, NS registry chain elements for serial Register, Unregister event processing
setlogoption
Package setlogoption implements a chain element to set log options before full chain
Package setlogoption implements a chain element to set log options before full chain
setpayload
Package setpayload provides registry elements for setting ns.payload default
Package setpayload provides registry elements for setting ns.payload default
setregistrationtime
Package setregistrationtime provides registry server chain elements for initial registration time setting
Package setregistrationtime provides registry server chain elements for initial registration time setting
seturl
Package seturl provides registry.NetworkServiceEndpointRegistryServer that sets passed url for each found nse
Package seturl provides registry.NetworkServiceEndpointRegistryServer that sets passed url for each found nse
storeurl
Package storeurl provides chain element that stores incoming NSE URLs into map
Package storeurl provides chain element that stores incoming NSE URLs into map
swapip
Package swapip allows to replace internal NSE address to external for register/unregister/find queries.
Package swapip allows to replace internal NSE address to external for register/unregister/find queries.
core
adapters
Package adapters provide API to converting client to server and vise versa Package adapters provide API to converting client to server and vise versa
Package adapters provide API to converting client to server and vise versa Package adapters provide API to converting client to server and vise versa
chain
Package chain provides API to make chains of registry elements
Package chain provides API to make chains of registry elements
next
Package next provides a mechanism for chained registry.{Registry,Discovery}{Server,Client}s to call the next element in the chain.
Package next provides a mechanism for chained registry.{Registry,Discovery}{Server,Client}s to call the next element in the chain.
streamchannel
Package streamchannel provides find client/servers based on channels
Package streamchannel provides find client/servers based on channels
streamcontext
Package streamcontext provides API to extend context for find client/server
Package streamcontext provides API to extend context for find client/server
trace
Package trace provides a wrapper for tracing around a registry.{Registry,Discovery}{Server,Client}
Package trace provides a wrapper for tracing around a registry.{Registry,Discovery}{Server,Client}
utils
checks/checkcontext
Package checkcontext - provides registry chain elements for checking the context.Context passed on by the previous chain element
Package checkcontext - provides registry chain elements for checking the context.Context passed on by the previous chain element
checks/checknse
Package checknse - provides registry chain elements for checking the *registry.NetworkServiceEndpoint passed on by the previous chain element
Package checknse - provides registry chain elements for checking the *registry.NetworkServiceEndpoint passed on by the previous chain element
inject/injecterror
Package injecterror provides chain elements returning given error on Register, Unregister on given times
Package injecterror provides chain elements returning given error on Register, Unregister on given times

Jump to

Keyboard shortcuts

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