endpoint

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 22 Imported by: 2

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
	IPReleaseDelay   time.Duration
}

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

func (*Endpoint) Delete

func (e *Endpoint) Delete(ctx context.Context)

Delete -

func (*Endpoint) GetUrl

func (e *Endpoint) GetUrl() string

GetUrl - Gets URL of the server

func (*Endpoint) Register added in v1.0.8

func (e *Endpoint) Register(ctx context.Context) error

Register - Registers Network Service and Network Service Endpoint in NSM.

func (*Endpoint) Unregister added in v1.0.8

func (e *Endpoint) Unregister(ctx context.Context) error

Unregister - Unregisters Network Service Endpoint in NSM.

type NSEConnectionFactory

type NSEConnectionFactory interface {
	NewNSEIPContext() (*networkservice.IPContext, error)
}

Jump to

Keyboard shortcuts

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