nsm

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	GRPCClient *grpc.ClientConn
	Config     *Config

	NetworkServiceEndpointRegistryClient registry.NetworkServiceEndpointRegistryClient
	NetworkServiceRegistryClient         registry.NetworkServiceRegistryClient
	GRPCDialOption                       []grpc.DialOption
	// contains filtered or unexported fields
}

APIClient -

func NewAPIClient

func NewAPIClient(ctx context.Context, config *Config) *APIClient

NewAPIClient -

func (*APIClient) Delete added in v0.4.0

func (apiClient *APIClient) Delete()

Delete - Cancels the context to tear down apiClient

func (*APIClient) GetClientOptions

func (apiClient *APIClient) GetClientOptions() []grpc.DialOption

type Config

type Config struct {
	Name             string
	ConnectTo        url.URL
	DialTimeout      time.Duration
	RequestTimeout   time.Duration
	MaxTokenLifetime time.Duration
}

Config for NSM API Client

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid checks if the configuration is valid

type NetworkServiceClient

type NetworkServiceClient interface {
	networkservice.NetworkServiceClient
}

Directories

Path Synopsis
Package interfacemonitor contains code implementing NetworkServiceServer and NetworkServiceClient to adverstise a listener when an nsm interface has been created or removed
Package interfacemonitor contains code implementing NetworkServiceServer and NetworkServiceClient to adverstise a listener when an nsm interface has been created or removed
Package interfacename contains code implementing NetworkServiceServer and NetworkServiceClient to generate and set the name of the interface in the mechanism and the mechanism preferences of the requests
Package interfacename contains code implementing NetworkServiceServer and NetworkServiceClient to generate and set the name of the interface in the mechanism and the mechanism preferences of the requests
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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