rpc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerRegisterService_RegisterAgent_FullMethodName    = "/controller_rpc.ControllerRegisterService/RegisterAgent"
	ControllerRegisterService_ReportEvents_FullMethodName     = "/controller_rpc.ControllerRegisterService/ReportEvents"
	ControllerRegisterService_WatchTasks_FullMethodName       = "/controller_rpc.ControllerRegisterService/WatchTasks"
	ControllerRegisterService_UploadTaskResult_FullMethodName = "/controller_rpc.ControllerRegisterService/UploadTaskResult"
)
View Source
const (
	IPCacheService_ListCache_FullMethodName  = "/controller_rpc.IPCacheService/ListCache"
	IPCacheService_WatchCache_FullMethodName = "/controller_rpc.IPCacheService/WatchCache"
)

Variables

View Source
var (
	TaskType_name = map[int32]string{
		0: "Capture",
		1: "Ping",
	}
	TaskType_value = map[string]int32{
		"Capture": 0,
		"Ping":    1,
	}
)

Enum value maps for TaskType.

View Source
var (
	AddressFamily_name = map[int32]string{
		0: "AF_INET",
		1: "AF_INET6",
	}
	AddressFamily_value = map[string]int32{
		"AF_INET":  0,
		"AF_INET6": 1,
	}
)

Enum value maps for AddressFamily.

View Source
var (
	ValueType_name = map[int32]string{
		0: "Pod",
		1: "Node",
	}
	ValueType_value = map[string]int32{
		"Pod":  0,
		"Node": 1,
	}
)

Enum value maps for ValueType.

View Source
var (
	OpCode_name = map[int32]string{
		0: "Set",
		1: "Del",
	}
	OpCode_value = map[string]int32{
		"Set": 0,
		"Del": 1,
	}
)

Enum value maps for OpCode.

View Source
var ControllerRegisterService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "controller_rpc.ControllerRegisterService",
	HandlerType: (*ControllerRegisterServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterAgent",
			Handler:    _ControllerRegisterService_RegisterAgent_Handler,
		},
		{
			MethodName: "UploadTaskResult",
			Handler:    _ControllerRegisterService_UploadTaskResult_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReportEvents",
			Handler:       _ControllerRegisterService_ReportEvents_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "WatchTasks",
			Handler:       _ControllerRegisterService_WatchTasks_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "controller.proto",
}

ControllerRegisterService_ServiceDesc is the grpc.ServiceDesc for ControllerRegisterService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_controller_proto protoreflect.FileDescriptor
View Source
var File_ipcache_proto protoreflect.FileDescriptor
View Source
var IPCacheService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "controller_rpc.IPCacheService",
	HandlerType: (*IPCacheServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCache",
			Handler:    _IPCacheService_ListCache_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchCache",
			Handler:       _IPCacheService_WatchCache_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "ipcache.proto",
}

IPCacheService_ServiceDesc is the grpc.ServiceDesc for IPCacheService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterControllerRegisterServiceServer

func RegisterControllerRegisterServiceServer(s grpc.ServiceRegistrar, srv ControllerRegisterServiceServer)

func RegisterIPCacheServiceServer added in v1.0.1

func RegisterIPCacheServiceServer(s grpc.ServiceRegistrar, srv IPCacheServiceServer)

Types

type AddressFamily added in v1.0.1

type AddressFamily int32
const (
	AddressFamily_AF_INET  AddressFamily = 0
	AddressFamily_AF_INET6 AddressFamily = 1
)

func (AddressFamily) Descriptor added in v1.0.1

func (AddressFamily) Enum added in v1.0.1

func (x AddressFamily) Enum() *AddressFamily

func (AddressFamily) EnumDescriptor deprecated added in v1.0.1

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

Deprecated: Use AddressFamily.Descriptor instead.

func (AddressFamily) Number added in v1.0.1

func (AddressFamily) String added in v1.0.1

