Documentation ¶
Index ¶
- Variables
- func AgentStoreServiceServer(server AgentStoreServer) pluginsdk.ServiceServer
- func RegisterAgentStoreServer(s grpc.ServiceRegistrar, srv AgentStoreServer)
- type AgentInfo
- type AgentStoreClient
- type AgentStoreServer
- type AgentStoreServiceClient
- type GetAgentInfoRequest
- func (*GetAgentInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentInfoRequest) GetAgentId() string
- func (*GetAgentInfoRequest) ProtoMessage()
- func (x *GetAgentInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetAgentInfoRequest) Reset()
- func (x *GetAgentInfoRequest) String() string
- type GetAgentInfoResponse
- func (*GetAgentInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentInfoResponse) GetInfo() *AgentInfo
- func (*GetAgentInfoResponse) ProtoMessage()
- func (x *GetAgentInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetAgentInfoResponse) Reset()
- func (x *GetAgentInfoResponse) String() string
- type UnimplementedAgentStoreServer
- type UnsafeAgentStoreServer
Constants ¶
This section is empty.
Variables ¶
var AgentStore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spire.hostservice.server.agentstore.v1.AgentStore", HandlerType: (*AgentStoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAgentInfo", Handler: _AgentStore_GetAgentInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spire/hostservice/server/agentstore/v1/agentstore.proto", }
AgentStore_ServiceDesc is the grpc.ServiceDesc for AgentStore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_spire_hostservice_server_agentstore_v1_agentstore_proto protoreflect.FileDescriptor
Functions ¶
func AgentStoreServiceServer ¶
func AgentStoreServiceServer(server AgentStoreServer) pluginsdk.ServiceServer
func RegisterAgentStoreServer ¶
func RegisterAgentStoreServer(s grpc.ServiceRegistrar, srv AgentStoreServer)
Types ¶
type AgentInfo ¶
type AgentInfo struct { // Required. The ID of the agent. AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // contains filtered or unexported fields }
func (*AgentInfo) Descriptor
deprecated
func (*AgentInfo) GetAgentId ¶
func (*AgentInfo) ProtoMessage ¶
func (*AgentInfo) ProtoMessage()
func (*AgentInfo) ProtoReflect ¶
func (x *AgentInfo) ProtoReflect() protoreflect.Message
type AgentStoreClient ¶
type AgentStoreClient interface { // Gets the information associated with the given agent ID. If the given // agent is not attested, NOT_FOUND is returned. This RPC is currently // only used by server-side NodeAttestor plugins look up existing // agents to enforce TOFU. GetAgentInfo(ctx context.Context, in *GetAgentInfoRequest, opts ...grpc.CallOption) (*GetAgentInfoResponse, error) }
AgentStoreClient is the client API for AgentStore 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 NewAgentStoreClient ¶
func NewAgentStoreClient(cc grpc.ClientConnInterface) AgentStoreClient
type AgentStoreServer ¶
type AgentStoreServer interface { // Gets the information associated with the given agent ID. If the given // agent is not attested, NOT_FOUND is returned. This RPC is currently // only used by server-side NodeAttestor plugins look up existing // agents to enforce TOFU. GetAgentInfo(context.Context, *GetAgentInfoRequest) (*GetAgentInfoResponse, error) // contains filtered or unexported methods }
AgentStoreServer is the server API for AgentStore service. All implementations must embed UnimplementedAgentStoreServer for forward compatibility
type AgentStoreServiceClient ¶
type AgentStoreServiceClient struct {
AgentStoreClient
}
func (*AgentStoreServiceClient) GRPCServiceName ¶
func (c *AgentStoreServiceClient) GRPCServiceName() string
func (*AgentStoreServiceClient) InitClient ¶
func (c *AgentStoreServiceClient) InitClient(conn grpc.ClientConnInterface) interface{}
func (*AgentStoreServiceClient) IsInitialized ¶
func (c *AgentStoreServiceClient) IsInitialized() bool
type GetAgentInfoRequest ¶
type GetAgentInfoRequest struct { // Required. The ID of the agent to get information for. AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // contains filtered or unexported fields }
func (*GetAgentInfoRequest) Descriptor
deprecated
func (*GetAgentInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentInfoRequest.ProtoReflect.Descriptor instead.
func (*GetAgentInfoRequest) GetAgentId ¶
func (x *GetAgentInfoRequest) GetAgentId() string
func (*GetAgentInfoRequest) ProtoMessage ¶
func (*GetAgentInfoRequest) ProtoMessage()
func (*GetAgentInfoRequest) ProtoReflect ¶
func (x *GetAgentInfoRequest) ProtoReflect() protoreflect.Message
func (*GetAgentInfoRequest) Reset ¶
func (x *GetAgentInfoRequest) Reset()
func (*GetAgentInfoRequest) String ¶
func (x *GetAgentInfoRequest) String() string
type GetAgentInfoResponse ¶
type GetAgentInfoResponse struct { // Required. The agent information. Info *AgentInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetAgentInfoResponse) Descriptor
deprecated
func (*GetAgentInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentInfoResponse.ProtoReflect.Descriptor instead.
func (*GetAgentInfoResponse) GetInfo ¶
func (x *GetAgentInfoResponse) GetInfo() *AgentInfo
func (*GetAgentInfoResponse) ProtoMessage ¶
func (*GetAgentInfoResponse) ProtoMessage()
func (*GetAgentInfoResponse) ProtoReflect ¶
func (x *GetAgentInfoResponse) ProtoReflect() protoreflect.Message
func (*GetAgentInfoResponse) Reset ¶
func (x *GetAgentInfoResponse) Reset()
func (*GetAgentInfoResponse) String ¶
func (x *GetAgentInfoResponse) String() string
type UnimplementedAgentStoreServer ¶
type UnimplementedAgentStoreServer struct { }
UnimplementedAgentStoreServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentStoreServer) GetAgentInfo ¶
func (UnimplementedAgentStoreServer) GetAgentInfo(context.Context, *GetAgentInfoRequest) (*GetAgentInfoResponse, error)
type UnsafeAgentStoreServer ¶
type UnsafeAgentStoreServer interface {
// contains filtered or unexported methods
}
UnsafeAgentStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentStoreServer will result in compilation errors.