Dagger
Search

goblog

No long description provided.

Installation

dagger install github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed

Entrypoint

Return Type
Goblog
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed 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
NameTypeDefault ValueDescription
dirDirectory !-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_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
NameTypeDefault ValueDescription
dirDirectory !-Point to the host directory where the project is located
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed 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
NameTypeDefault ValueDescription
sourceDirectory !-Point to the host directory where the project is located
Example
dagger -m github.com/NunoFrRibeiro/personal-blog@a82e303100505b427e893d6bf2816d37984307ed 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
NameTypeDefault ValueDescription
sourceDirectory !-Point to the host directory where the project is located
flyTokenSecret !-No description provided
registryUserString !-No description provided
registryPassSecret !-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: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
NameTypeDefault ValueDescription
sourceDirectory !-Point to the host directory where the project is located
infisicalClientIdSecret !-Infisical Auth Client ID
infisicalClientSecretSecret !-Infisical Auth Client Secret
infisicalProjectString !-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 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)
}