Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string ServiceName string Labels map[string]string MaxTokenLifetime time.Duration MTU int }
Config for Endpoint
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint -
func NewEndpoint ¶
func NewEndpoint( ctx context.Context, config *Config, networkServiceRegistryClient registryapi.NetworkServiceRegistryClient, networkServiceEndpointRegistryClient registryapi.NetworkServiceEndpointRegistryClient, additionalFunctionality ...networkservice.NetworkServiceServer) (*Endpoint, error)
NewEndpoint - Creates and starts NSM endpoint according to the configuration, which can be registered or unregistered in NSM using the respective Register/Unregister methods.
Note: on teardown if endpoint is expected to explicitly unregister, then the context shall not be cancelled/closed before Delete() is called
type NSEConnectionFactory ¶
type NSEConnectionFactory interface {
NewNSEIPContext() (*networkservice.IPContext, error)
}
Click to show internal directories.
Click to hide internal directories.