Documentation
¶
Index ¶
- func BuiltIn() catalog.Plugin
- type AttestorConfig
- type AttestorPlugin
- func (p *AttestorPlugin) Configure(ctx context.Context, req *spi.ConfigureRequest) (resp *spi.ConfigureResponse, err error)
- func (p *AttestorPlugin) FetchAttestationData(stream nodeattestor.NodeAttestor_FetchAttestationDataServer) error
- func (p *AttestorPlugin) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttestorConfig ¶
type AttestorConfig struct {
// Cluster name where the agent lives
Cluster string `hcl:"cluster"`
// File path of PSAT
TokenPath string `hcl:"token_path"`
}
AttestorConfig holds configuration for AttestorPlugin
type AttestorPlugin ¶
type AttestorPlugin struct {
// contains filtered or unexported fields
}
AttestorPlugin is a PSAT (projected SAT) attestor plugin
func (*AttestorPlugin) Configure ¶
func (p *AttestorPlugin) Configure(ctx context.Context, req *spi.ConfigureRequest) (resp *spi.ConfigureResponse, err error)
Configure decodes JSON config from request and populates AttestorPlugin with it
func (*AttestorPlugin) FetchAttestationData ¶
func (p *AttestorPlugin) FetchAttestationData(stream nodeattestor.NodeAttestor_FetchAttestationDataServer) error
FetchAttestationData loads PSAT from the configured path and send it to server node attestor
func (*AttestorPlugin) GetPluginInfo ¶
func (p *AttestorPlugin) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.