nodeattestor

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_agent_nodeattestor_nodeattestor_proto protoreflect.FileDescriptor

Functions

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 added in v0.12.0

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 added in v0.12.0

func (*FetchAttestationDataResponse) Reset

func (x *FetchAttestationDataResponse) Reset()

func (*FetchAttestationDataResponse) 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.

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) FetchAttestationData

type UnsafeNodeAttestorServer added in v0.12.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL