Documentation ¶
Index ¶
- Variables
- func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)
- type CancelRebootRequest
- func (*CancelRebootRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelRebootRequest) GetMessage() string
- func (x *CancelRebootRequest) GetSubcomponents() []*types.Path
- func (*CancelRebootRequest) ProtoMessage()
- func (x *CancelRebootRequest) ProtoReflect() protoreflect.Message
- func (x *CancelRebootRequest) Reset()
- func (x *CancelRebootRequest) String() string
- type CancelRebootResponse
- type KillProcessRequest
- func (*KillProcessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KillProcessRequest) GetName() string
- func (x *KillProcessRequest) GetPid() uint32
- func (x *KillProcessRequest) GetRestart() bool
- func (x *KillProcessRequest) GetSignal() KillProcessRequest_Signal
- func (*KillProcessRequest) ProtoMessage()
- func (x *KillProcessRequest) ProtoReflect() protoreflect.Message
- func (x *KillProcessRequest) Reset()
- func (x *KillProcessRequest) String() string
- type KillProcessRequest_Signal
- func (KillProcessRequest_Signal) Descriptor() protoreflect.EnumDescriptor
- func (x KillProcessRequest_Signal) Enum() *KillProcessRequest_Signal
- func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int)deprecated
- func (x KillProcessRequest_Signal) Number() protoreflect.EnumNumber
- func (x KillProcessRequest_Signal) String() string
- func (KillProcessRequest_Signal) Type() protoreflect.EnumType
- type KillProcessResponse
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetActivate() bool
- func (x *Package) GetFilename() string
- func (x *Package) GetRemoteDownload() *common.RemoteDownload
- func (x *Package) GetVersion() string
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PingRequest) GetCount() int32
- func (x *PingRequest) GetDestination() string
- func (x *PingRequest) GetDoNotFragment() bool
- func (x *PingRequest) GetDoNotResolve() bool
- func (x *PingRequest) GetInterval() int64
- func (x *PingRequest) GetL3Protocol() types.L3Protocol
- func (x *PingRequest) GetNetworkInstance() string
- func (x *PingRequest) GetSize() int32
- func (x *PingRequest) GetSource() string
- func (x *PingRequest) GetWait() int64
- func (*PingRequest) ProtoMessage()
- func (x *PingRequest) ProtoReflect() protoreflect.Message
- func (x *PingRequest) Reset()
- func (x *PingRequest) String() string
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingResponse) GetAvgTime() int64
- func (x *PingResponse) GetBytes() int32
- func (x *PingResponse) GetMaxTime() int64
- func (x *PingResponse) GetMinTime() int64
- func (x *PingResponse) GetReceived() int32
- func (x *PingResponse) GetSent() int32
- func (x *PingResponse) GetSequence() int32
- func (x *PingResponse) GetSource() string
- func (x *PingResponse) GetStdDev() int64
- func (x *PingResponse) GetTime() int64
- func (x *PingResponse) GetTtl() int32
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (x *PingResponse) String() string
- type RebootMethod
- func (RebootMethod) Descriptor() protoreflect.EnumDescriptor
- func (x RebootMethod) Enum() *RebootMethod
- func (RebootMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x RebootMethod) Number() protoreflect.EnumNumber
- func (x RebootMethod) String() string
- func (RebootMethod) Type() protoreflect.EnumType
- type RebootRequest
- func (*RebootRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RebootRequest) GetDelay() uint64
- func (x *RebootRequest) GetForce() bool
- func (x *RebootRequest) GetMessage() string
- func (x *RebootRequest) GetMethod() RebootMethod
- func (x *RebootRequest) GetSubcomponents() []*types.Path
- func (*RebootRequest) ProtoMessage()
- func (x *RebootRequest) ProtoReflect() protoreflect.Message
- func (x *RebootRequest) Reset()
- func (x *RebootRequest) String() string
- type RebootResponse
- type RebootStatus
- func (*RebootStatus) Descriptor() ([]byte, []int)deprecated
- func (x *RebootStatus) GetMessage() string
- func (x *RebootStatus) GetStatus() RebootStatus_Status
- func (*RebootStatus) ProtoMessage()
- func (x *RebootStatus) ProtoReflect() protoreflect.Message
- func (x *RebootStatus) Reset()
- func (x *RebootStatus) String() string
- type RebootStatusRequest
- func (*RebootStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RebootStatusRequest) GetSubcomponents() []*types.Path
- func (*RebootStatusRequest) ProtoMessage()
- func (x *RebootStatusRequest) ProtoReflect() protoreflect.Message
- func (x *RebootStatusRequest) Reset()
- func (x *RebootStatusRequest) String() string
- type RebootStatusResponse
- func (*RebootStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RebootStatusResponse) GetActive() bool
- func (x *RebootStatusResponse) GetCount() uint32
- func (x *RebootStatusResponse) GetMethod() RebootMethod
- func (x *RebootStatusResponse) GetReason() string
- func (x *RebootStatusResponse) GetStatus() *RebootStatus
- func (x *RebootStatusResponse) GetWait() uint64
- func (x *RebootStatusResponse) GetWhen() uint64
- func (*RebootStatusResponse) ProtoMessage()
- func (x *RebootStatusResponse) ProtoReflect() protoreflect.Message
- func (x *RebootStatusResponse) Reset()
- func (x *RebootStatusResponse) String() string
- type RebootStatus_Status
- func (RebootStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x RebootStatus_Status) Enum() *RebootStatus_Status
- func (RebootStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x RebootStatus_Status) Number() protoreflect.EnumNumber
- func (x RebootStatus_Status) String() string
- func (RebootStatus_Status) Type() protoreflect.EnumType
- type SetPackageRequest
- func (*SetPackageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPackageRequest) GetContents() []byte
- func (x *SetPackageRequest) GetHash() *types.HashType
- func (x *SetPackageRequest) GetPackage() *Package
- func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request
- func (*SetPackageRequest) ProtoMessage()
- func (x *SetPackageRequest) ProtoReflect() protoreflect.Message
- func (x *SetPackageRequest) Reset()
- func (x *SetPackageRequest) String() string
- type SetPackageRequest_Contents
- type SetPackageRequest_Hash
- type SetPackageRequest_Package
- type SetPackageResponse
- type SwitchControlProcessorRequest
- func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchControlProcessorRequest) GetControlProcessor() *types.Path
- func (*SwitchControlProcessorRequest) ProtoMessage()
- func (x *SwitchControlProcessorRequest) ProtoReflect() protoreflect.Message
- func (x *SwitchControlProcessorRequest) Reset()
- func (x *SwitchControlProcessorRequest) String() string
- type SwitchControlProcessorResponse
- func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchControlProcessorResponse) GetControlProcessor() *types.Path
- func (x *SwitchControlProcessorResponse) GetUptime() int64
- func (x *SwitchControlProcessorResponse) GetVersion() string
- func (*SwitchControlProcessorResponse) ProtoMessage()
- func (x *SwitchControlProcessorResponse) ProtoReflect() protoreflect.Message
- func (x *SwitchControlProcessorResponse) Reset()
- func (x *SwitchControlProcessorResponse) String() string
- type SystemClient
- type SystemServer
- type System_PingClient
- type System_PingServer
- type System_SetPackageClient
- type System_SetPackageServer
- type System_TracerouteClient
- type System_TracerouteServer
- type TimeRequest
- type TimeResponse
- type TracerouteRequest
- func (*TracerouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TracerouteRequest) GetDestination() string
- func (x *TracerouteRequest) GetDoNotFragment() bool
- func (x *TracerouteRequest) GetDoNotLookupAsn() bool
- func (x *TracerouteRequest) GetDoNotResolve() bool
- func (x *TracerouteRequest) GetInitialTtl() uint32
- func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol
- func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol
- func (x *TracerouteRequest) GetMaxTtl() int32
- func (x *TracerouteRequest) GetNetworkInstance() string
- func (x *TracerouteRequest) GetSource() string
- func (x *TracerouteRequest) GetWait() int64
- func (*TracerouteRequest) ProtoMessage()
- func (x *TracerouteRequest) ProtoReflect() protoreflect.Message
- func (x *TracerouteRequest) Reset()
- func (x *TracerouteRequest) String() string
- type TracerouteRequest_L4Protocol
- func (TracerouteRequest_L4Protocol) Descriptor() protoreflect.EnumDescriptor
- func (x TracerouteRequest_L4Protocol) Enum() *TracerouteRequest_L4Protocol
- func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int)deprecated
- func (x TracerouteRequest_L4Protocol) Number() protoreflect.EnumNumber
- func (x TracerouteRequest_L4Protocol) String() string
- func (TracerouteRequest_L4Protocol) Type() protoreflect.EnumType
- type TracerouteResponse
- func (*TracerouteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TracerouteResponse) GetAddress() string
- func (x *TracerouteResponse) GetAsPath() []int32
- func (x *TracerouteResponse) GetDestinationAddress() string
- func (x *TracerouteResponse) GetDestinationName() string
- func (x *TracerouteResponse) GetHop() int32
- func (x *TracerouteResponse) GetHops() int32
- func (x *TracerouteResponse) GetIcmpCode() int32
- func (x *TracerouteResponse) GetIcmpExtData() []*TracerouteResponse_IcmpExtData
- func (x *TracerouteResponse) GetMpls() map[string]string
- func (x *TracerouteResponse) GetName() string
- func (x *TracerouteResponse) GetPacketSize() int32
- func (x *TracerouteResponse) GetRtt() int64
- func (x *TracerouteResponse) GetState() TracerouteResponse_State
- func (*TracerouteResponse) ProtoMessage()
- func (x *TracerouteResponse) ProtoReflect() protoreflect.Message
- func (x *TracerouteResponse) Reset()
- func (x *TracerouteResponse) String() string
- type TracerouteResponse_IcmpExtData
- func (*TracerouteResponse_IcmpExtData) Descriptor() ([]byte, []int)deprecated
- func (x *TracerouteResponse_IcmpExtData) GetClass() uint32
- func (x *TracerouteResponse_IcmpExtData) GetData() []uint32
- func (x *TracerouteResponse_IcmpExtData) GetType() uint32
- func (*TracerouteResponse_IcmpExtData) ProtoMessage()
- func (x *TracerouteResponse_IcmpExtData) ProtoReflect() protoreflect.Message
- func (x *TracerouteResponse_IcmpExtData) Reset()
- func (x *TracerouteResponse_IcmpExtData) String() string
- type TracerouteResponse_State
- func (TracerouteResponse_State) Descriptor() protoreflect.EnumDescriptor
- func (x TracerouteResponse_State) Enum() *TracerouteResponse_State
- func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x TracerouteResponse_State) Number() protoreflect.EnumNumber
- func (x TracerouteResponse_State) String() string
- func (TracerouteResponse_State) Type() protoreflect.EnumType
- type UnimplementedSystemServer
- func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error)
- func (UnimplementedSystemServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error)
- func (UnimplementedSystemServer) Ping(*PingRequest, System_PingServer) error
- func (UnimplementedSystemServer) Reboot(context.Context, *RebootRequest) (*RebootResponse, error)
- func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error)
- func (UnimplementedSystemServer) SetPackage(System_SetPackageServer) error
- func (UnimplementedSystemServer) SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error)
- func (UnimplementedSystemServer) Time(context.Context, *TimeRequest) (*TimeResponse, error)
- func (UnimplementedSystemServer) Traceroute(*TracerouteRequest, System_TracerouteServer) error
- type UnsafeSystemServer
Constants ¶
This section is empty.
Variables ¶
var ( RebootMethod_name = map[int32]string{ 0: "UNKNOWN", 1: "COLD", 2: "POWERDOWN", 3: "HALT", 4: "WARM", 5: "NSF", 7: "POWERUP", } RebootMethod_value = map[string]int32{ "UNKNOWN": 0, "COLD": 1, "POWERDOWN": 2, "HALT": 3, "WARM": 4, "NSF": 5, "POWERUP": 7, } )
Enum value maps for RebootMethod.
var ( RebootStatus_Status_name = map[int32]string{ 0: "STATUS_UNKNOWN", 1: "STATUS_SUCCESS", 2: "STATUS_RETRIABLE_FAILURE", 3: "STATUS_FAILURE", } RebootStatus_Status_value = map[string]int32{ "STATUS_UNKNOWN": 0, "STATUS_SUCCESS": 1, "STATUS_RETRIABLE_FAILURE": 2, "STATUS_FAILURE": 3, } )
Enum value maps for RebootStatus_Status.
var ( TracerouteRequest_L4Protocol_name = map[int32]string{ 0: "ICMP", 1: "TCP", 2: "UDP", } TracerouteRequest_L4Protocol_value = map[string]int32{ "ICMP": 0, "TCP": 1, "UDP": 2, } )
Enum value maps for TracerouteRequest_L4Protocol.
var ( TracerouteResponse_State_name = map[int32]string{ 0: "DEFAULT", 1: "NONE", 2: "UNKNOWN", 3: "ICMP", 4: "HOST_UNREACHABLE", 5: "NETWORK_UNREACHABLE", 6: "PROTOCOL_UNREACHABLE", 7: "SOURCE_ROUTE_FAILED", 8: "FRAGMENTATION_NEEDED", 9: "PROHIBITED", 10: "PRECEDENCE_VIOLATION", 11: "PRECEDENCE_CUTOFF", } TracerouteResponse_State_value = map[string]int32{ "DEFAULT": 0, "NONE": 1, "UNKNOWN": 2, "ICMP": 3, "HOST_UNREACHABLE": 4, "NETWORK_UNREACHABLE": 5, "PROTOCOL_UNREACHABLE": 6, "SOURCE_ROUTE_FAILED": 7, "FRAGMENTATION_NEEDED": 8, "PROHIBITED": 9, "PRECEDENCE_VIOLATION": 10, "PRECEDENCE_CUTOFF": 11, } )
Enum value maps for TracerouteResponse_State.
var ( KillProcessRequest_Signal_name = map[int32]string{ 0: "SIGNAL_UNSPECIFIED", 1: "SIGNAL_TERM", 2: "SIGNAL_KILL", 3: "SIGNAL_HUP", 4: "SIGNAL_ABRT", } KillProcessRequest_Signal_value = map[string]int32{ "SIGNAL_UNSPECIFIED": 0, "SIGNAL_TERM": 1, "SIGNAL_KILL": 2, "SIGNAL_HUP": 3, "SIGNAL_ABRT": 4, } )
Enum value maps for KillProcessRequest_Signal.
var File_system_system_proto protoreflect.FileDescriptor
var System_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.system.System", HandlerType: (*SystemServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Time", Handler: _System_Time_Handler, }, { MethodName: "SwitchControlProcessor", Handler: _System_SwitchControlProcessor_Handler, }, { MethodName: "Reboot", Handler: _System_Reboot_Handler, }, { MethodName: "RebootStatus", Handler: _System_RebootStatus_Handler, }, { MethodName: "CancelReboot", Handler: _System_CancelReboot_Handler, }, { MethodName: "KillProcess", Handler: _System_KillProcess_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Ping", Handler: _System_Ping_Handler, ServerStreams: true, }, { StreamName: "Traceroute", Handler: _System_Traceroute_Handler, ServerStreams: true, }, { StreamName: "SetPackage", Handler: _System_SetPackage_Handler, ClientStreams: true, }, }, Metadata: "system/system.proto", }
System_ServiceDesc is the grpc.ServiceDesc for System service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSystemServer ¶
func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)
Types ¶
type CancelRebootRequest ¶
type CancelRebootRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // contains filtered or unexported fields }
func (*CancelRebootRequest) Descriptor
deprecated
func (*CancelRebootRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelRebootRequest.ProtoReflect.Descriptor instead.
func (*CancelRebootRequest) GetMessage ¶
func (x *CancelRebootRequest) GetMessage() string
func (*CancelRebootRequest) GetSubcomponents ¶
func (x *CancelRebootRequest) GetSubcomponents() []*types.Path
func (*CancelRebootRequest) ProtoMessage ¶
func (*CancelRebootRequest) ProtoMessage()
func (*CancelRebootRequest) ProtoReflect ¶
func (x *CancelRebootRequest) ProtoReflect() protoreflect.Message
func (*CancelRebootRequest) Reset ¶
func (x *CancelRebootRequest) Reset()
func (*CancelRebootRequest) String ¶
func (x *CancelRebootRequest) String() string
type CancelRebootResponse ¶
type CancelRebootResponse struct {
// contains filtered or unexported fields
}
func (*CancelRebootResponse) Descriptor
deprecated
func (*CancelRebootResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelRebootResponse.ProtoReflect.Descriptor instead.
func (*CancelRebootResponse) ProtoMessage ¶
func (*CancelRebootResponse) ProtoMessage()
func (*CancelRebootResponse) ProtoReflect ¶
func (x *CancelRebootResponse) ProtoReflect() protoreflect.Message
func (*CancelRebootResponse) Reset ¶
func (x *CancelRebootResponse) Reset()
func (*CancelRebootResponse) String ¶
func (x *CancelRebootResponse) String() string
type KillProcessRequest ¶
type KillProcessRequest struct { Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Signal KillProcessRequest_Signal `protobuf:"varint,3,opt,name=signal,proto3,enum=gnoi.system.KillProcessRequest_Signal" json:"signal,omitempty"` Restart bool `protobuf:"varint,4,opt,name=restart,proto3" json:"restart,omitempty"` // contains filtered or unexported fields }
func (*KillProcessRequest) Descriptor
deprecated
func (*KillProcessRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillProcessRequest.ProtoReflect.Descriptor instead.
func (*KillProcessRequest) GetName ¶
func (x *KillProcessRequest) GetName() string
func (*KillProcessRequest) GetPid ¶
func (x *KillProcessRequest) GetPid() uint32
func (*KillProcessRequest) GetRestart ¶
func (x *KillProcessRequest) GetRestart() bool
func (*KillProcessRequest) GetSignal ¶
func (x *KillProcessRequest) GetSignal() KillProcessRequest_Signal
func (*KillProcessRequest) ProtoMessage ¶
func (*KillProcessRequest) ProtoMessage()
func (*KillProcessRequest) ProtoReflect ¶
func (x *KillProcessRequest) ProtoReflect() protoreflect.Message
func (*KillProcessRequest) Reset ¶
func (x *KillProcessRequest) Reset()
func (*KillProcessRequest) String ¶
func (x *KillProcessRequest) String() string
type KillProcessRequest_Signal ¶
type KillProcessRequest_Signal int32
const ( KillProcessRequest_SIGNAL_UNSPECIFIED KillProcessRequest_Signal = 0 KillProcessRequest_SIGNAL_TERM KillProcessRequest_Signal = 1 KillProcessRequest_SIGNAL_KILL KillProcessRequest_Signal = 2 KillProcessRequest_SIGNAL_HUP KillProcessRequest_Signal = 3 KillProcessRequest_SIGNAL_ABRT KillProcessRequest_Signal = 4 )
func (KillProcessRequest_Signal) Descriptor ¶
func (KillProcessRequest_Signal) Descriptor() protoreflect.EnumDescriptor
func (KillProcessRequest_Signal) Enum ¶
func (x KillProcessRequest_Signal) Enum() *KillProcessRequest_Signal
func (KillProcessRequest_Signal) EnumDescriptor
deprecated
func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int)
Deprecated: Use KillProcessRequest_Signal.Descriptor instead.
func (KillProcessRequest_Signal) Number ¶
func (x KillProcessRequest_Signal) Number() protoreflect.EnumNumber
func (KillProcessRequest_Signal) String ¶
func (x KillProcessRequest_Signal) String() string
func (KillProcessRequest_Signal) Type ¶
func (KillProcessRequest_Signal) Type() protoreflect.EnumType
type KillProcessResponse ¶
type KillProcessResponse struct {
// contains filtered or unexported fields
}
func (*KillProcessResponse) Descriptor
deprecated
func (*KillProcessResponse) Descriptor() ([]byte, []int)
Deprecated: Use KillProcessResponse.ProtoReflect.Descriptor instead.
func (*KillProcessResponse) ProtoMessage ¶
func (*KillProcessResponse) ProtoMessage()
func (*KillProcessResponse) ProtoReflect ¶
func (x *KillProcessResponse) ProtoReflect() protoreflect.Message
func (*KillProcessResponse) Reset ¶
func (x *KillProcessResponse) Reset()
func (*KillProcessResponse) String ¶
func (x *KillProcessResponse) String() string
type Package ¶
type Package struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetActivate ¶
func (*Package) GetFilename ¶
func (*Package) GetRemoteDownload ¶
func (x *Package) GetRemoteDownload() *common.RemoteDownload
func (*Package) GetVersion ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type PingRequest ¶
type PingRequest struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` NetworkInstance string `protobuf:"bytes,10,opt,name=network_instance,json=networkInstance,proto3" json:"network_instance,omitempty"` // contains filtered or unexported fields }
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) GetCount ¶
func (x *PingRequest) GetCount() int32
func (*PingRequest) GetDestination ¶
func (x *PingRequest) GetDestination() string
func (*PingRequest) GetDoNotFragment ¶
func (x *PingRequest) GetDoNotFragment() bool
func (*PingRequest) GetDoNotResolve ¶
func (x *PingRequest) GetDoNotResolve() bool
func (*PingRequest) GetInterval ¶
func (x *PingRequest) GetInterval() int64
func (*PingRequest) GetL3Protocol ¶
func (x *PingRequest) GetL3Protocol() types.L3Protocol
func (*PingRequest) GetNetworkInstance ¶ added in v0.2.0
func (x *PingRequest) GetNetworkInstance() string
func (*PingRequest) GetSize ¶
func (x *PingRequest) GetSize() int32
func (*PingRequest) GetSource ¶
func (x *PingRequest) GetSource() string
func (*PingRequest) GetWait ¶
func (x *PingRequest) GetWait() int64
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetAvgTime ¶
func (x *PingResponse) GetAvgTime() int64
func (*PingResponse) GetBytes ¶
func (x *PingResponse) GetBytes() int32
func (*PingResponse) GetMaxTime ¶
func (x *PingResponse) GetMaxTime() int64
func (*PingResponse) GetMinTime ¶
func (x *PingResponse) GetMinTime() int64
func (*PingResponse) GetReceived ¶
func (x *PingResponse) GetReceived() int32
func (*PingResponse) GetSent ¶
func (x *PingResponse) GetSent() int32
func (*PingResponse) GetSequence ¶
func (x *PingResponse) GetSequence() int32
func (*PingResponse) GetSource ¶
func (x *PingResponse) GetSource() string
func (*PingResponse) GetStdDev ¶
func (x *PingResponse) GetStdDev() int64
func (*PingResponse) GetTime ¶
func (x *PingResponse) GetTime() int64
func (*PingResponse) GetTtl ¶
func (x *PingResponse) GetTtl() int32
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type RebootMethod ¶
type RebootMethod int32
const ( RebootMethod_UNKNOWN RebootMethod = 0 RebootMethod_COLD RebootMethod = 1 RebootMethod_POWERDOWN RebootMethod = 2 RebootMethod_HALT RebootMethod = 3 RebootMethod_WARM RebootMethod = 4 RebootMethod_NSF RebootMethod = 5 RebootMethod_POWERUP RebootMethod = 7 )
func (RebootMethod) Descriptor ¶
func (RebootMethod) Descriptor() protoreflect.EnumDescriptor
func (RebootMethod) Enum ¶
func (x RebootMethod) Enum() *RebootMethod
func (RebootMethod) EnumDescriptor
deprecated
func (RebootMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use RebootMethod.Descriptor instead.
func (RebootMethod) Number ¶
func (x RebootMethod) Number() protoreflect.EnumNumber
func (RebootMethod) String ¶
func (x RebootMethod) String() string
func (RebootMethod) Type ¶
func (RebootMethod) Type() protoreflect.EnumType
type RebootRequest ¶
type RebootRequest struct { Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
func (*RebootRequest) Descriptor
deprecated
func (*RebootRequest) Descriptor() ([]byte, []int)
Deprecated: Use RebootRequest.ProtoReflect.Descriptor instead.
func (*RebootRequest) GetDelay ¶
func (x *RebootRequest) GetDelay() uint64
func (*RebootRequest) GetForce ¶
func (x *RebootRequest) GetForce() bool
func (*RebootRequest) GetMessage ¶
func (x *RebootRequest) GetMessage() string
func (*RebootRequest) GetMethod ¶
func (x *RebootRequest) GetMethod() RebootMethod
func (*RebootRequest) GetSubcomponents ¶
func (x *RebootRequest) GetSubcomponents() []*types.Path
func (*RebootRequest) ProtoMessage ¶
func (*RebootRequest) ProtoMessage()
func (*RebootRequest) ProtoReflect ¶
func (x *RebootRequest) ProtoReflect() protoreflect.Message
func (*RebootRequest) Reset ¶
func (x *RebootRequest) Reset()
func (*RebootRequest) String ¶
func (x *RebootRequest) String() string
type RebootResponse ¶
type RebootResponse struct {
// contains filtered or unexported fields
}
func (*RebootResponse) Descriptor
deprecated
func (*RebootResponse) Descriptor() ([]byte, []int)
Deprecated: Use RebootResponse.ProtoReflect.Descriptor instead.
func (*RebootResponse) ProtoMessage ¶
func (*RebootResponse) ProtoMessage()
func (*RebootResponse) ProtoReflect ¶
func (x *RebootResponse) ProtoReflect() protoreflect.Message
func (*RebootResponse) Reset ¶
func (x *RebootResponse) Reset()
func (*RebootResponse) String ¶
func (x *RebootResponse) String() string
type RebootStatus ¶ added in v0.3.0
type RebootStatus struct { Status RebootStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.system.RebootStatus_Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RebootStatus) Descriptor
deprecated
added in
v0.3.0
func (*RebootStatus) Descriptor() ([]byte, []int)
Deprecated: Use RebootStatus.ProtoReflect.Descriptor instead.
func (*RebootStatus) GetMessage ¶ added in v0.3.0
func (x *RebootStatus) GetMessage() string
func (*RebootStatus) GetStatus ¶ added in v0.3.0
func (x *RebootStatus) GetStatus() RebootStatus_Status
func (*RebootStatus) ProtoMessage ¶ added in v0.3.0
func (*RebootStatus) ProtoMessage()
func (*RebootStatus) ProtoReflect ¶ added in v0.3.0
func (x *RebootStatus) ProtoReflect() protoreflect.Message
func (*RebootStatus) Reset ¶ added in v0.3.0
func (x *RebootStatus) Reset()
func (*RebootStatus) String ¶ added in v0.3.0
func (x *RebootStatus) String() string
type RebootStatusRequest ¶
type RebootStatusRequest struct { Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // contains filtered or unexported fields }
func (*RebootStatusRequest) Descriptor
deprecated
func (*RebootStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use RebootStatusRequest.ProtoReflect.Descriptor instead.
func (*RebootStatusRequest) GetSubcomponents ¶
func (x *RebootStatusRequest) GetSubcomponents() []*types.Path
func (*RebootStatusRequest) ProtoMessage ¶
func (*RebootStatusRequest) ProtoMessage()
func (*RebootStatusRequest) ProtoReflect ¶
func (x *RebootStatusRequest) ProtoReflect() protoreflect.Message
func (*RebootStatusRequest) Reset ¶
func (x *RebootStatusRequest) Reset()
func (*RebootStatusRequest) String ¶
func (x *RebootStatusRequest) String() string
type RebootStatusResponse ¶
type RebootStatusResponse struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` Method RebootMethod `protobuf:"varint,6,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` Status *RebootStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*RebootStatusResponse) Descriptor
deprecated
func (*RebootStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use RebootStatusResponse.ProtoReflect.Descriptor instead.
func (*RebootStatusResponse) GetActive ¶
func (x *RebootStatusResponse) GetActive() bool
func (*RebootStatusResponse) GetCount ¶
func (x *RebootStatusResponse) GetCount() uint32
func (*RebootStatusResponse) GetMethod ¶ added in v0.3.0
func (x *RebootStatusResponse) GetMethod() RebootMethod
func (*RebootStatusResponse) GetReason ¶
func (x *RebootStatusResponse) GetReason() string
func (*RebootStatusResponse) GetStatus ¶ added in v0.3.0
func (x *RebootStatusResponse) GetStatus() *RebootStatus
func (*RebootStatusResponse) GetWait ¶
func (x *RebootStatusResponse) GetWait() uint64
func (*RebootStatusResponse) GetWhen ¶
func (x *RebootStatusResponse) GetWhen() uint64
func (*RebootStatusResponse) ProtoMessage ¶
func (*RebootStatusResponse) ProtoMessage()
func (*RebootStatusResponse) ProtoReflect ¶
func (x *RebootStatusResponse) ProtoReflect() protoreflect.Message
func (*RebootStatusResponse) Reset ¶
func (x *RebootStatusResponse) Reset()
func (*RebootStatusResponse) String ¶
func (x *RebootStatusResponse) String() string
type RebootStatus_Status ¶ added in v0.3.0
type RebootStatus_Status int32
const ( RebootStatus_STATUS_UNKNOWN RebootStatus_Status = 0 RebootStatus_STATUS_SUCCESS RebootStatus_Status = 1 RebootStatus_STATUS_RETRIABLE_FAILURE RebootStatus_Status = 2 RebootStatus_STATUS_FAILURE RebootStatus_Status = 3 )
func (RebootStatus_Status) Descriptor ¶ added in v0.3.0
func (RebootStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (RebootStatus_Status) Enum ¶ added in v0.3.0
func (x RebootStatus_Status) Enum() *RebootStatus_Status
func (RebootStatus_Status) EnumDescriptor
deprecated
added in
v0.3.0
func (RebootStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use RebootStatus_Status.Descriptor instead.
func (RebootStatus_Status) Number ¶ added in v0.3.0
func (x RebootStatus_Status) Number() protoreflect.EnumNumber
func (RebootStatus_Status) String ¶ added in v0.3.0
func (x RebootStatus_Status) String() string
func (RebootStatus_Status) Type ¶ added in v0.3.0
func (RebootStatus_Status) Type() protoreflect.EnumType
type SetPackageRequest ¶
type SetPackageRequest struct { // Types that are assignable to Request: // // *SetPackageRequest_Package // *SetPackageRequest_Contents // *SetPackageRequest_Hash Request isSetPackageRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
func (*SetPackageRequest) Descriptor
deprecated
func (*SetPackageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetPackageRequest.ProtoReflect.Descriptor instead.
func (*SetPackageRequest) GetContents ¶
func (x *SetPackageRequest) GetContents() []byte
func (*SetPackageRequest) GetHash ¶
func (x *SetPackageRequest) GetHash() *types.HashType
func (*SetPackageRequest) GetPackage ¶
func (x *SetPackageRequest) GetPackage() *Package
func (*SetPackageRequest) GetRequest ¶
func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request
func (*SetPackageRequest) ProtoMessage ¶
func (*SetPackageRequest) ProtoMessage()
func (*SetPackageRequest) ProtoReflect ¶
func (x *SetPackageRequest) ProtoReflect() protoreflect.Message
func (*SetPackageRequest) Reset ¶
func (x *SetPackageRequest) Reset()
func (*SetPackageRequest) String ¶
func (x *SetPackageRequest) String() string
type SetPackageRequest_Contents ¶
type SetPackageRequest_Contents struct {
Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"`
}
type SetPackageRequest_Hash ¶
type SetPackageRequest_Package ¶
type SetPackageRequest_Package struct {
Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"`
}
type SetPackageResponse ¶
type SetPackageResponse struct {
// contains filtered or unexported fields
}
func (*SetPackageResponse) Descriptor
deprecated
func (*SetPackageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetPackageResponse.ProtoReflect.Descriptor instead.
func (*SetPackageResponse) ProtoMessage ¶
func (*SetPackageResponse) ProtoMessage()
func (*SetPackageResponse) ProtoReflect ¶
func (x *SetPackageResponse) ProtoReflect() protoreflect.Message
func (*SetPackageResponse) Reset ¶
func (x *SetPackageResponse) Reset()
func (*SetPackageResponse) String ¶
func (x *SetPackageResponse) String() string
type SwitchControlProcessorRequest ¶
type SwitchControlProcessorRequest struct { ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` // contains filtered or unexported fields }
func (*SwitchControlProcessorRequest) Descriptor
deprecated
func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwitchControlProcessorRequest.ProtoReflect.Descriptor instead.
func (*SwitchControlProcessorRequest) GetControlProcessor ¶
func (x *SwitchControlProcessorRequest) GetControlProcessor() *types.Path
func (*SwitchControlProcessorRequest) ProtoMessage ¶
func (*SwitchControlProcessorRequest) ProtoMessage()
func (*SwitchControlProcessorRequest) ProtoReflect ¶
func (x *SwitchControlProcessorRequest) ProtoReflect() protoreflect.Message
func (*SwitchControlProcessorRequest) Reset ¶
func (x *SwitchControlProcessorRequest) Reset()
func (*SwitchControlProcessorRequest) String ¶
func (x *SwitchControlProcessorRequest) String() string
type SwitchControlProcessorResponse ¶
type SwitchControlProcessorResponse struct { ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // contains filtered or unexported fields }
func (*SwitchControlProcessorResponse) Descriptor
deprecated
func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int)
Deprecated: Use SwitchControlProcessorResponse.ProtoReflect.Descriptor instead.
func (*SwitchControlProcessorResponse) GetControlProcessor ¶
func (x *SwitchControlProcessorResponse) GetControlProcessor() *types.Path
func (*SwitchControlProcessorResponse) GetUptime ¶
func (x *SwitchControlProcessorResponse) GetUptime() int64
func (*SwitchControlProcessorResponse) GetVersion ¶
func (x *SwitchControlProcessorResponse) GetVersion() string
func (*SwitchControlProcessorResponse) ProtoMessage ¶
func (*SwitchControlProcessorResponse) ProtoMessage()
func (*SwitchControlProcessorResponse) ProtoReflect ¶
func (x *SwitchControlProcessorResponse) ProtoReflect() protoreflect.Message
func (*SwitchControlProcessorResponse) Reset ¶
func (x *SwitchControlProcessorResponse) Reset()
func (*SwitchControlProcessorResponse) String ¶
func (x *SwitchControlProcessorResponse) String() string
type SystemClient ¶
type SystemClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) }
SystemClient is the client API for System service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSystemClient ¶
func NewSystemClient(cc grpc.ClientConnInterface) SystemClient
type SystemServer ¶
type SystemServer interface { Ping(*PingRequest, System_PingServer) error Traceroute(*TracerouteRequest, System_TracerouteServer) error Time(context.Context, *TimeRequest) (*TimeResponse, error) SetPackage(System_SetPackageServer) error SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) Reboot(context.Context, *RebootRequest) (*RebootResponse, error) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) // contains filtered or unexported methods }
SystemServer is the server API for System service. All implementations must embed UnimplementedSystemServer for forward compatibility
type System_PingClient ¶
type System_PingClient interface { Recv() (*PingResponse, error) grpc.ClientStream }
type System_PingServer ¶
type System_PingServer interface { Send(*PingResponse) error grpc.ServerStream }
type System_SetPackageClient ¶
type System_SetPackageClient interface { Send(*SetPackageRequest) error CloseAndRecv() (*SetPackageResponse, error) grpc.ClientStream }
type System_SetPackageServer ¶
type System_SetPackageServer interface { SendAndClose(*SetPackageResponse) error Recv() (*SetPackageRequest, error) grpc.ServerStream }
type System_TracerouteClient ¶
type System_TracerouteClient interface { Recv() (*TracerouteResponse, error) grpc.ClientStream }
type System_TracerouteServer ¶
type System_TracerouteServer interface { Send(*TracerouteResponse) error grpc.ServerStream }
type TimeRequest ¶
type TimeRequest struct {
// contains filtered or unexported fields
}
func (*TimeRequest) Descriptor
deprecated
func (*TimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimeRequest.ProtoReflect.Descriptor instead.
func (*TimeRequest) ProtoMessage ¶
func (*TimeRequest) ProtoMessage()
func (*TimeRequest) ProtoReflect ¶
func (x *TimeRequest) ProtoReflect() protoreflect.Message
func (*TimeRequest) Reset ¶
func (x *TimeRequest) Reset()
func (*TimeRequest) String ¶
func (x *TimeRequest) String() string
type TimeResponse ¶
type TimeResponse struct { Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*TimeResponse) Descriptor
deprecated
func (*TimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use TimeResponse.ProtoReflect.Descriptor instead.
func (*TimeResponse) GetTime ¶
func (x *TimeResponse) GetTime() uint64
func (*TimeResponse) ProtoMessage ¶
func (*TimeResponse) ProtoMessage()
func (*TimeResponse) ProtoReflect ¶
func (x *TimeResponse) ProtoReflect() protoreflect.Message
func (*TimeResponse) Reset ¶
func (x *TimeResponse) Reset()
func (*TimeResponse) String ¶
func (x *TimeResponse) String() string
type TracerouteRequest ¶
type TracerouteRequest struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` DoNotLookupAsn bool `protobuf:"varint,10,opt,name=do_not_lookup_asn,json=doNotLookupAsn,proto3" json:"do_not_lookup_asn,omitempty"` NetworkInstance string `protobuf:"bytes,11,opt,name=network_instance,json=networkInstance,proto3" json:"network_instance,omitempty"` // contains filtered or unexported fields }
func (*TracerouteRequest) Descriptor
deprecated
func (*TracerouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use TracerouteRequest.ProtoReflect.Descriptor instead.
func (*TracerouteRequest) GetDestination ¶
func (x *TracerouteRequest) GetDestination() string
func (*TracerouteRequest) GetDoNotFragment ¶
func (x *TracerouteRequest) GetDoNotFragment() bool
func (*TracerouteRequest) GetDoNotLookupAsn ¶
func (x *TracerouteRequest) GetDoNotLookupAsn() bool
func (*TracerouteRequest) GetDoNotResolve ¶
func (x *TracerouteRequest) GetDoNotResolve() bool
func (*TracerouteRequest) GetInitialTtl ¶
func (x *TracerouteRequest) GetInitialTtl() uint32
func (*TracerouteRequest) GetL3Protocol ¶
func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol
func (*TracerouteRequest) GetL4Protocol ¶
func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol
func (*TracerouteRequest) GetMaxTtl ¶
func (x *TracerouteRequest) GetMaxTtl() int32
func (*TracerouteRequest) GetNetworkInstance ¶ added in v0.2.0
func (x *TracerouteRequest) GetNetworkInstance() string
func (*TracerouteRequest) GetSource ¶
func (x *TracerouteRequest) GetSource() string
func (*TracerouteRequest) GetWait ¶
func (x *TracerouteRequest) GetWait() int64
func (*TracerouteRequest) ProtoMessage ¶
func (*TracerouteRequest) ProtoMessage()
func (*TracerouteRequest) ProtoReflect ¶
func (x *TracerouteRequest) ProtoReflect() protoreflect.Message
func (*TracerouteRequest) Reset ¶
func (x *TracerouteRequest) Reset()
func (*TracerouteRequest) String ¶
func (x *TracerouteRequest) String() string
type TracerouteRequest_L4Protocol ¶
type TracerouteRequest_L4Protocol int32
const ( TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 )
func (TracerouteRequest_L4Protocol) Descriptor ¶
func (TracerouteRequest_L4Protocol) Descriptor() protoreflect.EnumDescriptor
func (TracerouteRequest_L4Protocol) Enum ¶
func (x TracerouteRequest_L4Protocol) Enum() *TracerouteRequest_L4Protocol
func (TracerouteRequest_L4Protocol) EnumDescriptor
deprecated
func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int)
Deprecated: Use TracerouteRequest_L4Protocol.Descriptor instead.
func (TracerouteRequest_L4Protocol) Number ¶
func (x TracerouteRequest_L4Protocol) Number() protoreflect.EnumNumber
func (TracerouteRequest_L4Protocol) String ¶
func (x TracerouteRequest_L4Protocol) String() string
func (TracerouteRequest_L4Protocol) Type ¶
func (TracerouteRequest_L4Protocol) Type() protoreflect.EnumType
type TracerouteResponse ¶
type TracerouteResponse struct { DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` Hops int32 `protobuf:"varint,3,opt,name=hops,proto3" json:"hops,omitempty"` PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` Mpls map[string]string `` /* 150-byte string literal not displayed */ AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` IcmpExtData []*TracerouteResponse_IcmpExtData `protobuf:"bytes,13,rep,name=icmp_ext_data,json=icmpExtData,proto3" json:"icmp_ext_data,omitempty"` // contains filtered or unexported fields }
func (*TracerouteResponse) Descriptor
deprecated
func (*TracerouteResponse) Descriptor() ([]byte, []int)
Deprecated: Use TracerouteResponse.ProtoReflect.Descriptor instead.
func (*TracerouteResponse) GetAddress ¶
func (x *TracerouteResponse) GetAddress() string
func (*TracerouteResponse) GetAsPath ¶
func (x *TracerouteResponse) GetAsPath() []int32
func (*TracerouteResponse) GetDestinationAddress ¶
func (x *TracerouteResponse) GetDestinationAddress() string
func (*TracerouteResponse) GetDestinationName ¶
func (x *TracerouteResponse) GetDestinationName() string
func (*TracerouteResponse) GetHop ¶
func (x *TracerouteResponse) GetHop() int32
func (*TracerouteResponse) GetHops ¶
func (x *TracerouteResponse) GetHops() int32
func (*TracerouteResponse) GetIcmpCode ¶
func (x *TracerouteResponse) GetIcmpCode() int32
func (*TracerouteResponse) GetIcmpExtData ¶ added in v0.4.0
func (x *TracerouteResponse) GetIcmpExtData() []*TracerouteResponse_IcmpExtData
func (*TracerouteResponse) GetMpls ¶
func (x *TracerouteResponse) GetMpls() map[string]string
func (*TracerouteResponse) GetName ¶
func (x *TracerouteResponse) GetName() string
func (*TracerouteResponse) GetPacketSize ¶
func (x *TracerouteResponse) GetPacketSize() int32
func (*TracerouteResponse) GetRtt ¶
func (x *TracerouteResponse) GetRtt() int64
func (*TracerouteResponse) GetState ¶
func (x *TracerouteResponse) GetState() TracerouteResponse_State
func (*TracerouteResponse) ProtoMessage ¶
func (*TracerouteResponse) ProtoMessage()
func (*TracerouteResponse) ProtoReflect ¶
func (x *TracerouteResponse) ProtoReflect() protoreflect.Message
func (*TracerouteResponse) Reset ¶
func (x *TracerouteResponse) Reset()
func (*TracerouteResponse) String ¶
func (x *TracerouteResponse) String() string
type TracerouteResponse_IcmpExtData ¶ added in v0.4.0
type TracerouteResponse_IcmpExtData struct { Class uint32 `protobuf:"varint,1,opt,name=class,proto3" json:"class,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Data []uint32 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*TracerouteResponse_IcmpExtData) Descriptor
deprecated
added in
v0.4.0
func (*TracerouteResponse_IcmpExtData) Descriptor() ([]byte, []int)
Deprecated: Use TracerouteResponse_IcmpExtData.ProtoReflect.Descriptor instead.
func (*TracerouteResponse_IcmpExtData) GetClass ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) GetClass() uint32
func (*TracerouteResponse_IcmpExtData) GetData ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) GetData() []uint32
func (*TracerouteResponse_IcmpExtData) GetType ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) GetType() uint32
func (*TracerouteResponse_IcmpExtData) ProtoMessage ¶ added in v0.4.0
func (*TracerouteResponse_IcmpExtData) ProtoMessage()
func (*TracerouteResponse_IcmpExtData) ProtoReflect ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) ProtoReflect() protoreflect.Message
func (*TracerouteResponse_IcmpExtData) Reset ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) Reset()
func (*TracerouteResponse_IcmpExtData) String ¶ added in v0.4.0
func (x *TracerouteResponse_IcmpExtData) String() string
type TracerouteResponse_State ¶
type TracerouteResponse_State int32
const ( TracerouteResponse_DEFAULT TracerouteResponse_State = 0 TracerouteResponse_NONE TracerouteResponse_State = 1 TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 TracerouteResponse_ICMP TracerouteResponse_State = 3 TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 )
func (TracerouteResponse_State) Descriptor ¶
func (TracerouteResponse_State) Descriptor() protoreflect.EnumDescriptor
func (TracerouteResponse_State) Enum ¶
func (x TracerouteResponse_State) Enum() *TracerouteResponse_State
func (TracerouteResponse_State) EnumDescriptor
deprecated
func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use TracerouteResponse_State.Descriptor instead.
func (TracerouteResponse_State) Number ¶
func (x TracerouteResponse_State) Number() protoreflect.EnumNumber
func (TracerouteResponse_State) String ¶
func (x TracerouteResponse_State) String() string
func (TracerouteResponse_State) Type ¶
func (TracerouteResponse_State) Type() protoreflect.EnumType
type UnimplementedSystemServer ¶
type UnimplementedSystemServer struct { }
UnimplementedSystemServer must be embedded to have forward compatible implementations.
func (UnimplementedSystemServer) CancelReboot ¶
func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error)
func (UnimplementedSystemServer) KillProcess ¶
func (UnimplementedSystemServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error)
func (UnimplementedSystemServer) Ping ¶
func (UnimplementedSystemServer) Ping(*PingRequest, System_PingServer) error
func (UnimplementedSystemServer) Reboot ¶
func (UnimplementedSystemServer) Reboot(context.Context, *RebootRequest) (*RebootResponse, error)
func (UnimplementedSystemServer) RebootStatus ¶
func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error)
func (UnimplementedSystemServer) SetPackage ¶
func (UnimplementedSystemServer) SetPackage(System_SetPackageServer) error
func (UnimplementedSystemServer) SwitchControlProcessor ¶
func (UnimplementedSystemServer) SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error)
func (UnimplementedSystemServer) Time ¶
func (UnimplementedSystemServer) Time(context.Context, *TimeRequest) (*TimeResponse, error)
func (UnimplementedSystemServer) Traceroute ¶
func (UnimplementedSystemServer) Traceroute(*TracerouteRequest, System_TracerouteServer) error
type UnsafeSystemServer ¶
type UnsafeSystemServer interface {
// contains filtered or unexported methods
}
UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServer will result in compilation errors.