Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentTrackerServer(s grpc.ServiceRegistrar, srv AgentTrackerServer)
- type AgentTrackerClient
- type AgentTrackerServer
- type CountAgentsByAgentVersionsRequest
- func (*CountAgentsByAgentVersionsRequest) Descriptor() ([]byte, []int)deprecated
- func (*CountAgentsByAgentVersionsRequest) ProtoMessage()
- func (x *CountAgentsByAgentVersionsRequest) ProtoReflect() protoreflect.Message
- func (x *CountAgentsByAgentVersionsRequest) Reset()
- func (x *CountAgentsByAgentVersionsRequest) String() string
- type CountAgentsByAgentVersionsResponse
- func (*CountAgentsByAgentVersionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountAgentsByAgentVersionsResponse) GetAgentVersions() map[string]int64
- func (*CountAgentsByAgentVersionsResponse) ProtoMessage()
- func (x *CountAgentsByAgentVersionsResponse) ProtoReflect() protoreflect.Message
- func (x *CountAgentsByAgentVersionsResponse) Reset()
- func (x *CountAgentsByAgentVersionsResponse) String() string
- type GetConnectedAgentsByAgentIDsRequest
- func (*GetConnectedAgentsByAgentIDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsByAgentIDsRequest) GetAgentIds() []int64
- func (*GetConnectedAgentsByAgentIDsRequest) ProtoMessage()
- func (x *GetConnectedAgentsByAgentIDsRequest) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsByAgentIDsRequest) Reset()
- func (x *GetConnectedAgentsByAgentIDsRequest) String() string
- type GetConnectedAgentsByAgentIDsResponse
- func (*GetConnectedAgentsByAgentIDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsByAgentIDsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
- func (*GetConnectedAgentsByAgentIDsResponse) ProtoMessage()
- func (x *GetConnectedAgentsByAgentIDsResponse) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsByAgentIDsResponse) Reset()
- func (x *GetConnectedAgentsByAgentIDsResponse) String() string
- type GetConnectedAgentsByProjectIDsRequest
- func (*GetConnectedAgentsByProjectIDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsByProjectIDsRequest) GetProjectIds() []int64
- func (*GetConnectedAgentsByProjectIDsRequest) ProtoMessage()
- func (x *GetConnectedAgentsByProjectIDsRequest) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsByProjectIDsRequest) Reset()
- func (x *GetConnectedAgentsByProjectIDsRequest) String() string
- type GetConnectedAgentsByProjectIDsResponse
- func (*GetConnectedAgentsByProjectIDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsByProjectIDsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
- func (*GetConnectedAgentsByProjectIDsResponse) ProtoMessage()
- func (x *GetConnectedAgentsByProjectIDsResponse) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsByProjectIDsResponse) Reset()
- func (x *GetConnectedAgentsByProjectIDsResponse) String() string
- type UnimplementedAgentTrackerServer
- func (UnimplementedAgentTrackerServer) CountAgentsByAgentVersions(context.Context, *CountAgentsByAgentVersionsRequest) (*CountAgentsByAgentVersionsResponse, error)
- func (UnimplementedAgentTrackerServer) GetConnectedAgentsByAgentIDs(context.Context, *GetConnectedAgentsByAgentIDsRequest) (*GetConnectedAgentsByAgentIDsResponse, error)
- func (UnimplementedAgentTrackerServer) GetConnectedAgentsByProjectIDs(context.Context, *GetConnectedAgentsByProjectIDsRequest) (*GetConnectedAgentsByProjectIDsResponse, error)
- type UnsafeAgentTrackerServer
Constants ¶
const ( AgentTracker_GetConnectedAgentsByProjectIDs_FullMethodName = "/gitlab.agent.agent_tracker.rpc.AgentTracker/GetConnectedAgentsByProjectIDs" AgentTracker_GetConnectedAgentsByAgentIDs_FullMethodName = "/gitlab.agent.agent_tracker.rpc.AgentTracker/GetConnectedAgentsByAgentIDs" AgentTracker_CountAgentsByAgentVersions_FullMethodName = "/gitlab.agent.agent_tracker.rpc.AgentTracker/CountAgentsByAgentVersions" )
Variables ¶
var AgentTracker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.agent_tracker.rpc.AgentTracker", HandlerType: (*AgentTrackerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConnectedAgentsByProjectIDs", Handler: _AgentTracker_GetConnectedAgentsByProjectIDs_Handler, }, { MethodName: "GetConnectedAgentsByAgentIDs", Handler: _AgentTracker_GetConnectedAgentsByAgentIDs_Handler, }, { MethodName: "CountAgentsByAgentVersions", Handler: _AgentTracker_CountAgentsByAgentVersions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/module/agent_tracker/rpc/rpc.proto", }
AgentTracker_ServiceDesc is the grpc.ServiceDesc for AgentTracker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_module_agent_tracker_rpc_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentTrackerServer ¶
func RegisterAgentTrackerServer(s grpc.ServiceRegistrar, srv AgentTrackerServer)
Types ¶
type AgentTrackerClient ¶
type AgentTrackerClient interface { GetConnectedAgentsByProjectIDs(ctx context.Context, in *GetConnectedAgentsByProjectIDsRequest, opts ...grpc.CallOption) (*GetConnectedAgentsByProjectIDsResponse, error) GetConnectedAgentsByAgentIDs(ctx context.Context, in *GetConnectedAgentsByAgentIDsRequest, opts ...grpc.CallOption) (*GetConnectedAgentsByAgentIDsResponse, error) CountAgentsByAgentVersions(ctx context.Context, in *CountAgentsByAgentVersionsRequest, opts ...grpc.CallOption) (*CountAgentsByAgentVersionsResponse, error) }
AgentTrackerClient is the client API for AgentTracker 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 NewAgentTrackerClient ¶
func NewAgentTrackerClient(cc grpc.ClientConnInterface) AgentTrackerClient
type AgentTrackerServer ¶
type AgentTrackerServer interface { GetConnectedAgentsByProjectIDs(context.Context, *GetConnectedAgentsByProjectIDsRequest) (*GetConnectedAgentsByProjectIDsResponse, error) GetConnectedAgentsByAgentIDs(context.Context, *GetConnectedAgentsByAgentIDsRequest) (*GetConnectedAgentsByAgentIDsResponse, error) CountAgentsByAgentVersions(context.Context, *CountAgentsByAgentVersionsRequest) (*CountAgentsByAgentVersionsResponse, error) // contains filtered or unexported methods }
AgentTrackerServer is the server API for AgentTracker service. All implementations must embed UnimplementedAgentTrackerServer for forward compatibility.
type CountAgentsByAgentVersionsRequest ¶
type CountAgentsByAgentVersionsRequest struct {
// contains filtered or unexported fields
}
func (*CountAgentsByAgentVersionsRequest) Descriptor
deprecated
func (*CountAgentsByAgentVersionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountAgentsByAgentVersionsRequest.ProtoReflect.Descriptor instead.
func (*CountAgentsByAgentVersionsRequest) ProtoMessage ¶
func (*CountAgentsByAgentVersionsRequest) ProtoMessage()
func (*CountAgentsByAgentVersionsRequest) ProtoReflect ¶
func (x *CountAgentsByAgentVersionsRequest) ProtoReflect() protoreflect.Message
func (*CountAgentsByAgentVersionsRequest) Reset ¶
func (x *CountAgentsByAgentVersionsRequest) Reset()
func (*CountAgentsByAgentVersionsRequest) String ¶
func (x *CountAgentsByAgentVersionsRequest) String() string
type CountAgentsByAgentVersionsResponse ¶
type CountAgentsByAgentVersionsResponse struct { AgentVersions map[string]int64 `` /* 189-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CountAgentsByAgentVersionsResponse) Descriptor
deprecated
func (*CountAgentsByAgentVersionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountAgentsByAgentVersionsResponse.ProtoReflect.Descriptor instead.
func (*CountAgentsByAgentVersionsResponse) GetAgentVersions ¶
func (x *CountAgentsByAgentVersionsResponse) GetAgentVersions() map[string]int64
func (*CountAgentsByAgentVersionsResponse) ProtoMessage ¶
func (*CountAgentsByAgentVersionsResponse) ProtoMessage()
func (*CountAgentsByAgentVersionsResponse) ProtoReflect ¶
func (x *CountAgentsByAgentVersionsResponse) ProtoReflect() protoreflect.Message
func (*CountAgentsByAgentVersionsResponse) Reset ¶
func (x *CountAgentsByAgentVersionsResponse) Reset()
func (*CountAgentsByAgentVersionsResponse) String ¶
func (x *CountAgentsByAgentVersionsResponse) String() string
type GetConnectedAgentsByAgentIDsRequest ¶
type GetConnectedAgentsByAgentIDsRequest struct { AgentIds []int64 `protobuf:"varint,1,rep,packed,name=agent_ids,json=agentIds,proto3" json:"agent_ids,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedAgentsByAgentIDsRequest) Descriptor
deprecated
func (*GetConnectedAgentsByAgentIDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsByAgentIDsRequest.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsByAgentIDsRequest) GetAgentIds ¶
func (x *GetConnectedAgentsByAgentIDsRequest) GetAgentIds() []int64
func (*GetConnectedAgentsByAgentIDsRequest) ProtoMessage ¶
func (*GetConnectedAgentsByAgentIDsRequest) ProtoMessage()
func (*GetConnectedAgentsByAgentIDsRequest) ProtoReflect ¶
func (x *GetConnectedAgentsByAgentIDsRequest) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsByAgentIDsRequest) Reset ¶
func (x *GetConnectedAgentsByAgentIDsRequest) Reset()
func (*GetConnectedAgentsByAgentIDsRequest) String ¶
func (x *GetConnectedAgentsByAgentIDsRequest) String() string
type GetConnectedAgentsByAgentIDsResponse ¶
type GetConnectedAgentsByAgentIDsResponse struct { Agents []*agent_tracker.ConnectedAgentInfo `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedAgentsByAgentIDsResponse) Descriptor
deprecated
func (*GetConnectedAgentsByAgentIDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsByAgentIDsResponse.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsByAgentIDsResponse) GetAgents ¶
func (x *GetConnectedAgentsByAgentIDsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
func (*GetConnectedAgentsByAgentIDsResponse) ProtoMessage ¶
func (*GetConnectedAgentsByAgentIDsResponse) ProtoMessage()
func (*GetConnectedAgentsByAgentIDsResponse) ProtoReflect ¶
func (x *GetConnectedAgentsByAgentIDsResponse) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsByAgentIDsResponse) Reset ¶
func (x *GetConnectedAgentsByAgentIDsResponse) Reset()
func (*GetConnectedAgentsByAgentIDsResponse) String ¶
func (x *GetConnectedAgentsByAgentIDsResponse) String() string
type GetConnectedAgentsByProjectIDsRequest ¶
type GetConnectedAgentsByProjectIDsRequest struct { ProjectIds []int64 `protobuf:"varint,1,rep,packed,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedAgentsByProjectIDsRequest) Descriptor
deprecated
func (*GetConnectedAgentsByProjectIDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsByProjectIDsRequest.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsByProjectIDsRequest) GetProjectIds ¶
func (x *GetConnectedAgentsByProjectIDsRequest) GetProjectIds() []int64
func (*GetConnectedAgentsByProjectIDsRequest) ProtoMessage ¶
func (*GetConnectedAgentsByProjectIDsRequest) ProtoMessage()
func (*GetConnectedAgentsByProjectIDsRequest) ProtoReflect ¶
func (x *GetConnectedAgentsByProjectIDsRequest) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsByProjectIDsRequest) Reset ¶
func (x *GetConnectedAgentsByProjectIDsRequest) Reset()
func (*GetConnectedAgentsByProjectIDsRequest) String ¶
func (x *GetConnectedAgentsByProjectIDsRequest) String() string
type GetConnectedAgentsByProjectIDsResponse ¶
type GetConnectedAgentsByProjectIDsResponse struct { Agents []*agent_tracker.ConnectedAgentInfo `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedAgentsByProjectIDsResponse) Descriptor
deprecated
func (*GetConnectedAgentsByProjectIDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsByProjectIDsResponse.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsByProjectIDsResponse) GetAgents ¶
func (x *GetConnectedAgentsByProjectIDsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
func (*GetConnectedAgentsByProjectIDsResponse) ProtoMessage ¶
func (*GetConnectedAgentsByProjectIDsResponse) ProtoMessage()
func (*GetConnectedAgentsByProjectIDsResponse) ProtoReflect ¶
func (x *GetConnectedAgentsByProjectIDsResponse) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsByProjectIDsResponse) Reset ¶
func (x *GetConnectedAgentsByProjectIDsResponse) Reset()
func (*GetConnectedAgentsByProjectIDsResponse) String ¶
func (x *GetConnectedAgentsByProjectIDsResponse) String() string
type UnimplementedAgentTrackerServer ¶
type UnimplementedAgentTrackerServer struct{}
UnimplementedAgentTrackerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAgentTrackerServer) CountAgentsByAgentVersions ¶
func (UnimplementedAgentTrackerServer) CountAgentsByAgentVersions(context.Context, *CountAgentsByAgentVersionsRequest) (*CountAgentsByAgentVersionsResponse, error)
func (UnimplementedAgentTrackerServer) GetConnectedAgentsByAgentIDs ¶
func (UnimplementedAgentTrackerServer) GetConnectedAgentsByAgentIDs(context.Context, *GetConnectedAgentsByAgentIDsRequest) (*GetConnectedAgentsByAgentIDsResponse, error)
func (UnimplementedAgentTrackerServer) GetConnectedAgentsByProjectIDs ¶
func (UnimplementedAgentTrackerServer) GetConnectedAgentsByProjectIDs(context.Context, *GetConnectedAgentsByProjectIDsRequest) (*GetConnectedAgentsByProjectIDsResponse, error)
type UnsafeAgentTrackerServer ¶
type UnsafeAgentTrackerServer interface {
// contains filtered or unexported methods
}
UnsafeAgentTrackerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentTrackerServer will result in compilation errors.