func (x AddressFamily) String() string

func (AddressFamily) Type added in v1.0.1

type AgentInfo

type AgentInfo struct {
	NodeName         string     `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	Version          string     `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	SupportTaskTypes []TaskType `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AgentInfo) Descriptor deprecated

func (*AgentInfo) Descriptor() ([]byte, []int)

Deprecated: Use AgentInfo.ProtoReflect.Descriptor instead.

func (*AgentInfo) GetNodeName

func (x *AgentInfo) GetNodeName() string

func (*AgentInfo) GetSupportTaskTypes

func (x *AgentInfo) GetSupportTaskTypes() []TaskType

func (*AgentInfo) GetVersion

func (x *AgentInfo) GetVersion() string

func (*AgentInfo) ProtoMessage

func (*AgentInfo) ProtoMessage()

func (*AgentInfo) ProtoReflect

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

func (*AgentInfo) Reset

func (x *AgentInfo) Reset()

func (*AgentInfo) String

func (x *AgentInfo) String() string

type CacheEntry added in v1.0.1

type CacheEntry struct {
	IP   string    `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"`
	Type ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=controller_rpc.ValueType" json:"type,omitempty"`
	// Types that are assignable to Meta:
	//
	//	*CacheEntry_Pod
	//	*CacheEntry_Node
	Meta isCacheEntry_Meta `protobuf_oneof:"meta"`
	// contains filtered or unexported fields
}

func (*CacheEntry) Descriptor deprecated added in v1.0.1

func (*CacheEntry) Descriptor() ([]byte, []int)

Deprecated: Use CacheEntry.ProtoReflect.Descriptor instead.

func (*CacheEntry) GetIP added in v1.0.1

func (x *CacheEntry) GetIP() string

func (*CacheEntry) GetMeta added in v1.0.1

func (m *CacheEntry) GetMeta() isCacheEntry_Meta

func (*CacheEntry) GetNode added in v1.0.1

func (x *CacheEntry) GetNode() *NodeMeta

func (*CacheEntry) GetPod added in v1.0.1

func (x *CacheEntry) GetPod() *PodMeta

func (*CacheEntry) GetType added in v1.0.1

func (x *CacheEntry) GetType() ValueType

func (*CacheEntry) ProtoMessage added in v1.0.1

func (*CacheEntry) ProtoMessage()

func (*CacheEntry) ProtoReflect added in v1.0.1

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

func (*CacheEntry) Reset added in v1.0.1

func (x *CacheEntry) Reset()

func (*CacheEntry) String added in v1.0.1

func (x *CacheEntry) String() string

type CacheEntry_Node added in v1.0.1

type CacheEntry_Node struct {
	Node *NodeMeta `protobuf:"bytes,4,opt,name=node,proto3,oneof"`
}

type CacheEntry_Pod added in v1.0.1

type CacheEntry_Pod struct {
	Pod *PodMeta `protobuf:"bytes,3,opt,name=pod,proto3,oneof"`
}

type CaptureInfo

type CaptureInfo struct {
	Pod                    *PodInfo  `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	Node                   *NodeInfo `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	Filter                 string    `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	CaptureType            string    `protobuf:"bytes,4,opt,name=capture_type,json=captureType,proto3" json:"capture_type,omitempty"`
	CaptureDurationSeconds int32     `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CaptureInfo) Descriptor deprecated

func (*CaptureInfo) Descriptor() ([]byte, []int)

Deprecated: Use CaptureInfo.ProtoReflect.Descriptor instead.

func (*CaptureInfo) GetCaptureDurationSeconds

func (x *CaptureInfo) GetCaptureDurationSeconds() int32

func (*CaptureInfo) GetCaptureType

func (x *CaptureInfo) GetCaptureType() string

func (*CaptureInfo) GetFilter

func (x *CaptureInfo) GetFilter() string

func (*CaptureInfo) GetNode

func (x *CaptureInfo) GetNode() *NodeInfo

func (*CaptureInfo) GetPod

func (x *CaptureInfo) GetPod() *PodInfo

func (*CaptureInfo) ProtoMessage

func (*CaptureInfo) ProtoMessage()

func (*CaptureInfo) ProtoReflect

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

func (*CaptureInfo) Reset

func (x *CaptureInfo) Reset()

func (*CaptureInfo) String

func (x *CaptureInfo) String() string

type CaptureResult

type CaptureResult struct {
	FileType string `protobuf:"bytes,1,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	Message  []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptureResult) Descriptor deprecated

func (*CaptureResult) Descriptor() ([]byte, []int)

Deprecated: Use CaptureResult.ProtoReflect.Descriptor instead.

func (*CaptureResult) GetFileType

func (x *CaptureResult) GetFileType() string

func (*CaptureResult) GetMessage

func (x *CaptureResult) GetMessage() []byte

func (*CaptureResult) ProtoMessage

func (*CaptureResult) ProtoMessage()

func (*CaptureResult) ProtoReflect

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

func (*CaptureResult) Reset

func (x *CaptureResult) Reset()

func (*CaptureResult) String

func (x *CaptureResult) String() string

type ControllerInfo

type ControllerInfo struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerInfo) Descriptor deprecated

func (*ControllerInfo) Descriptor() ([]byte, []int)

Deprecated: Use ControllerInfo.ProtoReflect.Descriptor instead.

func (*ControllerInfo) GetVersion

func (x *ControllerInfo) GetVersion() string

func (*ControllerInfo) ProtoMessage

func (*ControllerInfo) ProtoMessage()

func (*ControllerInfo) ProtoReflect

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

func (*ControllerInfo) Reset

func (x *ControllerInfo) Reset()

func (*ControllerInfo) String

func (x *ControllerInfo) String() string

type ControllerRegisterServiceClient

type ControllerRegisterServiceClient interface {
	// Agent Health Check
	RegisterAgent(ctx context.Context, in *AgentInfo, opts ...grpc.CallOption) (*ControllerInfo, error)
	ReportEvents(ctx context.Context, opts ...grpc.CallOption) (ControllerRegisterService_ReportEventsClient, error)
	WatchTasks(ctx context.Context, in *TaskFilter, opts ...grpc.CallOption) (ControllerRegisterService_WatchTasksClient, error)
	UploadTaskResult(ctx context.Context, in *TaskResult, opts ...grpc.CallOption) (*TaskResultReply, error)
}

ControllerRegisterServiceClient is the client API for ControllerRegisterService 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.

type ControllerRegisterServiceServer

type ControllerRegisterServiceServer interface {
	// Agent Health Check
	RegisterAgent(context.Context, *AgentInfo) (*ControllerInfo, error)
	ReportEvents(ControllerRegisterService_ReportEventsServer) error
	WatchTasks(*TaskFilter, ControllerRegisterService_WatchTasksServer) error
	UploadTaskResult(context.Context, *TaskResult) (*TaskResultReply, error)
	// contains filtered or unexported methods
}

ControllerRegisterServiceServer is the server API for ControllerRegisterService service. All implementations must embed UnimplementedControllerRegisterServiceServer for forward compatibility

type ControllerRegisterService_ReportEventsClient

type ControllerRegisterService_ReportEventsClient interface {
	Send(*Event) error
	CloseAndRecv() (*EventReply, error)
	grpc.ClientStream
}

type ControllerRegisterService_ReportEventsServer

type ControllerRegisterService_ReportEventsServer interface {
	SendAndClose(*EventReply) error
	Recv() (*Event, error)
	grpc.ServerStream
}

type ControllerRegisterService_WatchTasksClient

type ControllerRegisterService_WatchTasksClient interface {
	Recv() (*ServerTask, error)
	grpc.ClientStream
}

type ControllerRegisterService_WatchTasksServer

type ControllerRegisterService_WatchTasksServer interface {
	Send(*ServerTask) error
	grpc.ServerStream
}

type Event

type Event struct {
	Timestamp int64  `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetMessage

func (x *Event) GetMessage() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() int64

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventReply

type EventReply struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventReply) Descriptor deprecated

