rpc

package
v17.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentRegistrar_Register_FullMethodName   = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Register"
	AgentRegistrar_Unregister_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Unregister"
)

Variables

View Source
var AgentRegistrar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.agent_registrar.rpc.AgentRegistrar",
	HandlerType: (*AgentRegistrarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _AgentRegistrar_Register_Handler,
		},
		{
			MethodName: "Unregister",
			Handler:    _AgentRegistrar_Unregister_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/module/agent_registrar/rpc/rpc.proto",
}

AgentRegistrar_ServiceDesc is the grpc.ServiceDesc for AgentRegistrar 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_registrar_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterAgentRegistrarServer

func RegisterAgentRegistrarServer(s grpc.ServiceRegistrar, srv AgentRegistrarServer)

Types

type AgentRegistrarClient

type AgentRegistrarClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Unregister(ctx context.Context, in *UnregisterRequest, opts ...grpc.CallOption) (*UnregisterResponse, error)
}

AgentRegistrarClient is the client API for AgentRegistrar 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 AgentRegistrarServer

type AgentRegistrarServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error)
	// contains filtered or unexported methods
}

AgentRegistrarServer is the server API for AgentRegistrar service. All implementations must embed UnimplementedAgentRegistrarServer for forward compatibility

type RegisterRequest

type RegisterRequest struct {
	AgentMeta *entity.AgentMeta `protobuf:"bytes,1,opt,name=agent_meta,json=agentMeta,proto3" json:"agent_meta,omitempty"`
	PodId     int64             `protobuf:"varint,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetAgentMeta

func (x *RegisterRequest) GetAgentMeta() *entity.AgentMeta

func (*RegisterRequest) GetPodId

func (x *RegisterRequest) GetPodId() int64

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

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

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

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

type RegisterRequestValidationError

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

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type RegisterResponse

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

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

func (x *RegisterResponse) ProtoReflect() protoreflect.Message

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

func (*RegisterResponse) Validate

func (m *RegisterResponse) Validate() error

Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll

func (m *RegisterResponse) ValidateAll() error

ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.

type RegisterResponseMultiError

type RegisterResponseMultiError []error

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

func (RegisterResponseMultiError) AllErrors

func (m RegisterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterResponseMultiError) Error

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

type RegisterResponseValidationError

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

RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.

func (RegisterResponseValidationError) Cause

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAgentRegistrarServer

type UnimplementedAgentRegistrarServer struct {
}

UnimplementedAgentRegistrarServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentRegistrarServer) Register

func (UnimplementedAgentRegistrarServer) Unregister added in v17.1.0

type UnregisterRequest added in v17.1.0

type UnregisterRequest struct {
	AgentMeta *entity.AgentMeta `protobuf:"bytes,1,opt,name=agent_meta,json=agentMeta,proto3" json:"agent_meta,omitempty"`
	PodId     int64             `protobuf:"varint,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnregisterRequest) Descriptor deprecated added in v17.1.0

func (*UnregisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnregisterRequest.ProtoReflect.Descriptor instead.

func (*UnregisterRequest) GetAgentMeta added in v17.1.0

func (x *UnregisterRequest) GetAgentMeta() *entity.AgentMeta

func (*UnregisterRequest) GetPodId added in v17.1.0

func (x *UnregisterRequest) GetPodId() int64

func (*UnregisterRequest) ProtoMessage added in v17.1.0

func (*UnregisterRequest) ProtoMessage()

func (*UnregisterRequest) ProtoReflect added in v17.1.0

func (x *UnregisterRequest) ProtoReflect() protoreflect.Message

func (*UnregisterRequest) Reset added in v17.1.0

func (x *UnregisterRequest) Reset()

func (*UnregisterRequest) String added in v17.1.0

func (x *UnregisterRequest) String() string

func (*UnregisterRequest) Validate added in v17.1.0

func (m *UnregisterRequest) Validate() error

Validate checks the field values on UnregisterRequest 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 (*UnregisterRequest) ValidateAll added in v17.1.0

func (m *UnregisterRequest) ValidateAll() error

ValidateAll checks the field values on UnregisterRequest 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 UnregisterRequestMultiError, or nil if none found.

type UnregisterRequestMultiError added in v17.1.0

type UnregisterRequestMultiError []error

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

func (UnregisterRequestMultiError) AllErrors added in v17.1.0

func (m UnregisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnregisterRequestMultiError) Error added in v17.1.0

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

type UnregisterRequestValidationError added in v17.1.0

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

UnregisterRequestValidationError is the validation error returned by UnregisterRequest.Validate if the designated constraints aren't met.

func (UnregisterRequestValidationError) Cause added in v17.1.0

Cause function returns cause value.

func (UnregisterRequestValidationError) Error added in v17.1.0

Error satisfies the builtin error interface

func (UnregisterRequestValidationError) ErrorName added in v17.1.0

ErrorName returns error name.

func (UnregisterRequestValidationError) Field added in v17.1.0

Field function returns field value.

func (UnregisterRequestValidationError) Key added in v17.1.0

Key function returns key value.

func (UnregisterRequestValidationError) Reason added in v17.1.0

Reason function returns reason value.

type UnregisterResponse added in v17.1.0

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

func (*UnregisterResponse) Descriptor deprecated added in v17.1.0

func (*UnregisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnregisterResponse.ProtoReflect.Descriptor instead.

func (*UnregisterResponse) ProtoMessage added in v17.1.0

func (*UnregisterResponse) ProtoMessage()

func (*UnregisterResponse) ProtoReflect added in v17.1.0

func (x *UnregisterResponse) ProtoReflect() protoreflect.Message

func (*UnregisterResponse) Reset added in v17.1.0

func (x *UnregisterResponse) Reset()

func (*UnregisterResponse) String added in v17.1.0

func (x *UnregisterResponse) String() string

func (*UnregisterResponse) Validate added in v17.1.0

func (m *UnregisterResponse) Validate() error

Validate checks the field values on UnregisterResponse 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 (*UnregisterResponse) ValidateAll added in v17.1.0

func (m *UnregisterResponse) ValidateAll() error

ValidateAll checks the field values on UnregisterResponse 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 UnregisterResponseMultiError, or nil if none found.

type UnregisterResponseMultiError added in v17.1.0

type UnregisterResponseMultiError []error

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

func (UnregisterResponseMultiError) AllErrors added in v17.1.0

func (m UnregisterResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnregisterResponseMultiError) Error added in v17.1.0

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

type UnregisterResponseValidationError added in v17.1.0

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

UnregisterResponseValidationError is the validation error returned by UnregisterResponse.Validate if the designated constraints aren't met.

func (UnregisterResponseValidationError) Cause added in v17.1.0

Cause function returns cause value.

func (UnregisterResponseValidationError) Error added in v17.1.0

Error satisfies the builtin error interface

func (UnregisterResponseValidationError) ErrorName added in v17.1.0

ErrorName returns error name.

func (UnregisterResponseValidationError) Field added in v17.1.0

Field function returns field value.

func (UnregisterResponseValidationError) Key added in v17.1.0

Key function returns key value.

func (UnregisterResponseValidationError) Reason added in v17.1.0

Reason function returns reason value.

type UnsafeAgentRegistrarServer

type UnsafeAgentRegistrarServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentRegistrarServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentRegistrarServer will result in compilation errors.

Jump to

Keyboard shortcuts

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