proxyregistryserver

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package proxyregistryserver - forwards k8s commands from local registry to remote one

Index

Constants

View Source
const (
	ProxyNsmdAPIAddressEnv         = "PROXY_NSMD_ADDRESS"
	ProxyNsmdAPIAddressDefaults    = "pnsmgr-svc:5006"
	ProxyNsmdK8sRemotePortEnv      = "PROXY_NSMD_K8S_REMOTE_PORT"
	ProxyNsmdK8sRemotePortDefaults = "80"
)

Default values and environment variables of proxy connection

View Source
const (
	// NSRegistryForwarderLogPrefix - log prefix
	NSRegistryForwarderLogPrefix = "Network Service Registry Forwarder"
	// NSMRSAddressEnv - environment variable - address of Network Service Registry Server to forward NSE registry requests
	NSMRSAddressEnv = "NSMRS_ADDRESS"
	// NSMRSReconnectInterval - reconnect interval to NSMRS if connection refused
	NSMRSReconnectInterval = 15 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(clientset *nsmClientset.Clientset, clusterInfoService clusterinfo.ClusterInfoServer) *grpc.Server

New starts proxy Network Service Discovery Server and Cluster Info Server

func NewK8sClusterInfoService

func NewK8sClusterInfoService(config *rest.Config) (clusterinfo.ClusterInfoServer, error)

NewK8sClusterInfoService creates a ClusterInfoServer

Types

This section is empty.

Jump to

Keyboard shortcuts

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