Documentation ¶
Index ¶
- Constants
- Variables
- func BuiltIn() catalog.BuiltIn
- type Config
- type Plugin
- func (p *Plugin) AidAttestation(stream nodeattestorv1.NodeAttestor_AidAttestationServer) error
- func (p *Plugin) Configure(_ context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *Plugin) SetLogger(log hclog.Logger)
- func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
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"` Autodetect bool }
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(_ context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
func (*Plugin) Validate ¶ added in v1.11.0
func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.