goblog
No long description provided.
Installation
dagger install github.com/NunoFrRibeiro/personal-blog@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a
Entrypoint
Return Type
Goblog
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
func (m *myModule) example() *Goblog {
return dag.
Goblog()
}
@function
def example() -> dag.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@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
run-unit-tests --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *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@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
lint --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *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@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
serve --source DIR_PATH
func (m *myModule) example(source *Directory) *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@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
deploy --source DIR_PATH --fly-token env:MYSECRET --registry-user string --registry-pass env:MYSECRET
func (m *myModule) example(ctx context.Context, source *Directory, flyToken *Secret, registryUser string, registryPass *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@0743dda778b3cbcdfe5f36212a00bfb76c8c0b6a call \
run-all --source DIR_PATH --infisical-client-id env:MYSECRET --infisical-client-secret env:MYSECRET --infisical-project string
func (m *myModule) example(ctx context.Context, source *Directory, infisicalClientId *Secret, infisicalClientSecret *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)
}