Documentation ¶
Overview ¶
Package gnoi implements the simulated gNOI System service
Index ¶
- type Server
- func (s Server) CancelReboot(ctx context.Context, request *gnoiapi.CancelRebootRequest) (*gnoiapi.CancelRebootResponse, error)
- func (s Server) KillProcess(ctx context.Context, request *gnoiapi.KillProcessRequest) (*gnoiapi.KillProcessResponse, error)
- func (s Server) Ping(request *gnoiapi.PingRequest, server gnoiapi.System_PingServer) error
- func (s Server) Reboot(ctx context.Context, request *gnoiapi.RebootRequest) (*gnoiapi.RebootResponse, error)
- func (s Server) RebootStatus(ctx context.Context, request *gnoiapi.RebootStatusRequest) (*gnoiapi.RebootStatusResponse, error)
- func (s Server) SetPackage(server gnoiapi.System_SetPackageServer) error
- func (s Server) SwitchControlProcessor(ctx context.Context, request *gnoiapi.SwitchControlProcessorRequest) (*gnoiapi.SwitchControlProcessorResponse, error)
- func (s Server) Time(ctx context.Context, request *gnoiapi.TimeRequest) (*gnoiapi.TimeResponse, error)
- func (s Server) Traceroute(request *gnoiapi.TracerouteRequest, server gnoiapi.System_TracerouteServer) error
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 ¶
func (s Server) CancelReboot(ctx context.Context, request *gnoiapi.CancelRebootRequest) (*gnoiapi.CancelRebootResponse, error)
CancelReboot is not implemented
func (Server) KillProcess ¶
func (s Server) KillProcess(ctx context.Context, request *gnoiapi.KillProcessRequest) (*gnoiapi.KillProcessResponse, error)
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 ¶
func (s Server) RebootStatus(ctx context.Context, request *gnoiapi.RebootStatusRequest) (*gnoiapi.RebootStatusResponse, error)
RebootStatus is not implemented
func (Server) SetPackage ¶
func (s Server) SetPackage(server gnoiapi.System_SetPackageServer) error
SetPackage is not implemented
func (Server) SwitchControlProcessor ¶
func (s Server) SwitchControlProcessor(ctx context.Context, request *gnoiapi.SwitchControlProcessorRequest) (*gnoiapi.SwitchControlProcessorResponse, error)
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
Click to show internal directories.
Click to hide internal directories.