Documentation ¶
Index ¶
Constants ¶
View Source
const BaseTPMDir = "/dev"
Variables ¶
View Source
var ( AutoDetectTPMPath func(string) (string, error) = tpmutil.AutoDetectTPMPath NewSession func(*tpmutil.SessionConfig) (*tpmutil.Session, error) = tpmutil.NewSession )
Functions defined here are overridden in test files to facilitate unit testing
Functions ¶
Types ¶
type Config ¶
type Config struct { DevIDPrivPath string `hcl:"devid_priv_path"` DevIDPubPath string `hcl:"devid_pub_path"` DevIDCertPath string `hcl:"devid_cert_path"` DevIDKeyPassword string `hcl:"devid_password"` OwnerHierarchyPassword string `hcl:"owner_hierarchy_password"` EndorsementHierarchyPassword string `hcl:"endorsement_hierarchy_password"` DevicePath string `hcl:"tpm_device_path"` }
type Plugin ¶
type Plugin struct { nodeattestorv1.UnsafeNodeAttestorServer configv1.UnsafeConfigServer // contains filtered or unexported fields }
func (*Plugin) AidAttestation ¶
func (p *Plugin) AidAttestation(stream nodeattestorv1.NodeAttestor_AidAttestationServer) error
func (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
Click to show internal directories.
Click to hide internal directories.