Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterControllerRegisterServiceServer(s grpc.ServiceRegistrar, srv ControllerRegisterServiceServer)
- func RegisterIPCacheServiceServer(s grpc.ServiceRegistrar, srv IPCacheServiceServer)
- type AddressFamily
- func (AddressFamily) Descriptor() protoreflect.EnumDescriptor
- func (x AddressFamily) Enum() *AddressFamily
- func (AddressFamily) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddressFamily) Number() protoreflect.EnumNumber
- func (x AddressFamily) String() string
- func (AddressFamily) Type() protoreflect.EnumType
- type AgentInfo
- func (*AgentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AgentInfo) GetNodeName() string
- func (x *AgentInfo) GetSupportTaskTypes() []TaskType
- func (x *AgentInfo) GetVersion() string
- func (*AgentInfo) ProtoMessage()
- func (x *AgentInfo) ProtoReflect() protoreflect.Message
- func (x *AgentInfo) Reset()
- func (x *AgentInfo) String() string
- type CacheEntry
- func (*CacheEntry) Descriptor() ([]byte, []int)deprecated
- func (x *CacheEntry) GetIP() string
- func (m *CacheEntry) GetMeta() isCacheEntry_Meta
- func (x *CacheEntry) GetNode() *NodeMeta
- func (x *CacheEntry) GetPod() *PodMeta
- func (x *CacheEntry) GetType() ValueType
- func (*CacheEntry) ProtoMessage()
- func (x *CacheEntry) ProtoReflect() protoreflect.Message
- func (x *CacheEntry) Reset()
- func (x *CacheEntry) String() string
- type CacheEntry_Node
- type CacheEntry_Pod
- type CaptureInfo
- func (*CaptureInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureInfo) GetCaptureDurationSeconds() int32
- func (x *CaptureInfo) GetCaptureType() string
- func (x *CaptureInfo) GetFilter() string
- func (x *CaptureInfo) GetNode() *NodeInfo
- func (x *CaptureInfo) GetPod() *PodInfo
- func (*CaptureInfo) ProtoMessage()
- func (x *CaptureInfo) ProtoReflect() protoreflect.Message
- func (x *CaptureInfo) Reset()
- func (x *CaptureInfo) String() string
- type CaptureResult
- func (*CaptureResult) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureResult) GetFileType() string
- func (x *CaptureResult) GetMessage() []byte
- func (*CaptureResult) ProtoMessage()
- func (x *CaptureResult) ProtoReflect() protoreflect.Message
- func (x *CaptureResult) Reset()
- func (x *CaptureResult) String() string
- type ControllerInfo
- type ControllerRegisterServiceClient
- type ControllerRegisterServiceServer
- type ControllerRegisterService_ReportEventsClient
- type ControllerRegisterService_ReportEventsServer
- type ControllerRegisterService_WatchTasksClient
- type ControllerRegisterService_WatchTasksServer
- type Event
- type EventReply
- type IPCacheServiceClient
- type IPCacheServiceServer
- type IPCacheService_WatchCacheClient
- type IPCacheService_WatchCacheServer
- type ListCacheRequest
- type ListCacheResponse
- func (*ListCacheResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCacheResponse) GetEntries() []*CacheEntry
- func (x *ListCacheResponse) GetPeriod() string
- func (x *ListCacheResponse) GetRevision() uint64
- func (*ListCacheResponse) ProtoMessage()
- func (x *ListCacheResponse) ProtoReflect() protoreflect.Message
- func (x *ListCacheResponse) Reset()
- func (x *ListCacheResponse) String() string
- type NodeInfo
- type NodeMeta
- type OpCode
- type PingInfo
- func (*PingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PingInfo) GetDestination() string
- func (x *PingInfo) GetNode() *NodeInfo
- func (x *PingInfo) GetPod() *PodInfo
- func (*PingInfo) ProtoMessage()
- func (x *PingInfo) ProtoReflect() protoreflect.Message
- func (x *PingInfo) Reset()
- func (x *PingInfo) String() string
- type PingResult
- func (*PingResult) Descriptor() ([]byte, []int)deprecated
- func (x *PingResult) GetAvg() float32
- func (x *PingResult) GetMax() float32
- func (x *PingResult) GetMessage() []byte
- func (x *PingResult) GetMin() float32
- func (*PingResult) ProtoMessage()
- func (x *PingResult) ProtoReflect() protoreflect.Message
- func (x *PingResult) Reset()
- func (x *PingResult) String() string
- type PodInfo
- func (*PodInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PodInfo) GetHostNetwork() bool
- func (x *PodInfo) GetName() string
- func (x *PodInfo) GetNamespace() string
- func (*PodInfo) ProtoMessage()
- func (x *PodInfo) ProtoReflect() protoreflect.Message
- func (x *PodInfo) Reset()
- func (x *PodInfo) String() string
- type PodMeta
- type ServerTask
- func (*ServerTask) Descriptor() ([]byte, []int)deprecated
- func (x *ServerTask) GetServer() *ControllerInfo
- func (x *ServerTask) GetTask() *Task
- func (*ServerTask) ProtoMessage()
- func (x *ServerTask) ProtoReflect() protoreflect.Message
- func (x *ServerTask) Reset()
- func (x *ServerTask) String() string
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetCapture() *CaptureInfo
- func (x *Task) GetId() string
- func (x *Task) GetPing() *PingInfo
- func (m *Task) GetTaskInfo() isTask_TaskInfo
- func (x *Task) GetType() TaskType
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type TaskFilter
- type TaskResult
- func (*TaskResult) Descriptor() ([]byte, []int)deprecated
- func (x *TaskResult) GetCapture() *CaptureResult
- func (x *TaskResult) GetId() string
- func (x *TaskResult) GetMessage() string
- func (x *TaskResult) GetPing() *PingResult
- func (x *TaskResult) GetSuccess() bool
- func (x *TaskResult) GetTask() *CaptureInfo
- func (m *TaskResult) GetTaskResultInfo() isTaskResult_TaskResultInfo
- func (x *TaskResult) GetType() TaskType
- func (*TaskResult) ProtoMessage()
- func (x *TaskResult) ProtoReflect() protoreflect.Message
- func (x *TaskResult) Reset()
- func (x *TaskResult) String() string
- type TaskResultReply
- func (*TaskResultReply) Descriptor() ([]byte, []int)deprecated
- func (x *TaskResultReply) GetMessage() string
- func (x *TaskResultReply) GetSuccess() bool
- func (*TaskResultReply) ProtoMessage()
- func (x *TaskResultReply) ProtoReflect() protoreflect.Message
- func (x *TaskResultReply) Reset()
- func (x *TaskResultReply) String() string
- type TaskResult_Capture
- type TaskResult_Ping
- type TaskType
- type Task_Capture
- type Task_Ping
- type UnimplementedControllerRegisterServiceServer
- func (UnimplementedControllerRegisterServiceServer) RegisterAgent(context.Context, *AgentInfo) (*ControllerInfo, error)
- func (UnimplementedControllerRegisterServiceServer) ReportEvents(ControllerRegisterService_ReportEventsServer) error
- func (UnimplementedControllerRegisterServiceServer) UploadTaskResult(context.Context, *TaskResult) (*TaskResultReply, error)
- func (UnimplementedControllerRegisterServiceServer) WatchTasks(*TaskFilter, ControllerRegisterService_WatchTasksServer) error
- type UnimplementedIPCacheServiceServer
- type UnsafeControllerRegisterServiceServer
- type UnsafeIPCacheServiceServer
- type ValueType
- type WatchCacheRequest
- func (*WatchCacheRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchCacheRequest) GetPeriod() string
- func (x *WatchCacheRequest) GetRevision() uint64
- func (*WatchCacheRequest) ProtoMessage()
- func (x *WatchCacheRequest) ProtoReflect() protoreflect.Message
- func (x *WatchCacheRequest) Reset()
- func (x *WatchCacheRequest) String() string
- type WatchCacheResponse
- func (*WatchCacheResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchCacheResponse) GetEntry() *CacheEntry
- func (x *WatchCacheResponse) GetOpcode() OpCode
- func (x *WatchCacheResponse) GetRevision() uint64
- func (*WatchCacheResponse) ProtoMessage()
- func (x *WatchCacheResponse) ProtoReflect() protoreflect.Message
- func (x *WatchCacheResponse) Reset()
- func (x *WatchCacheResponse) String() string
Constants ¶
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" )
const ( IPCacheService_ListCache_FullMethodName = "/controller_rpc.IPCacheService/ListCache" IPCacheService_WatchCache_FullMethodName = "/controller_rpc.IPCacheService/WatchCache" )
Variables ¶
var ( TaskType_name = map[int32]string{ 0: "Capture", 1: "Ping", } TaskType_value = map[string]int32{ "Capture": 0, "Ping": 1, } )
Enum value maps for TaskType.
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.
var ( ValueType_name = map[int32]string{ 0: "Pod", 1: "Node", } ValueType_value = map[string]int32{ "Pod": 0, "Node": 1, } )
Enum value maps for ValueType.
var ( OpCode_name = map[int32]string{ 0: "Set", 1: "Del", } OpCode_value = map[string]int32{ "Set": 0, "Del": 1, } )
Enum value maps for OpCode.
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)
var File_controller_proto protoreflect.FileDescriptor
var File_ipcache_proto protoreflect.FileDescriptor
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) Descriptor() protoreflect.EnumDescriptor
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 (x AddressFamily) Number() protoreflect.EnumNumber
func (AddressFamily) String ¶ added in v1.0.1
func (x AddressFamily) String() string
func (AddressFamily) Type ¶ added in v1.0.1
func (AddressFamily) Type() protoreflect.EnumType
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) GetNodeName ¶
func (*AgentInfo) GetSupportTaskTypes ¶
func (*AgentInfo) GetVersion ¶
func (*AgentInfo) ProtoMessage ¶
func (*AgentInfo) ProtoMessage()
func (*AgentInfo) ProtoReflect ¶
func (x *AgentInfo) ProtoReflect() protoreflect.Message
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.
func NewControllerRegisterServiceClient ¶
func NewControllerRegisterServiceClient(cc grpc.ClientConnInterface) ControllerRegisterServiceClient
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) GetMessage ¶
func (*Event) GetTimestamp ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶ added in v1.0.1
func (*NodeMeta) ProtoMessage()
func (*NodeMeta) ProtoReflect ¶ added in v1.0.1
func (x *NodeMeta) ProtoReflect() protoreflect.Message
type OpCode ¶ added in v1.0.1
type OpCode int32
func (OpCode) Descriptor ¶ added in v1.0.1
func (OpCode) Descriptor() protoreflect.EnumDescriptor
func (OpCode) EnumDescriptor
deprecated
added in
v1.0.1
func (OpCode) Number ¶ added in v1.0.1
func (x OpCode) Number() protoreflect.EnumNumber
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) GetDestination ¶
func (*PingInfo) ProtoMessage ¶
func (*PingInfo) ProtoMessage()
func (*PingInfo) ProtoReflect ¶
func (x *PingInfo) ProtoReflect() protoreflect.Message
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) GetHostNetwork ¶ added in v1.0.1
func (*PodInfo) GetNamespace ¶
func (*PodInfo) ProtoMessage ¶
func (*PodInfo) ProtoMessage()
func (*PodInfo) ProtoReflect ¶
func (x *PodInfo) ProtoReflect() protoreflect.Message
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) GetNamespace ¶ added in v1.0.1
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
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) GetCapture ¶
func (x *Task) GetCapture() *CaptureInfo
func (*Task) GetTaskInfo ¶
func (m *Task) GetTaskInfo() isTask_TaskInfo
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
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
func (TaskType) Descriptor ¶
func (TaskType) Descriptor() protoreflect.EnumDescriptor
func (TaskType) EnumDescriptor
deprecated
func (TaskType) Number ¶
func (x TaskType) Number() protoreflect.EnumNumber
func (TaskType) Type ¶
func (TaskType) Type() protoreflect.EnumType
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) RegisterAgent(context.Context, *AgentInfo) (*ControllerInfo, error)
func (UnimplementedControllerRegisterServiceServer) ReportEvents ¶
func (UnimplementedControllerRegisterServiceServer) UploadTaskResult ¶
func (UnimplementedControllerRegisterServiceServer) UploadTaskResult(context.Context, *TaskResult) (*TaskResultReply, error)
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) ListCache(context.Context, *ListCacheRequest) (*ListCacheResponse, error)
func (UnimplementedIPCacheServiceServer) WatchCache ¶ added in v1.0.1
func (UnimplementedIPCacheServiceServer) WatchCache(*WatchCacheRequest, IPCacheService_WatchCacheServer) error
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
func (ValueType) Descriptor ¶ added in v1.0.1
func (ValueType) Descriptor() protoreflect.EnumDescriptor
func (ValueType) EnumDescriptor
deprecated
added in
v1.0.1
func (ValueType) Number ¶ added in v1.0.1
func (x ValueType) Number() protoreflect.EnumNumber
func (ValueType) Type ¶ added in v1.0.1
func (ValueType) Type() protoreflect.EnumType
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