Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentTrackerServer(s grpc.ServiceRegistrar, srv AgentTrackerServer)
- type AgentTrackerClient
- type AgentTrackerServer
- type AgentWarning
- func (*AgentWarning) Descriptor() ([]byte, []int)deprecated
- func (x *AgentWarning) GetVersion() *AgentWarningVersion
- func (m *AgentWarning) GetWarning() isAgentWarning_Warning
- func (*AgentWarning) ProtoMessage()
- func (x *AgentWarning) ProtoReflect() protoreflect.Message
- func (x *AgentWarning) Reset()
- func (x *AgentWarning) String() string
- type AgentWarningVersion
- func (*AgentWarningVersion) Descriptor() ([]byte, []int)deprecated
- func (x *AgentWarningVersion) GetMessage() string
- func (x *AgentWarningVersion) GetType() string
- func (*AgentWarningVersion) ProtoMessage()
- func (x *AgentWarningVersion) ProtoReflect() protoreflect.Message
- func (x *AgentWarningVersion) Reset()
- func (x *AgentWarningVersion) String() string
- type AgentWarning_Version
- type ConnectedAgent
- func (*ConnectedAgent) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectedAgent) GetAgentId() int64
- func (x *ConnectedAgent) GetAgentMeta() *entity.AgentMeta
- func (x *ConnectedAgent) GetConnectedAt() *timestamppb.Timestamp
- func (x *ConnectedAgent) GetConnectionId() int64
- func (x *ConnectedAgent) GetProjectId() int64
- func (x *ConnectedAgent) GetWarnings() []*AgentWarning
- func (*ConnectedAgent) ProtoMessage()
- func (x *ConnectedAgent) ProtoReflect() protoreflect.Message
- func (x *ConnectedAgent) Reset()
- func (x *ConnectedAgent) String() string
- 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() []*ConnectedAgent
- 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() []*ConnectedAgent
- 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 AgentWarning ¶ added in v17.6.0
type AgentWarning struct { // Types that are assignable to Warning: // // *AgentWarning_Version Warning isAgentWarning_Warning `protobuf_oneof:"warning"` // contains filtered or unexported fields }
func (*AgentWarning) Descriptor
deprecated
added in
v17.6.0
func (*AgentWarning) Descriptor() ([]byte, []int)
Deprecated: Use AgentWarning.ProtoReflect.Descriptor instead.
func (*AgentWarning) GetVersion ¶ added in v17.6.0
func (x *AgentWarning) GetVersion() *AgentWarningVersion
func (*AgentWarning) GetWarning ¶ added in v17.6.0
func (m *AgentWarning) GetWarning() isAgentWarning_Warning
func (*AgentWarning) ProtoMessage ¶ added in v17.6.0
func (*AgentWarning) ProtoMessage()
func (*AgentWarning) ProtoReflect ¶ added in v17.6.0
func (x *AgentWarning) ProtoReflect() protoreflect.Message
func (*AgentWarning) Reset ¶ added in v17.6.0
func (x *AgentWarning) Reset()
func (*AgentWarning) String ¶ added in v17.6.0
func (x *AgentWarning) String() string
type AgentWarningVersion ¶ added in v17.6.0
type AgentWarningVersion struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*AgentWarningVersion) Descriptor
deprecated
added in
v17.6.0
func (*AgentWarningVersion) Descriptor() ([]byte, []int)
Deprecated: Use AgentWarningVersion.ProtoReflect.Descriptor instead.
func (*AgentWarningVersion) GetMessage ¶ added in v17.6.0
func (x *AgentWarningVersion) GetMessage() string
func (*AgentWarningVersion) GetType ¶ added in v17.6.0
func (x *AgentWarningVersion) GetType() string
func (*AgentWarningVersion) ProtoMessage ¶ added in v17.6.0
func (*AgentWarningVersion) ProtoMessage()
func (*AgentWarningVersion) ProtoReflect ¶ added in v17.6.0
func (x *AgentWarningVersion) ProtoReflect() protoreflect.Message
func (*AgentWarningVersion) Reset ¶ added in v17.6.0
func (x *AgentWarningVersion) Reset()
func (*AgentWarningVersion) String ¶ added in v17.6.0
func (x *AgentWarningVersion) String() string
type AgentWarning_Version ¶ added in v17.6.0
type AgentWarning_Version struct {
Version *AgentWarningVersion `protobuf:"bytes,1,opt,name=version,proto3,oneof"`
}
type ConnectedAgent ¶ added in v17.6.0
type ConnectedAgent struct { AgentMeta *entity.AgentMeta `protobuf:"bytes,1,opt,name=agent_meta,proto3" json:"agent_meta,omitempty"` ConnectedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=connected_at,proto3" json:"connected_at,omitempty"` ConnectionId int64 `protobuf:"varint,3,opt,name=connection_id,proto3" json:"connection_id,omitempty"` AgentId int64 `protobuf:"varint,4,opt,name=agent_id,proto3" json:"agent_id,omitempty"` ProjectId int64 `protobuf:"varint,5,opt,name=project_id,proto3" json:"project_id,omitempty"` Warnings []*AgentWarning `protobuf:"bytes,6,rep,name=warnings,proto3" json:"warnings,omitempty"` // contains filtered or unexported fields }
func (*ConnectedAgent) Descriptor
deprecated
added in
v17.6.0
func (*ConnectedAgent) Descriptor() ([]byte, []int)
Deprecated: Use ConnectedAgent.ProtoReflect.Descriptor instead.
func (*ConnectedAgent) GetAgentId ¶ added in v17.6.0
func (x *ConnectedAgent) GetAgentId() int64
func (*ConnectedAgent) GetAgentMeta ¶ added in v17.6.0
func (x *ConnectedAgent) GetAgentMeta() *entity.AgentMeta
func (*ConnectedAgent) GetConnectedAt ¶ added in v17.6.0
func (x *ConnectedAgent) GetConnectedAt() *timestamppb.Timestamp
func (*ConnectedAgent) GetConnectionId ¶ added in v17.6.0
func (x *ConnectedAgent) GetConnectionId() int64
func (*ConnectedAgent) GetProjectId ¶ added in v17.6.0
func (x *ConnectedAgent) GetProjectId() int64
func (*ConnectedAgent) GetWarnings ¶ added in v17.6.0
func (x *ConnectedAgent) GetWarnings() []*AgentWarning
func (*ConnectedAgent) ProtoMessage ¶ added in v17.6.0
func (*ConnectedAgent) ProtoMessage()
func (*ConnectedAgent) ProtoReflect ¶ added in v17.6.0
func (x *ConnectedAgent) ProtoReflect() protoreflect.Message
func (*ConnectedAgent) Reset ¶ added in v17.6.0
func (x *ConnectedAgent) Reset()
func (*ConnectedAgent) String ¶ added in v17.6.0
func (x *ConnectedAgent) String() string
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 []*ConnectedAgent `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() []*ConnectedAgent
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 []*ConnectedAgent `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() []*ConnectedAgent
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.