Documentation ¶
Index ¶
- Variables
- func NodeAttestorPluginServer(server NodeAttestorServer) pluginsdk.PluginServer
- func RegisterNodeAttestorServer(s grpc.ServiceRegistrar, srv NodeAttestorServer)
- type FetchAttestationDataRequest
- func (*FetchAttestationDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAttestationDataRequest) GetChallenge() []byte
- func (*FetchAttestationDataRequest) ProtoMessage()
- func (x *FetchAttestationDataRequest) ProtoReflect() protoreflect.Message
- func (x *FetchAttestationDataRequest) Reset()
- func (x *FetchAttestationDataRequest) String() string
- type FetchAttestationDataResponse
- func (*FetchAttestationDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAttestationDataResponse) GetAttestationData() *common.AttestationData
- func (x *FetchAttestationDataResponse) GetResponse() []byte
- func (*FetchAttestationDataResponse) ProtoMessage()
- func (x *FetchAttestationDataResponse) ProtoReflect() protoreflect.Message
- func (x *FetchAttestationDataResponse) Reset()
- func (x *FetchAttestationDataResponse) String() string
- type NodeAttestorClient
- type NodeAttestorPluginClient
- type NodeAttestorServer
- type NodeAttestor_FetchAttestationDataClient
- type NodeAttestor_FetchAttestationDataServer
- type UnimplementedNodeAttestorServer
- func (UnimplementedNodeAttestorServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
- func (UnimplementedNodeAttestorServer) FetchAttestationData(NodeAttestor_FetchAttestationDataServer) error
- func (UnimplementedNodeAttestorServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
- type UnsafeNodeAttestorServer
Constants ¶
This section is empty.
Variables ¶
var File_spire_plugin_agent_nodeattestor_v0_nodeattestor_proto protoreflect.FileDescriptor
var NodeAttestor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spire.agent.nodeattestor.NodeAttestor", HandlerType: (*NodeAttestorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Configure", Handler: _NodeAttestor_Configure_Handler, }, { MethodName: "GetPluginInfo", Handler: _NodeAttestor_GetPluginInfo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "FetchAttestationData", Handler: _NodeAttestor_FetchAttestationData_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "spire/plugin/agent/nodeattestor/v0/nodeattestor.proto", }
NodeAttestor_ServiceDesc is the grpc.ServiceDesc for NodeAttestor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NodeAttestorPluginServer ¶
func NodeAttestorPluginServer(server NodeAttestorServer) pluginsdk.PluginServer
func RegisterNodeAttestorServer ¶
func RegisterNodeAttestorServer(s grpc.ServiceRegistrar, srv NodeAttestorServer)
Types ¶
type FetchAttestationDataRequest ¶
type FetchAttestationDataRequest struct { Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` // contains filtered or unexported fields }
* Represents an empty request
func (*FetchAttestationDataRequest) Descriptor
deprecated
func (*FetchAttestationDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchAttestationDataRequest.ProtoReflect.Descriptor instead.
func (*FetchAttestationDataRequest) GetChallenge ¶
func (x *FetchAttestationDataRequest) GetChallenge() []byte
func (*FetchAttestationDataRequest) ProtoMessage ¶
func (*FetchAttestationDataRequest) ProtoMessage()
func (*FetchAttestationDataRequest) ProtoReflect ¶
func (x *FetchAttestationDataRequest) ProtoReflect() protoreflect.Message
func (*FetchAttestationDataRequest) Reset ¶
func (x *FetchAttestationDataRequest) Reset()
func (*FetchAttestationDataRequest) String ¶
func (x *FetchAttestationDataRequest) String() string
type FetchAttestationDataResponse ¶
type FetchAttestationDataResponse struct { //* A type which contains attestation data for specific platform AttestationData *common.AttestationData `protobuf:"bytes,1,opt,name=attestation_data,json=attestationData,proto3" json:"attestation_data,omitempty"` //* response to the challenge (if challenge was present) * Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
* Represents the attested data and base SPIFFE ID
func (*FetchAttestationDataResponse) Descriptor
deprecated
func (*FetchAttestationDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchAttestationDataResponse.ProtoReflect.Descriptor instead.
func (*FetchAttestationDataResponse) GetAttestationData ¶
func (x *FetchAttestationDataResponse) GetAttestationData() *common.AttestationData
func (*FetchAttestationDataResponse) GetResponse ¶
func (x *FetchAttestationDataResponse) GetResponse() []byte
func (*FetchAttestationDataResponse) ProtoMessage ¶
func (*FetchAttestationDataResponse) ProtoMessage()
func (*FetchAttestationDataResponse) ProtoReflect ¶
func (x *FetchAttestationDataResponse) ProtoReflect() protoreflect.Message
func (*FetchAttestationDataResponse) Reset ¶
func (x *FetchAttestationDataResponse) Reset()
func (*FetchAttestationDataResponse) String ¶
func (x *FetchAttestationDataResponse) String() string
type NodeAttestorClient ¶
type NodeAttestorClient interface { //* Returns the node attestation data for specific platform and the generated Base SPIFFE ID for CSR formation FetchAttestationData(ctx context.Context, opts ...grpc.CallOption) (NodeAttestor_FetchAttestationDataClient, error) //* Applies the plugin configuration and returns configuration errors Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error) //* Returns the version and related metadata of the plugin GetPluginInfo(ctx context.Context, in *plugin.GetPluginInfoRequest, opts ...grpc.CallOption) (*plugin.GetPluginInfoResponse, error) }
NodeAttestorClient is the client API for NodeAttestor 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 NewNodeAttestorClient ¶
func NewNodeAttestorClient(cc grpc.ClientConnInterface) NodeAttestorClient
type NodeAttestorPluginClient ¶
type NodeAttestorPluginClient struct {
NodeAttestorClient
}
func (*NodeAttestorPluginClient) GRPCServiceName ¶
func (c *NodeAttestorPluginClient) GRPCServiceName() string
func (*NodeAttestorPluginClient) InitClient ¶
func (c *NodeAttestorPluginClient) InitClient(conn grpc.ClientConnInterface) interface{}
func (*NodeAttestorPluginClient) IsInitialized ¶
func (c *NodeAttestorPluginClient) IsInitialized() bool
func (NodeAttestorPluginClient) Type ¶
func (s NodeAttestorPluginClient) Type() string
type NodeAttestorServer ¶
type NodeAttestorServer interface { //* Returns the node attestation data for specific platform and the generated Base SPIFFE ID for CSR formation FetchAttestationData(NodeAttestor_FetchAttestationDataServer) error //* Applies the plugin configuration and returns configuration errors Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error) //* Returns the version and related metadata of the plugin GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error) // contains filtered or unexported methods }
NodeAttestorServer is the server API for NodeAttestor service. All implementations must embed UnimplementedNodeAttestorServer for forward compatibility
type NodeAttestor_FetchAttestationDataClient ¶
type NodeAttestor_FetchAttestationDataClient interface { Send(*FetchAttestationDataRequest) error Recv() (*FetchAttestationDataResponse, error) grpc.ClientStream }
type NodeAttestor_FetchAttestationDataServer ¶
type NodeAttestor_FetchAttestationDataServer interface { Send(*FetchAttestationDataResponse) error Recv() (*FetchAttestationDataRequest, error) grpc.ServerStream }
type UnimplementedNodeAttestorServer ¶
type UnimplementedNodeAttestorServer struct { }
UnimplementedNodeAttestorServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeAttestorServer) Configure ¶
func (UnimplementedNodeAttestorServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
func (UnimplementedNodeAttestorServer) FetchAttestationData ¶
func (UnimplementedNodeAttestorServer) FetchAttestationData(NodeAttestor_FetchAttestationDataServer) error
func (UnimplementedNodeAttestorServer) GetPluginInfo ¶
func (UnimplementedNodeAttestorServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
type UnsafeNodeAttestorServer ¶
type UnsafeNodeAttestorServer interface {
// contains filtered or unexported methods
}
UnsafeNodeAttestorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeAttestorServer will result in compilation errors.