func (*EventReply) Descriptor() ([]byte, []int)

Deprecated: Use EventReply.ProtoReflect.Descriptor instead.

func (*EventReply) GetMessage

func (x *EventReply) GetMessage() string

func (*EventReply) GetSuccess

func (x *EventReply) GetSuccess() bool

func (*EventReply) ProtoMessage

func (*EventReply) ProtoMessage()

func (*EventReply) ProtoReflect

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

func (*EventReply) Reset

func (x *EventReply) Reset()

func (*EventReply) String

func (x *EventReply) String() string

type IPCacheServiceClient added in v1.0.1

type IPCacheServiceClient interface {
	ListCache(ctx context.Context, in *ListCacheRequest, opts ...grpc.CallOption) (*ListCacheResponse, error)
	WatchCache(ctx context.Context, in *WatchCacheRequest, opts ...grpc.CallOption) (IPCacheService_WatchCacheClient, error)
}

IPCacheServiceClient is the client API for IPCacheService 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 NewIPCacheServiceClient added in v1.0.1

func NewIPCacheServiceClient(cc grpc.ClientConnInterface) IPCacheServiceClient

type IPCacheServiceServer added in v1.0.1

type IPCacheServiceServer interface {
	ListCache(context.Context, *ListCacheRequest) (*ListCacheResponse, error)
	WatchCache(*WatchCacheRequest, IPCacheService_WatchCacheServer) error
	// contains filtered or unexported methods
}

IPCacheServiceServer is the server API for IPCacheService service. All implementations must embed UnimplementedIPCacheServiceServer for forward compatibility

type IPCacheService_WatchCacheClient added in v1.0.1

type IPCacheService_WatchCacheClient interface {
	Recv() (*WatchCacheResponse, error)
	grpc.ClientStream
}

type IPCacheService_WatchCacheServer added in v1.0.1

type IPCacheService_WatchCacheServer interface {
	Send(*WatchCacheResponse) error
	grpc.ServerStream
}

type ListCacheRequest added in v1.0.1

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

func (*ListCacheRequest) Descriptor deprecated added in v1.0.1

