rpc

package
v17.6.0-rc42 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 11 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 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 (*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 []*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 (*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 []*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 (*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.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

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