NewServiceWithFS creates a new VSA service with the given signer and filesystem
(signer *Signer, fs afero.Fs, policySource string, policy PublicKeyProvider, outputDir string)
| 44 | |
| 45 | // NewServiceWithFS creates a new VSA service with the given signer and filesystem |
| 46 | func 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 |
| 57 | func (s *Service) ProcessComponentVSA(ctx context.Context, report applicationsnapshot.Report, comp applicationsnapshot.Component, gitURL, digest string) (string, error) { |
no outgoing calls