func (*ListCacheRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCacheRequest.ProtoReflect.Descriptor instead.

func (*ListCacheRequest) ProtoMessage added in v1.0.1

func (*ListCacheRequest) ProtoMessage()

func (*ListCacheRequest) ProtoReflect added in v1.0.1

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

func (*ListCacheRequest) Reset added in v1.0.1

func (x *ListCacheRequest) Reset()

func (*ListCacheRequest) String added in v1.0.1

func (x *ListCacheRequest) String() string

type ListCacheResponse added in v1.0.1

type ListCacheResponse struct {
	Period   string        `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"`
	Revision uint64        `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
	Entries  []*CacheEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCacheResponse) Descriptor deprecated added in v1.0.1

func (*ListCacheResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCacheResponse.ProtoReflect.Descriptor instead.

func (*ListCacheResponse) GetEntries added in v1.0.1

func (x *ListCacheResponse) GetEntries() []*CacheEntry

func (*ListCacheResponse) GetPeriod added in v1.0.1

func (x *ListCacheResponse) GetPeriod() string

func (*ListCacheResponse) GetRevision added in v1.0.1

func (x *ListCacheResponse) GetRevision() uint64

func (*ListCacheResponse) ProtoMessage added in v1.0.1

func (*ListCacheResponse) ProtoMessage()

func (*ListCacheResponse) ProtoReflect added in v1.0.1

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

func (*ListCacheResponse) Reset added in v1.0.1

func (x *ListCacheResponse) Reset()

func (*ListCacheResponse) String added in v1.0.1

func (x *ListCacheResponse) String() string

type NodeInfo

type NodeInfo struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

func (*NodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetName

func (x *NodeInfo) GetName() string

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

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

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type NodeMeta added in v1.0.1

type NodeMeta struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeMeta) Descriptor deprecated added in v1.0.1

func (*NodeMeta) Descriptor() ([]byte, []int)

Deprecated: Use NodeMeta.ProtoReflect.Descriptor instead.

func (*NodeMeta) GetName added in v1.0.1

func (x *NodeMeta) GetName() string

func (*NodeMeta) ProtoMessage added in v1.0.1

func (*NodeMeta) ProtoMessage()

func (*NodeMeta) ProtoReflect added in v1.0.1

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

func (*NodeMeta) Reset added in v1.0.1

func (x *NodeMeta) Reset()

func (*NodeMeta) String added in v1.0.1

func (x *NodeMeta) String() string

type OpCode added in v1.0.1

type OpCode int32
const (
	OpCode_Set OpCode = 0
	OpCode_Del OpCode = 1
)

func (OpCode) Descriptor added in v1.0.1

func (OpCode) Descriptor() protoreflect.EnumDescriptor

func (OpCode) Enum added in v1.0.1

func (x OpCode) Enum() *OpCode

func (OpCode) EnumDescriptor deprecated added in v1.0.1

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

Deprecated: Use OpCode.Descriptor instead.

func (OpCode) Number added in v1.0.1

func (x OpCode) Number() protoreflect.EnumNumber

func (OpCode) String added in v1.0.1

func (x OpCode) String() string

func (OpCode) Type added in v1.0.1

func (OpCode) Type() protoreflect.EnumType

type PingInfo

type PingInfo struct {
	Pod         *PodInfo  `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	Node        *NodeInfo `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	Destination string    `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
	// contains filtered or unexported fields
}

func (*PingInfo) Descriptor deprecated

func (*PingInfo) Descriptor() ([]byte, []int)

Deprecated: Use PingInfo.ProtoReflect.Descriptor instead.

func (*PingInfo) GetDestination

func (x *PingInfo) GetDestination() string

func (*PingInfo) GetNode

func (x *PingInfo) GetNode() *NodeInfo

func (*PingInfo) GetPod

func (x *PingInfo) GetPod() *PodInfo

func (*PingInfo) ProtoMessage

func (*PingInfo) ProtoMessage()

func (*PingInfo) ProtoReflect

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

func (*PingInfo) Reset

func (x *PingInfo) Reset()

func (*PingInfo) String

func (x *PingInfo) String() string

type PingResult

type PingResult struct {
	Max     float32 `protobuf:"fixed32,1,opt,name=max,proto3" json:"max,omitempty"`
	Avg     float32 `protobuf:"fixed32,2,opt,name=avg,proto3" json:"avg,omitempty"`
	Min     float32 `protobuf:"fixed32,3,opt,name=min,proto3" json:"min,omitempty"`
	Message []byte  `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResult) Descriptor deprecated

func (*PingResult) Descriptor() ([]byte, []int)

Deprecated: Use PingResult.ProtoReflect.Descriptor instead.

func (*PingResult) GetAvg

func (x *PingResult) GetAvg() float32

func (*PingResult) GetMax

func (x *PingResult) GetMax() float32

func (*PingResult) GetMessage

func (x *PingResult) GetMessage() []byte

func (*PingResult) GetMin

func (x *PingResult) GetMin() float32

func (*PingResult) ProtoMessage

func (*PingResult) ProtoMessage()

func (*PingResult) ProtoReflect

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

func (*PingResult) Reset

func (x *PingResult) Reset()

func (*PingResult) String

func (x *PingResult) String() string

type PodInfo

type PodInfo struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace   string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	HostNetwork bool   `protobuf:"varint,3,opt,name=hostNetwork,proto3" json:"hostNetwork,omitempty"`
	// contains filtered or unexported fields
}

func (*PodInfo) Descriptor deprecated

func (*PodInfo) Descriptor() ([]byte, []int)

Deprecated: Use PodInfo.ProtoReflect.Descriptor instead.

func (*PodInfo) GetHostNetwork added in v1.0.1

func (x *PodInfo) GetHostNetwork() bool

func (*PodInfo) GetName

func (x *PodInfo) GetName() string

func (*PodInfo) GetNamespace

func (x *PodInfo) GetNamespace() string

func (*PodInfo) ProtoMessage

func (*PodInfo) ProtoMessage()

func (*PodInfo) ProtoReflect

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

func (*PodInfo) Reset

func (x *PodInfo) Reset()

func (*PodInfo) String

func (x *PodInfo) String() string

type PodMeta added in v1.0.1

type PodMeta struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PodMeta) Descriptor deprecated added in v1.0.1

func (*PodMeta) Descriptor() ([]byte, []int)

Deprecated: Use PodMeta.ProtoReflect.Descriptor instead.

func (*PodMeta) GetName added in v1.0.1

func (x *PodMeta) GetName() string

func (*PodMeta) GetNamespace added in v1.0.1

func (x *PodMeta) GetNamespace() string

func (*PodMeta) ProtoMessage added in v1.0.1

func (*PodMeta) ProtoMessage()

func (*PodMeta) ProtoReflect added in v1.0.1

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

func (*PodMeta) Reset added in v1.0.1

func (x *PodMeta) Reset()

func (*PodMeta) String added in v1.0.1

func (x *PodMeta) String() string

type ServerTask

type ServerTask struct {
	Server *ControllerInfo `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Task   *Task           `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerTask) Descriptor deprecated

func (*ServerTask) Descriptor() ([]byte, []int)

Deprecated: Use ServerTask.ProtoReflect.Descriptor instead.

func (*ServerTask) GetServer

func (x *ServerTask) GetServer() *ControllerInfo

func (*ServerTask) GetTask

func (x *ServerTask) GetTask() *Task

func (*ServerTask) ProtoMessage

func (*ServerTask) ProtoMessage()

func (*ServerTask) ProtoReflect

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

func (*ServerTask) Reset

func (x *ServerTask) Reset()

func (*ServerTask) String

func (x *ServerTask) String() string

type Task

type Task struct {
	Type TaskType `protobuf:"varint,1,opt,name=type,proto3,enum=controller_rpc.TaskType" json:"type,omitempty"`
	Id   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to TaskInfo:
	//
	//	*Task_Capture
	//	*Task_Ping
	TaskInfo isTask_TaskInfo `protobuf_oneof:"TaskInfo"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCapture

func (x *Task) GetCapture() *CaptureInfo

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetPing

func (x *Task) GetPing() *PingInfo

func (*Task) GetTaskInfo

func (m *Task) GetTaskInfo() isTask_TaskInfo

func (*Task) GetType

func (x *Task) GetType() TaskType

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type TaskFilter

type TaskFilter struct {
	NodeName string     `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	Type     []TaskType `protobuf:"varint,2,rep,packed,name=type,proto3,enum=controller_rpc.TaskType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskFilter) Descriptor deprecated

func (*TaskFilter) Descriptor() ([]byte, []int)

Deprecated: Use TaskFilter.ProtoReflect.Descriptor instead.

func (*TaskFilter) GetNodeName

func (x *TaskFilter) GetNodeName() string

func (*TaskFilter) GetType

func (x *TaskFilter) GetType() []TaskType

func (*TaskFilter) ProtoMessage

func (*TaskFilter) ProtoMessage()

func (*TaskFilter) ProtoReflect

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

func (*TaskFilter) Reset

func (x *TaskFilter) Reset()

func (*TaskFilter) String

func (x *TaskFilter) String() string

type TaskResult

type TaskResult struct {
	Id      string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type    TaskType     `protobuf:"varint,2,opt,name=type,proto3,enum=controller_rpc.TaskType" json:"type,omitempty"`
	Success bool         `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	Message string       `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	Task    *CaptureInfo `protobuf:"bytes,5,opt,name=task,proto3" json:"task,omitempty"`
	// Types that are assignable to TaskResultInfo:
	//
	//	*TaskResult_Capture
	//	*TaskResult_Ping
	TaskResultInfo isTaskResult_TaskResultInfo `protobuf_oneof:"TaskResultInfo"`
	// contains filtered or unexported fields
}

func (*TaskResult) Descriptor deprecated

func (*TaskResult) Descriptor() ([]byte, []int)

Deprecated: Use TaskResult.ProtoReflect.Descriptor instead.

func (*TaskResult) GetCapture

func (x *TaskResult) GetCapture() *CaptureResult

func (*TaskResult) GetId

func (x *TaskResult) GetId() string

func (*TaskResult) GetMessage

func (x *TaskResult) GetMessage() string

func (*TaskResult) GetPing

func (x *TaskResult) GetPing() *PingResult

func (*TaskResult) GetSuccess

func (x *TaskResult) GetSuccess() bool

func (*TaskResult) GetTask

func (x *TaskResult) GetTask() *CaptureInfo

func (*TaskResult) GetTaskResultInfo

func (m *TaskResult) GetTaskResultInfo() isTaskResult_TaskResultInfo

func (*TaskResult) GetType

func (x *TaskResult) GetType() TaskType

func (*TaskResult) ProtoMessage

func (*TaskResult) ProtoMessage()

func (*TaskResult) ProtoReflect

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

func (*TaskResult) Reset

func (x *TaskResult) Reset()

func (*TaskResult) String

func (x *TaskResult) String() string

type TaskResultReply

type TaskResultReply struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskResultReply) Descriptor deprecated

func (*TaskResultReply) Descriptor() ([]byte, []int)

Deprecated: Use TaskResultReply.ProtoReflect.Descriptor instead.

func (*TaskResultReply) GetMessage

func (x *TaskResultReply) GetMessage() string

func (*TaskResultReply) GetSuccess

func (x *TaskResultReply) GetSuccess() bool

func (*TaskResultReply) ProtoMessage

func (*TaskResultReply) ProtoMessage()

func (*TaskResultReply) ProtoReflect

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

func (*TaskResultReply) Reset

func (x *TaskResultReply) Reset()

func (*TaskResultReply) String

func (x *TaskResultReply) String() string

type TaskResult_Capture

type TaskResult_Capture struct {
	Capture *CaptureResult `protobuf:"bytes,6,opt,name=capture,proto3,oneof"`
}

type TaskResult_Ping

type TaskResult_Ping struct {
	Ping *PingResult `protobuf:"bytes,7,opt,name=ping,proto3,oneof"`
}

type TaskType

type TaskType int32
const (
	TaskType_Capture TaskType = 0
	TaskType_Ping    TaskType = 1
)

func (TaskType) Descriptor

func (TaskType) Descriptor() protoreflect.EnumDescriptor

func (TaskType) Enum

func (x TaskType) Enum() *TaskType

func (TaskType) EnumDescriptor deprecated

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

Deprecated: Use TaskType.Descriptor instead.

func (TaskType) Number

func (x TaskType) Number() protoreflect.EnumNumber

func (TaskType) String

func (x TaskType) String() string

func (TaskType) Type

type Task_Capture

type Task_Capture struct {
	Capture *CaptureInfo `protobuf:"bytes,3,opt,name=capture,proto3,oneof"`
}

type Task_Ping

type Task_Ping struct {
	Ping *PingInfo `protobuf:"bytes,4,opt,name=ping,proto3,oneof"`
}

type UnimplementedControllerRegisterServiceServer

type UnimplementedControllerRegisterServiceServer struct {
}

UnimplementedControllerRegisterServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedControllerRegisterServiceServer) RegisterAgent

func (UnimplementedControllerRegisterServiceServer) ReportEvents

func (UnimplementedControllerRegisterServiceServer) UploadTaskResult

func (UnimplementedControllerRegisterServiceServer) WatchTasks

type UnimplementedIPCacheServiceServer added in v1.0.1

type UnimplementedIPCacheServiceServer struct {
}

UnimplementedIPCacheServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIPCacheServiceServer) ListCache added in v1.0.1

