northbound

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 71

Documentation

Overview

Package northbound houses implementations of various application-oriented interfaces for the ONOS configuration subsystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityConfig added in v0.6.7

type SecurityConfig struct {
	AuthenticationEnabled bool
	AuthorizationEnabled  bool
}

SecurityConfig security configuration

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides NB gNMI server for onos-config.

func NewServer

func NewServer(cfg *ServerConfig) *Server

NewServer initializes gNMI server using the supplied configuration.

func (*Server) AddService

func (s *Server) AddService(r Service)

AddService adds a Service to the server to be registered on Serve.

func (*Server) GracefulStop added in v0.7.7

func (s *Server) GracefulStop()

GracefulStop stops the server gracefully.

func (*Server) Serve

func (s *Server) Serve(started func(string)) error

Serve starts the NB gNMI server.

func (*Server) Stop added in v0.7.7

func (s *Server) Stop()

Stop stops the server.

type ServerConfig

type ServerConfig struct {
	CaPath      *string
	KeyPath     *string
	CertPath    *string
	Port        int16
	Insecure    bool
	SecurityCfg *SecurityConfig
}

ServerConfig comprises a set of server configuration options.

func NewServerCfg added in v0.6.8

func NewServerCfg(caPath string, keyPath string, certPath string, port int16, secure bool, secCfg SecurityConfig) *ServerConfig

NewServerCfg creates a server config created with the specified end-point security details.

func NewServerConfig

func NewServerConfig(caPath string, keyPath string, certPath string, port int16, secure bool) *ServerConfig

NewServerConfig creates a server config created with the specified end-point security details. Deprecated: Use NewServerCfg instead

type Service

type Service interface {
	Register(s *grpc.Server)
}

Service provides service-specific registration for grpc services.

Jump to

Keyboard shortcuts

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