ci
This module has been generated via dagger init and serves as a reference tobasic 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/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454
Entrypoint
Return Type
Ci
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
func (m *myModule) example() *Ci {
return dag.
Ci()
}
@function
def example() -> dag.Ci:
return (
dag.ci()
)
@func()
example(): Ci {
return dag
.ci()
}
Types
Ci 🔗
dockerDep() 🔗
Return Type
Container !
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
docker-dep
func (m *myModule) example() *Container {
return dag.
Ci().
DockerDep()
}
@function
def example() -> dagger.Container:
return (
dag.ci()
.docker_dep()
)
@func()
example(): Container {
return dag
.ci()
.dockerDep()
}
withDockerDeps() 🔗
Return Type
Ci !
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
with-docker-deps
func (m *myModule) example() *Ci {
return dag.
Ci().
WithDockerDeps()
}
@function
def example() -> dag.Ci:
return (
dag.ci()
.with_docker_deps()
)
@func()
example(): Ci {
return dag
.ci()
.withDockerDeps()
}
buildDocker() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
build-docker --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container {
return dag.
Ci().
BuildDocker(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.ci()
.build_docker(dir)
)
@func()
example(dir: Directory): Container {
return dag
.ci()
.buildDocker(dir)
}
ciao() 🔗
Return Type
String !
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
ciao
func (m *myModule) example(ctx context.Context) string {
return dag.
Ci().
Ciao(ctx)
}
@function
async def example() -> str:
return await (
dag.ci()
.ciao()
)
@func()
async example(): Promise<string> {
return dag
.ci()
.ciao()
}
echo() 🔗
Echo returns a string
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
msg | String ! | - | No description provided |
Example
dagger -m github.com/llorenzinho/dagger-package-repository@59646c0bdc5ecdf687227641907a114537681454 call \
echo --msg string
func (m *myModule) example(ctx context.Context, msg string) string {
return dag.
Ci().
Echo(ctx, msg)
}
@function
async def example(msg: str) -> str:
return await (
dag.ci()
.echo(msg)
)
@func()
async example(msg: string): Promise<string> {
return dag
.ci()
.echo(msg)
}