func (UnimplementedIPCacheServiceServer) WatchCache added in v1.0.1

type UnsafeControllerRegisterServiceServer

type UnsafeControllerRegisterServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeControllerRegisterServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControllerRegisterServiceServer will result in compilation errors.

type UnsafeIPCacheServiceServer added in v1.0.1

type UnsafeIPCacheServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIPCacheServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IPCacheServiceServer will result in compilation errors.

type ValueType added in v1.0.1

type ValueType int32
const (
	ValueType_Pod  ValueType = 0
	ValueType_Node ValueType = 1
)

func (ValueType) Descriptor added in v1.0.1

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum added in v1.0.1

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated added in v1.0.1

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

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number added in v1.0.1

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String added in v1.0.1

func (x ValueType) String() string

func (ValueType) Type added in v1.0.1

type WatchCacheRequest added in v1.0.1

type WatchCacheRequest struct {
	Period   string `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"`
	Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchCacheRequest) Descriptor deprecated added in v1.0.1

func (*WatchCacheRequest) Descriptor() ([]byte, []int)

Deprecated: Use WatchCacheRequest.ProtoReflect.Descriptor instead.

func (*WatchCacheRequest) GetPeriod added in v1.0.1

func (x *WatchCacheRequest) GetPeriod() string

