goblog
No long description provided.
Installation
dagger install github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307edEntrypoint
Return Type
Goblog Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
func (m *MyModule) Example() *dagger.Goblog {
return dag.
Goblog()
}@function
def example() -> dagger.Goblog:
return (
dag.goblog()
)@func()
example(): Goblog {
return dag
.goblog()
}Types
Goblog 🔗
runUnitTests() 🔗
Run unit tests on the Project
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | Point to the host directory where the project is located |
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
run-unit-tests --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory) string {
return dag.
Goblog().
RunUnitTests(ctx, dir)
}@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.goblog()
.run_unit_tests(dir)
)@func()
async example(dir: Directory): Promise<string> {
return dag
.goblog()
.runUnitTests(dir)
}lint() 🔗
Lint the Project
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | Point to the host directory where the project is located |
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
lint --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory) string {
return dag.
Goblog().
Lint(ctx, dir)
}@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.goblog()
.lint(dir)
)@func()
async example(dir: Directory): Promise<string> {
return dag
.goblog()
.lint(dir)
}serve() 🔗
Serve the blog on port 8080
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Point to the host directory where the project is located |
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
serve --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Service {
return dag.
Goblog().
Serve(source)
}@function
def example(source: dagger.Directory) -> dagger.Service:
return (
dag.goblog()
.serve(source)
)@func()
example(source: Directory): Service {
return dag
.goblog()
.serve(source)
}deploy() 🔗
Deploy the blog to fly.io
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Point to the host directory where the project is located |
| flyToken | Secret ! | - | No description provided |
| registryUser | String ! | - | No description provided |
| registryPass | Secret ! | - | No description provided |
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
deploy --source DIR_PATH --fly-token env:MYSECRET --registry-user string --registry-pass env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, flyToken *dagger.Secret, registryUser string, registryPass *dagger.Secret) string {
return dag.
Goblog().
Deploy(ctx, source, flyToken, registryUser, registryPass)
}@function
async def example(source: dagger.Directory, fly_token: dagger.Secret, registry_user: str, registry_pass: dagger.Secret) -> str:
return await (
dag.goblog()
.deploy(source, fly_token, registry_user, registry_pass)
)@func()
async example(source: Directory, flyToken: Secret, registryUser: string, registryPass: Secret): Promise<string> {
return dag
.goblog()
.deploy(source, flyToken, registryUser, registryPass)
}runAll() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Point to the host directory where the project is located |
| infisicalClientId | Secret ! | - | Infisical Auth Client ID |
| infisicalClientSecret | Secret ! | - | Infisical Auth Client Secret |
| infisicalProject | String ! | - | Infisical Project to fetch secrets |
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed call \
run-all --source DIR_PATH --infisical-client-id env:MYSECRET --infisical-client-secret env:MYSECRET --infisical-project stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, infisicalClientId *dagger.Secret, infisicalClientSecret *dagger.Secret, infisicalProject string) string {
return dag.
Goblog().
RunAll(ctx, source, infisicalClientId, infisicalClientSecret, infisicalProject)
}@function
async def example(source: dagger.Directory, infisical_client_id: dagger.Secret, infisical_client_secret: dagger.Secret, infisical_project: str) -> str:
return await (
dag.goblog()
.run_all(source, infisical_client_id, infisical_client_secret, infisical_project)
)@func()
async example(source: Directory, infisicalClientId: Secret, infisicalClientSecret: Secret, infisicalProject: string): Promise<string> {
return dag
.goblog()
.runAll(source, infisicalClientId, infisicalClientSecret, infisicalProject)
}