checksum
No long description provided.
Installation
dagger install github.com/jumppad-labs/daggerverse/checksum@49dff54b421df9844fec87766e3710138bc98914
Entrypoint
Return Type
Checksum
Example
dagger -m github.com/jumppad-labs/daggerverse/checksum@49dff54b421df9844fec87766e3710138bc98914 call \
func (m *myModule) example() *Checksum {
return dag.
Checksum()
}
@function
def example() -> dag.Checksum:
return (
dag.checksum()
)
@func()
example(): Checksum {
return dag
.checksum()
}
Types
Checksum 🔗
calculateFromUrl() 🔗
CalculateChecksum will calculate the checksum of a given URL
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
url | String ! | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/checksum@49dff54b421df9844fec87766e3710138bc98914 call \
calculate-from-url --url string
func (m *myModule) example(ctx context.Context, url string) string {
return dag.
Checksum().
CalculateFromUrl(ctx, url)
}
@function
async def example(url: str) -> str:
return await (
dag.checksum()
.calculate_from_url(url)
)
@func()
async example(url: string): Promise<string> {
return dag
.checksum()
.calculateFromUrl(url)
}
calculateFromFile() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
file | File ! | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/checksum@49dff54b421df9844fec87766e3710138bc98914 call \
calculate-from-file --file file:path
func (m *myModule) example(ctx context.Context, file *File) string {
return dag.
Checksum().
CalculateFromFile(ctx, file)
}
@function
async def example(file: dagger.File) -> str:
return await (
dag.checksum()
.calculate_from_file(file)
)
@func()
async example(file: File): Promise<string> {
return dag
.checksum()
.calculateFromFile(file)
}