Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentInformation
- func (*AgentInformation) Descriptor() ([]byte, []int)deprecated
- func (x *AgentInformation) GetCapabilities() []*Capability
- func (*AgentInformation) ProtoMessage()
- func (x *AgentInformation) ProtoReflect() protoreflect.Message
- func (x *AgentInformation) Reset()
- func (x *AgentInformation) String() string
- type AgentInformationRequest
- type AgentServer
- type Capability
- type Capability_Type
- func (Capability_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Capability_Type) Enum() *Capability_Type
- func (Capability_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Capability_Type) Number() protoreflect.EnumNumber
- func (x Capability_Type) String() string
- func (Capability_Type) Type() protoreflect.EnumType
- type UnimplementedAgentServer
- type UnsafeAgentServer
Constants ¶
const (
Agent_GetAgentInformation_FullMethodName = "/v1.services.agent.Agent/GetAgentInformation"
)
Variables ¶
var ( Capability_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "FACTORY", 2: "RUNTIME", } Capability_Type_value = map[string]int32{ "UNKNOWN": 0, "FACTORY": 1, "RUNTIME": 2, } )
Enum value maps for Capability_Type.
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.services.agent.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAgentInformation", Handler: _Agent_GetAgentInformation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/services/agent/agent.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_services_agent_agent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface {
GetAgentInformation(ctx context.Context, in *AgentInformationRequest, opts ...grpc.CallOption) (*AgentInformation, error)
}
AgentClient is the client API for Agent 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 NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentInformation ¶
type AgentInformation struct { Capabilities []*Capability `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"` // contains filtered or unexported fields }
func (*AgentInformation) Descriptor
deprecated
func (*AgentInformation) Descriptor() ([]byte, []int)
Deprecated: Use AgentInformation.ProtoReflect.Descriptor instead.
func (*AgentInformation) GetCapabilities ¶
func (x *AgentInformation) GetCapabilities() []*Capability
func (*AgentInformation) ProtoMessage ¶
func (*AgentInformation) ProtoMessage()
func (*AgentInformation) ProtoReflect ¶
func (x *AgentInformation) ProtoReflect() protoreflect.Message
func (*AgentInformation) Reset ¶
func (x *AgentInformation) Reset()
func (*AgentInformation) String ¶
func (x *AgentInformation) String() string
type AgentInformationRequest ¶
type AgentInformationRequest struct {
// contains filtered or unexported fields
}
func (*AgentInformationRequest) Descriptor
deprecated
func (*AgentInformationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgentInformationRequest.ProtoReflect.Descriptor instead.
func (*AgentInformationRequest) ProtoMessage ¶
func (*AgentInformationRequest) ProtoMessage()
func (*AgentInformationRequest) ProtoReflect ¶
func (x *AgentInformationRequest) ProtoReflect() protoreflect.Message
func (*AgentInformationRequest) Reset ¶
func (x *AgentInformationRequest) Reset()
func (*AgentInformationRequest) String ¶
func (x *AgentInformationRequest) String() string
type AgentServer ¶
type AgentServer interface { GetAgentInformation(context.Context, *AgentInformationRequest) (*AgentInformation, error) // contains filtered or unexported methods }
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility
type Capability ¶
type Capability struct { Type Capability_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v1.services.agent.Capability_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Capability) Descriptor
deprecated
func (*Capability) Descriptor() ([]byte, []int)
Deprecated: Use Capability.ProtoReflect.Descriptor instead.
func (*Capability) GetType ¶
func (x *Capability) GetType() Capability_Type
func (*Capability) ProtoMessage ¶
func (*Capability) ProtoMessage()
func (*Capability) ProtoReflect ¶
func (x *Capability) ProtoReflect() protoreflect.Message
func (*Capability) Reset ¶
func (x *Capability) Reset()
func (*Capability) String ¶
func (x *Capability) String() string
type Capability_Type ¶
type Capability_Type int32
const ( Capability_UNKNOWN Capability_Type = 0 Capability_FACTORY Capability_Type = 1 Capability_RUNTIME Capability_Type = 2 )
func (Capability_Type) Descriptor ¶
func (Capability_Type) Descriptor() protoreflect.EnumDescriptor
func (Capability_Type) Enum ¶
func (x Capability_Type) Enum() *Capability_Type
func (Capability_Type) EnumDescriptor
deprecated
func (Capability_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Capability_Type.Descriptor instead.
func (Capability_Type) Number ¶
func (x Capability_Type) Number() protoreflect.EnumNumber
func (Capability_Type) String ¶
func (x Capability_Type) String() string
func (Capability_Type) Type ¶
func (Capability_Type) Type() protoreflect.EnumType
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) GetAgentInformation ¶
func (UnimplementedAgentServer) GetAgentInformation(context.Context, *AgentInformationRequest) (*AgentInformation, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.