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 UnregisterRequest
- func (*UnregisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterRequest) GetAgentMeta() *entity.AgentMeta
- func (x *UnregisterRequest) GetPodId() int64
- func (*UnregisterRequest) ProtoMessage()
- func (x *UnregisterRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterRequest) Reset()
- func (x *UnregisterRequest) String() string
- func (m *UnregisterRequest) Validate() error
- func (m *UnregisterRequest) ValidateAll() error
- type UnregisterRequestMultiError
- type UnregisterRequestValidationError
- func (e UnregisterRequestValidationError) Cause() error
- func (e UnregisterRequestValidationError) Error() string
- func (e UnregisterRequestValidationError) ErrorName() string
- func (e UnregisterRequestValidationError) Field() string
- func (e UnregisterRequestValidationError) Key() bool
- func (e UnregisterRequestValidationError) Reason() string
- type UnregisterResponse
- func (*UnregisterResponse) Descriptor() ([]byte, []int)deprecated
- func (*UnregisterResponse) ProtoMessage()
- func (x *UnregisterResponse) ProtoReflect() protoreflect.Message
- func (x *UnregisterResponse) Reset()
- func (x *UnregisterResponse) String() string
- func (m *UnregisterResponse) Validate() error
- func (m *UnregisterResponse) ValidateAll() error
- type UnregisterResponseMultiError
- type UnregisterResponseValidationError
- func (e UnregisterResponseValidationError) Cause() error
- func (e UnregisterResponseValidationError) Error() string
- func (e UnregisterResponseValidationError) ErrorName() string
- func (e UnregisterResponseValidationError) Field() string
- func (e UnregisterResponseValidationError) Key() bool
- func (e UnregisterResponseValidationError) Reason() string
- type UnsafeAgentRegistrarServer
Constants ¶
const ( AgentRegistrar_Register_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Register" AgentRegistrar_Unregister_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Unregister" )
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, }, { 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)
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.
func NewAgentRegistrarClient ¶
func NewAgentRegistrarClient(cc grpc.ClientConnInterface) AgentRegistrarClient
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 ¶
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)
func (UnimplementedAgentRegistrarServer) Unregister ¶ added in v17.1.0
func (UnimplementedAgentRegistrarServer) Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error)
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
func (m UnregisterRequestMultiError) Error() string
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
func (e UnregisterRequestValidationError) Cause() error
Cause function returns cause value.
func (UnregisterRequestValidationError) Error ¶ added in v17.1.0
func (e UnregisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnregisterRequestValidationError) ErrorName ¶ added in v17.1.0
func (e UnregisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnregisterRequestValidationError) Field ¶ added in v17.1.0
func (e UnregisterRequestValidationError) Field() string
Field function returns field value.
func (UnregisterRequestValidationError) Key ¶ added in v17.1.0
func (e UnregisterRequestValidationError) Key() bool
Key function returns key value.
func (UnregisterRequestValidationError) Reason ¶ added in v17.1.0
func (e UnregisterRequestValidationError) Reason() string
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
func (m UnregisterResponseMultiError) Error() string
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
func (e UnregisterResponseValidationError) Cause() error
Cause function returns cause value.
func (UnregisterResponseValidationError) Error ¶ added in v17.1.0
func (e UnregisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnregisterResponseValidationError) ErrorName ¶ added in v17.1.0
func (e UnregisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnregisterResponseValidationError) Field ¶ added in v17.1.0
func (e UnregisterResponseValidationError) Field() string
Field function returns field value.
func (UnregisterResponseValidationError) Key ¶ added in v17.1.0
func (e UnregisterResponseValidationError) Key() bool
Key function returns key value.
func (UnregisterResponseValidationError) Reason ¶ added in v17.1.0
func (e UnregisterResponseValidationError) Reason() string
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.