frontend
A generated module for Frontend functions
Installation
dagger install github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3Entrypoint
Return Type
Frontend !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Frontend {
return dag.
Frontend(source)
}@function
def example(source: dagger.Directory) -> dagger.Frontend:
return (
dag.frontend(source)
)@func()
example(source: Directory): Frontend {
return dag
.frontend(source)
}Types
Frontend 🔗
source() 🔗
Return Type
Directory ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH sourcefunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
Frontend(source).
Source()
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.frontend(source)
.source()
)@func()
example(source: Directory): Directory {
return dag
.frontend(source)
.source()
}lint() 🔗
Return Type
String ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH lintfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Frontend(source).
Lint(ctx)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.frontend(source)
.lint()
)@func()
async example(source: Directory): Promise<string> {
return dag
.frontend(source)
.lint()
}unitTest() 🔗
Return Type
String ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH unit-testfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Frontend(source).
UnitTest(ctx)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.frontend(source)
.unit_test()
)@func()
async example(source: Directory): Promise<string> {
return dag
.frontend(source)
.unitTest()
}check() 🔗
Return Type
String ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH checkfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Frontend(source).
Check(ctx)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.frontend(source)
.check()
)@func()
async example(source: Directory): Promise<string> {
return dag
.frontend(source)
.check()
}build() 🔗
Return Type
Directory ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH buildfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
Frontend(source).
Build()
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.frontend(source)
.build()
)@func()
example(source: Directory): Directory {
return dag
.frontend(source)
.build()
}serve() 🔗
Return Type
Service ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH servefunc (m *MyModule) Example(source *dagger.Directory) *dagger.Service {
return dag.
Frontend(source).
Serve()
}@function
def example(source: dagger.Directory) -> dagger.Service:
return (
dag.frontend(source)
.serve()
)@func()
example(source: Directory): Service {
return dag
.frontend(source)
.serve()
}checkDirectory() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@97997497b797755cf28acf77824c02af109f38f3 call \
--source DIR_PATH check-directory --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, source1 *dagger.Directory) string {
return dag.
Frontend(source).
CheckDirectory(ctx, source1)
}@function
async def example(source: dagger.Directory, source1: dagger.Directory) -> str:
return await (
dag.frontend(source)
.check_directory(source1)
)@func()
async example(source: Directory, source1: Directory): Promise<string> {
return dag
.frontend(source)
.checkDirectory(source1)
}