Dagger
Search

e2e

No long description provided.

Installation

dagger install github.com/dagger/go-sdk/.dagger/modules/e2e@6ab5f56e546e726cc5083cae2c80062746447fde

Entrypoint

Return Type
E2E !
Example
dagger -m github.com/dagger/go-sdk/.dagger/modules/e2e@6ab5f56e546e726cc5083cae2c80062746447fde call \
func (m *MyModule) Example() *dagger.E2E  {
	return dag.
			E2e()
}
@function
def example() -> dagger.E2E:
	return (
		dag.e2e()
	)
@func()
example(): E2E {
	return dag
		.e2e()
}

Types

E2E 🔗

End-to-end checks for the Go SDK helper module.

skipGenerateFilenameCheck() 🔗

The helper should expose the generate skip marker used by callers.

Return Type
Void !
Example
dagger -m github.com/dagger/go-sdk/.dagger/modules/e2e@6ab5f56e546e726cc5083cae2c80062746447fde call \
 skip-generate-filename-check
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			SkipGenerateFilenameCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.skip_generate_filename_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.skipGenerateFilenameCheck()
}

moduleLookupCheck() 🔗

Mod lookup should find the owning Go SDK module when called from a nested path.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			ModuleLookupCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.module_lookup_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.moduleLookupCheck()
}

targetRuntimeCheck() 🔗

The SDK should report the builtin runtime it targets.

Return Type
Void !
Example
dagger -m github.com/dagger/go-sdk/.dagger/modules/e2e@6ab5f56e546e726cc5083cae2c80062746447fde call \
 target-runtime-check
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			TargetRuntimeCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.target_runtime_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.targetRuntimeCheck()
}

initCheck() 🔗

initModule should produce only the SDK-owned seed files. The engine owns the module’s dagger.json, so it must not appear in the changeset.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			InitCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.init_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.initCheck()
}

initClientCheck() 🔗

initClient should not materialize files itself. The engine records the client and owns the generated context changeset.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			InitClientCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.init_client_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.initClientCheck()
}

generateCheck() 🔗

Generating an existing module should produce generated files rooted at that module without touching unrelated paths.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			GenerateCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.generate_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.generateCheck()
}

generateAllCheck() 🔗

Generating all modules should discover Go SDK modules and ignore skipped ones.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			GenerateAllCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.generate_all_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.generateAllCheck()
}

skipGenerateCheck() 🔗

A skip marker above a module should make generate return an empty changeset.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
wsWorkspace -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			E2e().
			SkipGenerateCheck(ctx)
}
@function
async def example() -> None:
	return await (
		dag.e2e()
		.skip_generate_check()
	)
@func()
async example(): Promise<void> {
	return dag
		.e2e()
		.skipGenerateCheck()
}