Dagger
Search

dagger-shared-module-functions

No long description provided.

Installation

dagger install gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@010442f5b29678843d90618fe0e3513b8fc87d08

Entrypoint

Return Type
DaggerSharedModuleFunctions !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@010442f5b29678843d90618fe0e3513b8fc87d08 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
String !
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@010442f5b29678843d90618fe0e3513b8fc87d08 call \
 my-function
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			DaggerSharedModuleFunctions().
			MyFunction(ctx)
}
@function
async def example() -> str:
	return await (
		dag.dagger_shared_module_functions()
		.my_function()
	)
@func()
async example(): Promise<string> {
	return dag
		.daggerSharedModuleFunctions()
		.myFunction()
}

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@010442f5b29678843d90618fe0e3513b8fc87d08 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
NameTypeDefault ValueDescription
directoryArgDirectory !-A directory.
patternString !-No description provided
Example
dagger -m gitlab.com/brightlight-techhub/dagger/dagger-shared-module-functions.git@010442f5b29678843d90618fe0e3513b8fc87d08 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)
}