rpc

package
v17.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 22 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

func (*CountAgentsByAgentVersionsRequest) Validate

Validate checks the field values on CountAgentsByAgentVersionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CountAgentsByAgentVersionsRequest) ValidateAll

func (m *CountAgentsByAgentVersionsRequest) ValidateAll() error

ValidateAll checks the field values on CountAgentsByAgentVersionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CountAgentsByAgentVersionsRequestMultiError, or nil if none found.

type CountAgentsByAgentVersionsRequestMultiError

type CountAgentsByAgentVersionsRequestMultiError []error

CountAgentsByAgentVersionsRequestMultiError is an error wrapping multiple validation errors returned by CountAgentsByAgentVersionsRequest.ValidateAll() if the designated constraints aren't met.

func (CountAgentsByAgentVersionsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CountAgentsByAgentVersionsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CountAgentsByAgentVersionsRequestValidationError

type CountAgentsByAgentVersionsRequestValidationError struct {
	// contains filtered or unexported fields
}

CountAgentsByAgentVersionsRequestValidationError is the validation error returned by CountAgentsByAgentVersionsRequest.Validate if the designated constraints aren't met.

func (CountAgentsByAgentVersionsRequestValidationError) Cause

Cause function returns cause value.

func (CountAgentsByAgentVersionsRequestValidationError) Error

Error satisfies the builtin error interface

func (CountAgentsByAgentVersionsRequestValidationError) ErrorName

ErrorName returns error name.

func (CountAgentsByAgentVersionsRequestValidationError) Field

Field function returns field value.

func (CountAgentsByAgentVersionsRequestValidationError) Key

Key function returns key value.

func (CountAgentsByAgentVersionsRequestValidationError) Reason

Reason function returns reason value.

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

func (*CountAgentsByAgentVersionsResponse) Validate

Validate checks the field values on CountAgentsByAgentVersionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CountAgentsByAgentVersionsResponse) ValidateAll

func (m *CountAgentsByAgentVersionsResponse) ValidateAll() error

ValidateAll checks the field values on CountAgentsByAgentVersionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CountAgentsByAgentVersionsResponseMultiError, or nil if none found.

type CountAgentsByAgentVersionsResponseMultiError

type CountAgentsByAgentVersionsResponseMultiError []error

CountAgentsByAgentVersionsResponseMultiError is an error wrapping multiple validation errors returned by CountAgentsByAgentVersionsResponse.ValidateAll() if the designated constraints aren't met.

func (CountAgentsByAgentVersionsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CountAgentsByAgentVersionsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CountAgentsByAgentVersionsResponseValidationError

type CountAgentsByAgentVersionsResponseValidationError struct {
	// contains filtered or unexported fields
}

CountAgentsByAgentVersionsResponseValidationError is the validation error returned by CountAgentsByAgentVersionsResponse.Validate if the designated constraints aren't met.

func (CountAgentsByAgentVersionsResponseValidationError) Cause

Cause function returns cause value.

func (CountAgentsByAgentVersionsResponseValidationError) Error

Error satisfies the builtin error interface

func (CountAgentsByAgentVersionsResponseValidationError) ErrorName

ErrorName returns error name.

func (CountAgentsByAgentVersionsResponseValidationError) Field

Field function returns field value.

func (CountAgentsByAgentVersionsResponseValidationError) Key

Key function returns key value.

func (CountAgentsByAgentVersionsResponseValidationError) Reason

Reason function returns reason value.

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

func (*GetConnectedAgentsByAgentIDsRequest) Validate

Validate checks the field values on GetConnectedAgentsByAgentIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsByAgentIDsRequest) ValidateAll

func (m *GetConnectedAgentsByAgentIDsRequest) ValidateAll() error

ValidateAll checks the field values on GetConnectedAgentsByAgentIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsByAgentIDsRequestMultiError, or nil if none found.

type GetConnectedAgentsByAgentIDsRequestMultiError

type GetConnectedAgentsByAgentIDsRequestMultiError []error

GetConnectedAgentsByAgentIDsRequestMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsByAgentIDsRequest.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsByAgentIDsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsByAgentIDsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetConnectedAgentsByAgentIDsRequestValidationError

type GetConnectedAgentsByAgentIDsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetConnectedAgentsByAgentIDsRequestValidationError is the validation error returned by GetConnectedAgentsByAgentIDsRequest.Validate if the designated constraints aren't met.

