checksum
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/checksum@20e8626c9f25d570e6321765d496643736d76ee5
Entrypoint
Return Type
Checksum
Example
func (m *myModule) example() *Checksum {
return dag.
Checksum()
}
@function
def example() -> dag.Checksum:
return (
dag.checksum()
)
@func()
example(): Checksum {
return dag
.checksum()
}
Types
Checksum 🔗
Calculate and check the checksum of files.
sha256() 🔗
Calculate the SHA-256 checksum of the given files.
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
files | [ObjectKind ! ] ! | - | No description provided |
Example
Function Checksum.sha256 is not accessible from the checksum module
func (m *myModule) example(files ) {
return dag.
Checksum().
Sha256(files)
}
@function
def example(files: ) -> :
return (
dag.checksum()
.sha256(files)
)
@func()
example(files: ): {
return dag
.checksum()
.sha256(files)
}
checkSha256() 🔗
Check the SHA-256 checksum of the given files.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
checksums | StringKind ! | - | No description provided |
files | [ObjectKind ! ] ! | - | No description provided |
Example
Function Checksum.checkSha256 is not accessible from the checksum module
func (m *myModule) example(checksums , files ) {
return dag.
Checksum().
CheckSha256(checksums, files)
}
@function
def example(checksums: , files: ) -> :
return (
dag.checksum()
.check_sha256(checksums, files)
)
@func()
example(checksums: , files: ): {
return dag
.checksum()
.checkSha256(checksums, files)
}