Dagger
Search

daggerverse

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99

Entrypoint

Return Type
Daggerverse !
Example
func (m *myModule) example() *Daggerverse  {
	return dag.
			Daggerverse()
}
@function
def example() -> dag.Daggerverse:
	return (
		dag.daggerverse()
	)
@func()
example(): Daggerverse {
	return dag
		.daggerverse()
}

Types

Daggerverse 🔗

pythonContainer() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 python-container --src DIR_PATH
func (m *myModule) example(src *Directory) *Container  {
	return dag.
			Daggerverse().
			PythonContainer(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
	return (
		dag.daggerverse()
		.python_container(src)
	)
@func()
example(src: Directory): Container {
	return dag
		.daggerverse()
		.pythonContainer(src)
}

pythonTestContainer() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 python-test-container --src DIR_PATH
func (m *myModule) example(src *Directory) *Container  {
	return dag.
			Daggerverse().
			PythonTestContainer(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
	return (
		dag.daggerverse()
		.python_test_container(src)
	)
@func()
example(src: Directory): Container {
	return dag
		.daggerverse()
		.pythonTestContainer(src)
}

pythonProdContainer() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 python-prod-container --src DIR_PATH
func (m *myModule) example(src *Directory) *Container  {
	return dag.
			Daggerverse().
			PythonProdContainer(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
	return (
		dag.daggerverse()
		.python_prod_container(src)
	)
@func()
example(src: Directory): Container {
	return dag
		.daggerverse()
		.pythonProdContainer(src)
}

mypy() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 mypy --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Daggerverse().
			Mypy(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.daggerverse()
		.mypy(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.daggerverse()
		.mypy(src)
}

pytest() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 pytest --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Daggerverse().
			Pytest(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.daggerverse()
		.pytest(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.daggerverse()
		.pytest(src)
}

pythonTest() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 python-test --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Daggerverse().
			PythonTest(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.daggerverse()
		.python_test(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.daggerverse()
		.pythonTest(src)
}

pythonRelease() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-A directory.
twineUsernameSecret !-A reference to a secret value, which can be handled more safely than the value itself.
twinePasswordSecret !-A reference to a secret value, which can be handled more safely than the value itself.
Example
dagger -m github.com/maxberger/daggerverse@38b4a6e07760ddd8ec0e8fa2a2e12d8d3b225d99 call \
 python-release --src DIR_PATH --twine-username env:MYSECRET --twine-password env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, twineUsername *Secret, twinePassword *Secret) string  {
	return dag.
			Daggerverse().
			PythonRelease(ctx, src, twineUsername, twinePassword)
}
@function
async def example(src: dagger.Directory, twine_username: dagger.Secret, twine_password: dagger.Secret) -> str:
	return await (
		dag.daggerverse()
		.python_release(src, twine_username, twine_password)
	)
@func()
async example(src: Directory, twineUsername: Secret, twinePassword: Secret): Promise<string> {
	return dag
		.daggerverse()
		.pythonRelease(src, twineUsername, twinePassword)
}