dagger-shared-module-functions
No long description provided.
Installation
dagger install gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@233288748d9ca4c75e544620d7e874a2be03692b
Entrypoint
Return Type
DaggerSharedModuleFunctions !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@233288748d9ca4c75e544620d7e874a2be03692b call \
func (m *myModule) example() *DaggerSharedModuleFunctions {
return dag.
DaggerSharedModuleFunctions()
}
@function
def example() -> dag.DaggerSharedModuleFunctions:
return (
dag.dagger_shared_module_functions()
)
@func()
example(): DaggerSharedModuleFunctions {
return dag
.daggerSharedModuleFunctions()
}
Types
DaggerSharedModuleFunctions 🔗
myFunction() 🔗
My test Function
Return Type
Void !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@233288748d9ca4c75e544620d7e874a2be03692b call \
my-function
func (m *myModule) example(ctx context.Context) {
return dag.
DaggerSharedModuleFunctions().
MyFunction(ctx)
}
@function
async def example() -> None:
return await (
dag.dagger_shared_module_functions()
.my_function()
)
@func()
async example(): Promise<void> {
return dag
.daggerSharedModuleFunctions()
.myFunction()
}
containerEcho() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@233288748d9ca4c75e544620d7e874a2be03692b call \
container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container {
return dag.
DaggerSharedModuleFunctions().
ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
return (
dag.dagger_shared_module_functions()
.container_echo(string_arg)
)
@func()
example(stringArg: string): Container {
return dag
.daggerSharedModuleFunctions()
.containerEcho(stringArg)
}
grepDir() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | A directory. |
pattern | String ! | - | No description provided |
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@233288748d9ca4c75e544620d7e874a2be03692b call \
grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string {
return dag.
DaggerSharedModuleFunctions().
GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
return await (
dag.dagger_shared_module_functions()
.grep_dir(directory_arg, pattern)
)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
return dag
.daggerSharedModuleFunctions()
.grepDir(directoryArg, pattern)
}