device

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package device :

Index

Constants

This section is empty.

Variables

View Source
var DeviceServiceClientFactory = func(cc *grpc.ClientConn) deviceapi.DeviceServiceClient {
	return deviceapi.NewDeviceServiceClient(cc)
}

DeviceServiceClientFactory : Default DeviceServiceClient creation.

Functions

func CreateDeviceServiceClient

func CreateDeviceServiceClient(cc *grpc.ClientConn) deviceapi.DeviceServiceClient

CreateDeviceServiceClient creates and returns a new topo device client

func NewService

func NewService() (northbound.Service, error)

NewService returns a new device Service

func ValidateDevice added in v0.6.3

func ValidateDevice(device *deviceapi.Device) error

ValidateDevice validates the given device

Types

type Server

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

Server implements the gRPC service for administrative facilities.

func (*Server) Add

Add :

func (*Server) Get

Get :

func (*Server) List

List :

func (*Server) Remove

Remove :

func (*Server) Update

Update :

type Service

type Service struct {
	northbound.Service
	// contains filtered or unexported fields
}

Service is a Service implementation for administration.

func (Service) Register

func (s Service) Register(r *grpc.Server)

Register registers the Service with the gRPC server.

Jump to

Keyboard shortcuts

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