result
No long description provided.
Installation
dagger install github.com/salaboy/example-voting-app/go/result@4254b79386eb8bdb8ed34d618d025763274fa96e
Entrypoint
Return Type
Result
Example
dagger -m github.com/salaboy/example-voting-app/go/result@4254b79386eb8bdb8ed34d618d025763274fa96e call \
func (m *myModule) example() *Result {
return dag.
Result()
}
@function
def example() -> dag.Result:
return (
dag.result()
)
@func()
example(): Result {
return dag
.result()
}
Types
Result 🔗
serve() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
componentsPath | Directory | - | No description provided |
postgresSvc | Service | - | No description provided |
Example
dagger -m github.com/salaboy/example-voting-app/go/result@4254b79386eb8bdb8ed34d618d025763274fa96e call \
serve --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Service {
return dag.
Result().
Serve(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Service:
return (
dag.result()
.serve(dir)
)
@func()
example(dir: Directory): Service {
return dag
.result()
.serve(dir)
}
build() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
componentsPath | Directory | - | No description provided |
postgresSvc | Service | - | No description provided |
Example
dagger -m github.com/salaboy/example-voting-app/go/result@4254b79386eb8bdb8ed34d618d025763274fa96e call \
build --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container {
return dag.
Result().
Build(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.result()
.build(dir)
)
@func()
example(dir: Directory): Container {
return dag
.result()
.build(dir)
}
test() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
dagger -m github.com/salaboy/example-voting-app/go/result@4254b79386eb8bdb8ed34d618d025763274fa96e call \
test --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string {
return dag.
Result().
Test(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.result()
.test(dir)
)
@func()
async example(dir: Directory): Promise<string> {
return dag
.result()
.test(dir)
}