dep
No long description provided.
Installation
dagger install github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25eEntrypoint
Return Type
Dep Example
dagger -m github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25e call \
func (m *MyModule) Example() *dagger.Dep {
return dag.
Dep()
}@function
def example() -> dagger.Dep:
return (
dag.dep()
)@func()
example(): Dep {
return dag
.dep()
}Types
Dep 🔗
getFiles() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25e call \
get-filesfunc (m *MyModule) Example() []*dagger.File {
return dag.
Dep().
GetFiles()
}@function
def example() -> List[dagger.File]:
return (
dag.dep()
.get_files()
)@func()
example(): File[] {
return dag
.dep()
.getFiles()
}fileContents() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| files | [File ! ] ! | - | No description provided |
Example
dagger -m github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25e call \
file-contentsfunc (m *MyModule) Example(ctx context.Context, files []*dagger.File) string {
return dag.
Dep().
FileContents(ctx, files)
}@function
async def example(files: List[dagger.File]) -> str:
return await (
dag.dep()
.file_contents(files)
)@func()
async example(files: File[]): Promise<string> {
return dag
.dep()
.fileContents(files)
}failingFunction() 🔗
FailingFunction returns a simple error to test error origin stamping
Return Type
Void ! Example
dagger -m github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25e call \
failing-functionfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dep().
FailingFunction(ctx)
}@function
async def example() -> None:
return await (
dag.dep()
.failing_function()
)@func()
async example(): Promise<void> {
return dag
.dep()
.failingFunction()
}bubblingFunction() 🔗
FailingFunction returns a simple error to test error origin stamping
Return Type
Void ! Example
dagger -m github.com/dagger/dagger/dagql/idtui/viztest/dep@3e92868ab5993b07bd996e5c0abe2d143da3f25e call \
bubbling-functionfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dep().
BubblingFunction(ctx)
}@function
async def example() -> None:
return await (
dag.dep()
.bubbling_function()
)@func()
async example(): Promise<void> {
return dag
.dep()
.bubblingFunction()
}