rpc

package
v17.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

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

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

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

func (*CountAgentsByAgentVersionsRequest) 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 (*CountAgentsByAgentVersionsResponse) Reset

func (*CountAgentsByAgentVersionsResponse) 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 (*GetConnectedAgentsByAgentIDsRequest) Reset

func (*GetConnectedAgentsByAgentIDsRequest) 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 (*GetConnectedAgentsByAgentIDsResponse) ProtoMessage

func (*GetConnectedAgentsByAgentIDsResponse) ProtoMessage()

func (*GetConnectedAgentsByAgentIDsResponse) ProtoReflect

func (*GetConnectedAgentsByAgentIDsResponse) Reset

func (*GetConnectedAgentsByAgentIDsResponse) 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 (*GetConnectedAgentsByProjectIDsRequest) Reset

func (*GetConnectedAgentsByProjectIDsRequest) 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 (*GetConnectedAgentsByProjectIDsResponse) ProtoMessage

func (*GetConnectedAgentsByProjectIDsResponse) ProtoReflect

func (*GetConnectedAgentsByProjectIDsResponse) Reset

func (*GetConnectedAgentsByProjectIDsResponse) String

type UnimplementedAgentTrackerServer

type UnimplementedAgentTrackerServer struct {
}

UnimplementedAgentTrackerServer must be embedded to have forward compatible implementations.

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.

Jump to

Keyboard shortcuts

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