frontend
No long description provided.
Installation
dagger install github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343bEntrypoint
Return Type
Frontend !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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()
}unitTest() 🔗
Test the frontend
Return Type
String ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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()
}build() 🔗
Build the frontend hugo static site
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| env | String | - | +default "dev" |
Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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()
}lint() 🔗
Lint the frontend Go code
Return Type
String ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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()
}serve() 🔗
Get a service to run the frontend webservice
Return Type
Service ! Example
dagger -m github.com/kpenfound/greetings-api/.dagger/frontend@9ac84fa3a9c1f6ef4f7ebc7e0eed3c5ddb13343b 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()
}