verified-download
No long description provided.
Installation
dagger install github.com/araihu/dagger/modules/verified-download@34872ce032c8b8a543e77dedbf5c09978f65d06dEntrypoint
Return Type
VerifiedDownload Example
dagger -m github.com/araihu/dagger/modules/verified-download@34872ce032c8b8a543e77dedbf5c09978f65d06d call \
func (m *MyModule) Example() *dagger.VerifiedDownload {
return dag.
Verifieddownload()
}@function
def example() -> dagger.VerifiedDownload:
return (
dag.verified_download()
)@func()
example(): VerifiedDownload {
return dag
.verifiedDownload()
}Types
VerifiedDownload 🔗
VerifiedDownload fetches immutable HTTPS content with an expected SHA-256 digest.
fetch() 🔗
Fetch returns a file only when Dagger verifies the expected SHA-256 digest.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| url | String ! | - | No description provided |
| sha256 | String ! | - | No description provided |
| name | String | - | No description provided |
Example
dagger -m github.com/araihu/dagger/modules/verified-download@34872ce032c8b8a543e77dedbf5c09978f65d06d call \
fetch --url string --sha-2-5-6 stringfunc (m *MyModule) Example(url string, sha256 string) *dagger.File {
return dag.
Verifieddownload().
Fetch(url, sha256)
}@function
def example(url: str, sha256: str) -> dagger.File:
return (
dag.verified_download()
.fetch(url, sha256)
)@func()
example(url: string, sha256: string): File {
return dag
.verifiedDownload()
.fetch(url, sha256)
}