MCPcopy Create free account
hub / github.com/conforma/cli / NewServiceWithFS

Function NewServiceWithFS

internal/validate/vsa/service.go:46–54  ·  view source on GitHub ↗

NewServiceWithFS creates a new VSA service with the given signer and filesystem

(signer *Signer, fs afero.Fs, policySource string, policy PublicKeyProvider, outputDir string)

Source from the content-addressed store, hash-verified

44
45// NewServiceWithFS creates a new VSA service with the given signer and filesystem
46func NewServiceWithFS(signer *Signer, fs afero.Fs, policySource string, policy PublicKeyProvider, outputDir string) *Service {
47 return &Service{
48 signer: signer,
49 fs: fs,
50 policySource: policySource,
51 policy: policy,
52 outputDir: outputDir,
53 }
54}
55
56// ProcessComponentVSA processes VSA generation, writing, and attestation for a single component
57func (s *Service) ProcessComponentVSA(ctx context.Context, report applicationsnapshot.Report, comp applicationsnapshot.Component, gitURL, digest string) (string, error) {

Calls

no outgoing calls