func (GetConnectedAgentsByAgentIDsRequestValidationError) Cause

Cause function returns cause value.

func (GetConnectedAgentsByAgentIDsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsByAgentIDsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsByAgentIDsRequestValidationError) Field

Field function returns field value.

func (GetConnectedAgentsByAgentIDsRequestValidationError) Key

Key function returns key value.

func (GetConnectedAgentsByAgentIDsRequestValidationError) Reason

Reason function returns reason value.

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

func (*GetConnectedAgentsByAgentIDsResponse) Validate

Validate checks the field values on GetConnectedAgentsByAgentIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsByAgentIDsResponse) ValidateAll

ValidateAll checks the field values on GetConnectedAgentsByAgentIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsByAgentIDsResponseMultiError, or nil if none found.

type GetConnectedAgentsByAgentIDsResponseMultiError

type GetConnectedAgentsByAgentIDsResponseMultiError []error

GetConnectedAgentsByAgentIDsResponseMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsByAgentIDsResponse.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsByAgentIDsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsByAgentIDsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetConnectedAgentsByAgentIDsResponseValidationError

type GetConnectedAgentsByAgentIDsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetConnectedAgentsByAgentIDsResponseValidationError is the validation error returned by GetConnectedAgentsByAgentIDsResponse.Validate if the designated constraints aren't met.

func (GetConnectedAgentsByAgentIDsResponseValidationError) Cause

Cause function returns cause value.

func (GetConnectedAgentsByAgentIDsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsByAgentIDsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsByAgentIDsResponseValidationError) Field

Field function returns field value.

func (GetConnectedAgentsByAgentIDsResponseValidationError) Key

Key function returns key value.

func (GetConnectedAgentsByAgentIDsResponseValidationError) Reason

Reason function returns reason value.

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

func (*GetConnectedAgentsByProjectIDsRequest) Validate

Validate checks the field values on GetConnectedAgentsByProjectIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsByProjectIDsRequest) ValidateAll

ValidateAll checks the field values on GetConnectedAgentsByProjectIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsByProjectIDsRequestMultiError, or nil if none found.

type GetConnectedAgentsByProjectIDsRequestMultiError

type GetConnectedAgentsByProjectIDsRequestMultiError []error

GetConnectedAgentsByProjectIDsRequestMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsByProjectIDsRequest.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsByProjectIDsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsByProjectIDsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetConnectedAgentsByProjectIDsRequestValidationError

type GetConnectedAgentsByProjectIDsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetConnectedAgentsByProjectIDsRequestValidationError is the validation error returned by GetConnectedAgentsByProjectIDsRequest.Validate if the designated constraints aren't met.

func (GetConnectedAgentsByProjectIDsRequestValidationError) Cause

Cause function returns cause value.

func (GetConnectedAgentsByProjectIDsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsByProjectIDsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsByProjectIDsRequestValidationError) Field

Field function returns field value.

func (GetConnectedAgentsByProjectIDsRequestValidationError) Key

Key function returns key value.

func (GetConnectedAgentsByProjectIDsRequestValidationError) Reason

Reason function returns reason value.

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

func (*GetConnectedAgentsByProjectIDsResponse) Validate

Validate checks the field values on GetConnectedAgentsByProjectIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsByProjectIDsResponse) ValidateAll

ValidateAll checks the field values on GetConnectedAgentsByProjectIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsByProjectIDsResponseMultiError, or nil if none found.

type GetConnectedAgentsByProjectIDsResponseMultiError

type GetConnectedAgentsByProjectIDsResponseMultiError []error

GetConnectedAgentsByProjectIDsResponseMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsByProjectIDsResponse.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsByProjectIDsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsByProjectIDsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetConnectedAgentsByProjectIDsResponseValidationError

type GetConnectedAgentsByProjectIDsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetConnectedAgentsByProjectIDsResponseValidationError is the validation error returned by GetConnectedAgentsByProjectIDsResponse.Validate if the designated constraints aren't met.

func (GetConnectedAgentsByProjectIDsResponseValidationError) Cause

Cause function returns cause value.

func (GetConnectedAgentsByProjectIDsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsByProjectIDsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsByProjectIDsResponseValidationError) Field

Field function returns field value.

func (GetConnectedAgentsByProjectIDsResponseValidationError) Key

Key function returns key value.

func (GetConnectedAgentsByProjectIDsResponseValidationError) Reason

Reason function returns reason value.

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