func (*WatchCacheRequest) GetRevision added in v1.0.1

func (x *WatchCacheRequest) GetRevision() uint64

func (*WatchCacheRequest) ProtoMessage added in v1.0.1

func (*WatchCacheRequest) ProtoMessage()

func (*WatchCacheRequest) ProtoReflect added in v1.0.1

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

func (*WatchCacheRequest) Reset added in v1.0.1

func (x *WatchCacheRequest) Reset()

func (*WatchCacheRequest) String added in v1.0.1

func (x *WatchCacheRequest) String() string

type WatchCacheResponse added in v1.0.1

type WatchCacheResponse struct {
	Revision uint64      `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	Opcode   OpCode      `protobuf:"varint,2,opt,name=opcode,proto3,enum=controller_rpc.OpCode" json:"opcode,omitempty"`
	Entry    *CacheEntry `protobuf:"bytes,3,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchCacheResponse) Descriptor deprecated added in v1.0.1

func (*WatchCacheResponse) Descriptor() ([]byte, []int)

Deprecated: Use WatchCacheResponse.ProtoReflect.Descriptor instead.

func (*WatchCacheResponse) GetEntry added in v1.0.1

func (x *WatchCacheResponse) GetEntry() *CacheEntry

func (*WatchCacheResponse) GetOpcode added in v1.0.1

func (x *WatchCacheResponse) GetOpcode() OpCode

func (*WatchCacheResponse) GetRevision added in v1.0.1

func (x *WatchCacheResponse) GetRevision() uint64

func (*WatchCacheResponse) ProtoMessage added in v1.0.1

func (*WatchCacheResponse) ProtoMessage()

func (*WatchCacheResponse) ProtoReflect added in v1.0.1

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

func (*WatchCacheResponse) Reset added in v1.0.1

func (x *WatchCacheResponse) Reset()

func (*WatchCacheResponse) String added in v1.0.1

func (x *WatchCacheResponse) String() string

Jump to

Keyboard shortcuts

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