gnoi

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gnoi implements the simulated gNOI System service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	gnoiapi.UnimplementedSystemServer
	// contains filtered or unexported fields
}

Server implements the P4Runtime API

func NewServer

func NewServer(deviceID simapi.DeviceID, simulation *simulator.Simulation) *Server

NewServer creates a new gNOI System API server

func (Server) CancelReboot

CancelReboot is not implemented

func (Server) KillProcess

KillProcess is not implemented

func (Server) Ping

func (s Server) Ping(request *gnoiapi.PingRequest, server gnoiapi.System_PingServer) error

Ping is not implemented

func (Server) Reboot

func (s Server) Reboot(ctx context.Context, request *gnoiapi.RebootRequest) (*gnoiapi.RebootResponse, error)

Reboot is not implemented

func (Server) RebootStatus

RebootStatus is not implemented

func (Server) SetPackage

func (s Server) SetPackage(server gnoiapi.System_SetPackageServer) error

SetPackage is not implemented

func (Server) SwitchControlProcessor

SwitchControlProcessor is not implemented

func (Server) Time

func (s Server) Time(ctx context.Context, request *gnoiapi.TimeRequest) (*gnoiapi.TimeResponse, error)

Time returns device's time since start of epoch, expressed in nanoseconds

func (Server) Traceroute

func (s Server) Traceroute(request *gnoiapi.TracerouteRequest, server gnoiapi.System_TracerouteServer) error

Traceroute is not implemented

Jump to

Keyboard shortcuts

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