Dagger
Search

wasmer

A module for building and deploying applications to Wasmer Edge.

Installation

dagger install github.com/fluent-ci-templates/wasmer-pipeline@v0.3.2

Entrypoint

Return Type
Wasmer
Example
dagger -m github.com/fluent-ci-templates/wasmer-pipeline@4a8457f3089148bbe2daf358ecaf87bff170a94f call \
func (m *myModule) example() *Wasmer  {
	return dag.
			Wasmer()
}
@function
def example() -> dag.Wasmer:
	return (
		dag.wasmer()
	)
@func()
example(): Wasmer {
	return dag
		.wasmer()
}

Types

Wasmer 🔗

build() 🔗

Build the project (wasix)

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/fluent-ci-templates/wasmer-pipeline@4a8457f3089148bbe2daf358ecaf87bff170a94f call \
 build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory  {
	return dag.
			Wasmer().
			Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.wasmer()
		.build(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.wasmer()
		.build(src)
}

deploy() 🔗

Deploy to Wasmer Edge

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
tokenSecret !-No description provided
cacheBoolean falseNo description provided
Example
dagger -m github.com/fluent-ci-templates/wasmer-pipeline@4a8457f3089148bbe2daf358ecaf87bff170a94f call \
 deploy --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string  {
	return dag.
			Wasmer().
			Deploy(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.wasmer()
		.deploy(src, token)
	)
@func()
async example(src: Directory, token: Secret): Promise<string> {
	return dag
		.wasmer()
		.deploy(src, token)
}