utils
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/Dudesons/daggerverse/utils@41e1f414c163b6676acd03c184d37e3ec8a64b2b
Entrypoint
Return Type
Utils
Example
dagger -m github.com/Dudesons/daggerverse/utils@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
func (m *myModule) example() *Utils {
return dag.
Utils()
}
@function
def example() -> dag.Utils:
return (
dag.utils()
)
@func()
example(): Utils {
return dag
.utils()
}
Types
Utils 🔗
withDotEnvSecret() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
data | Secret ! | - | No description provided |
Example
dagger -m github.com/Dudesons/daggerverse/utils@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
with-dot-env-secret --ctr IMAGE:TAG --data env:MYSECRET
func (m *myModule) example(ctr *Container, data *Secret) *Container {
return dag.
Utils().
WithDotEnvSecret(ctr, data)
}
@function
def example(ctr: dagger.Container, data: dagger.Secret) -> dagger.Container:
return (
dag.utils()
.with_dot_env_secret(ctr, data)
)
@func()
example(ctr: Container, data: Secret): Container {
return dag
.utils()
.withDotEnvSecret(ctr, data)
}