Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentRegistrarServer(s grpc.ServiceRegistrar, srv AgentRegistrarServer)
- type AgentRegistrarClient
- type AgentRegistrarServer
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAgentMeta() *entity.AgentMeta
- func (x *RegisterRequest) GetPodId() int64
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type UnimplementedAgentRegistrarServer
- type UnsafeAgentRegistrarServer
Constants ¶
const (
AgentRegistrar_Register_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Register"
)
Variables ¶
var AgentRegistrar_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.agent_registrar.rpc.AgentRegistrar", HandlerType: (*AgentRegistrarServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AgentRegistrar_Register_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)
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)
}
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.
func NewAgentRegistrarClient ¶
func NewAgentRegistrarClient(cc grpc.ClientConnInterface) AgentRegistrarClient
type AgentRegistrarServer ¶
type AgentRegistrarServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, 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 ¶
func (m RegisterRequestMultiError) Error() string
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 ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
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 ¶
func (m RegisterResponseMultiError) Error() string
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 ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAgentRegistrarServer ¶
type UnimplementedAgentRegistrarServer struct { }
UnimplementedAgentRegistrarServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentRegistrarServer) Register ¶
func (UnimplementedAgentRegistrarServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
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.