VerifySourceFile
func VerifySourceFile(ctx context.Context, sourcePath, seedPath string, expected Digest) (VerifyInfo, error)
VerifySourceFile verifies the seed hash before reopening the seed for the complete source pass, so untrusted seed contents are not used unchecked.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | context.Context | Parameter ctx of VerifySourceFile. |
sourcePath | string | Parameter sourcePath of VerifySourceFile. |
seedPath | string | Parameter seedPath of VerifySourceFile. |
expected | Digest | Parameter expected of VerifySourceFile. |
Returns
(VerifyInfo, error)
Source
This page is generated from SDK source metadata and the translation catalog.