system

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_system_system_proto protoreflect.FileDescriptor
View Source
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 (*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) Enum

func (KillProcessRequest_Signal) EnumDescriptor deprecated

func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int)

Deprecated: Use KillProcessRequest_Signal.Descriptor instead.

func (KillProcessRequest_Signal) Number

func (KillProcessRequest_Signal) String

func (x KillProcessRequest_Signal) String() string

func (KillProcessRequest_Signal) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetActivate

func (x *Package) GetActivate() bool

func (*Package) GetFilename

func (x *Package) GetFilename() string

func (*Package) GetRemoteDownload

func (x *Package) GetRemoteDownload() *common.RemoteDownload

func (*Package) GetVersion

func (x *Package) GetVersion() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

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) Enum

func (x RebootMethod) Enum() *RebootMethod

func (RebootMethod) EnumDescriptor deprecated

func (RebootMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use RebootMethod.Descriptor instead.

func (RebootMethod) Number

func (RebootMethod) String

func (x RebootMethod) String() string

func (RebootMethod) Type

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) Enum added in v0.3.0

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 (RebootStatus_Status) String added in v0.3.0

func (x RebootStatus_Status) String() string

func (RebootStatus_Status) Type added in v0.3.0

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_Hash struct {
	Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"`
}

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 (*SwitchControlProcessorRequest) Reset

func (x *SwitchControlProcessorRequest) Reset()

func (*SwitchControlProcessorRequest) 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 (*SwitchControlProcessorResponse) Reset

func (x *SwitchControlProcessorResponse) Reset()

func (*SwitchControlProcessorResponse) String

type SystemClient

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

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 (*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) Enum

func (TracerouteRequest_L4Protocol) EnumDescriptor deprecated

func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use TracerouteRequest_L4Protocol.Descriptor instead.

func (TracerouteRequest_L4Protocol) Number

func (TracerouteRequest_L4Protocol) String

func (TracerouteRequest_L4Protocol) Type

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 (*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 (*TracerouteResponse_IcmpExtData) ProtoMessage added in v0.4.0

func (*TracerouteResponse_IcmpExtData) ProtoMessage()

func (*TracerouteResponse_IcmpExtData) ProtoReflect added in v0.4.0

func (*TracerouteResponse_IcmpExtData) Reset added in v0.4.0

func (x *TracerouteResponse_IcmpExtData) Reset()

func (*TracerouteResponse_IcmpExtData) String added in v0.4.0

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) Enum

func (TracerouteResponse_State) EnumDescriptor deprecated

func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use TracerouteResponse_State.Descriptor instead.

func (TracerouteResponse_State) Number

func (TracerouteResponse_State) String

func (x TracerouteResponse_State) String() string

func (TracerouteResponse_State) Type

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

UnimplementedSystemServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemServer) CancelReboot

func (UnimplementedSystemServer) KillProcess

func (UnimplementedSystemServer) Ping

func (UnimplementedSystemServer) Reboot

func (UnimplementedSystemServer) RebootStatus

func (UnimplementedSystemServer) SetPackage

func (UnimplementedSystemServer) Time

func (UnimplementedSystemServer) Traceroute

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.

Jump to

Keyboard shortcuts

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