Dagger
Search

xk6

No long description provided.

Installation

dagger install github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992

Entrypoint

Return Type
Xk6
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
func (m *myModule) example() *Xk6  {
	return dag.
			Xk6()
}
@function
def example() -> dag.Xk6:
	return (
		dag.xk6()
	)
@func()
example(): Xk6 {
	return dag
		.xk6()
}

Types

Xk6 🔗

builder() 🔗

Create a builder object to contruct xk6 option. This API suitable for building xk6 programatically.

Return Type
Builder !
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder
func (m *myModule) example() *Xk6Builder  {
	return dag.
			Xk6().
			Builder()
}
@function
def example() -> dag.Xk6Builder:
	return (
		dag.xk6()
		.builder()
	)
@func()
example(): Xk6Builder {
	return dag
		.xk6()
		.builder()
}

build() 🔗

Build k6 binary from a modules based on k6 version.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
with[String ! ] !-No description provided
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 build --version string --with string1 --with string2
func (m *myModule) example(version string, with []string) *File  {
	return dag.
			Xk6().
			Build(version, with)
}
@function
def example(version: str, with_: List[str]) -> dagger.File:
	return (
		dag.xk6()
		.build(version, with_)
	)
@func()
example(version: string, with: string[]): File {
	return dag
		.xk6()
		.build(version, with)
}

fromSource() 🔗

Build xk6 from source.

Return Type
Container !
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 from-source
func (m *myModule) example() *Container  {
	return dag.
			Xk6().
			FromSource()
}
@function
def example() -> dagger.Container:
	return (
		dag.xk6()
		.from_source()
	)
@func()
example(): Container {
	return dag
		.xk6()
		.fromSource()
}

Builder 🔗

version() 🔗

Return Type
String !
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder \
 version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Xk6().
			Builder().
			Version(ctx)
}
@function
async def example() -> str:
	return await (
		dag.xk6()
		.builder()
		.version()
	)
@func()
async example(): Promise<string> {
	return dag
		.xk6()
		.builder()
		.version()
}

modules() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder \
 modules
func (m *myModule) example(ctx context.Context) []string  {
	return dag.
			Xk6().
			Builder().
			Modules(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.xk6()
		.builder()
		.modules()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.xk6()
		.builder()
		.modules()
}

withVersion() 🔗

Return Type
Builder !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder \
 with-version --version string
func (m *myModule) example(version string) *Xk6Builder  {
	return dag.
			Xk6().
			Builder().
			WithVersion(version)
}
@function
def example(version: str) -> dag.Xk6Builder:
	return (
		dag.xk6()
		.builder()
		.with_version(version)
	)
@func()
example(version: string): Xk6Builder {
	return dag
		.xk6()
		.builder()
		.withVersion(version)
}

with() 🔗

Return Type
Builder !
Arguments
NameTypeDefault ValueDescription
moduleString !-No description provided
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder \
 with --module string
func (m *myModule) example(module string) *Xk6Builder  {
	return dag.
			Xk6().
			Builder().
			With(module)
}
@function
def example(module: str) -> dag.Xk6Builder:
	return (
		dag.xk6()
		.builder()
		.with_(module)
	)
@func()
example(module: string): Xk6Builder {
	return dag
		.xk6()
		.builder()
		.with(module)
}

build() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
cContainer !-No description provided
Example
dagger -m github.com/wingyplus/daggerverse/xk6@04bc3bc14a610d51c24a4c4057cae1a1af1b0992 call \
 builder \
 build --c IMAGE:TAG
func (m *myModule) example(c *Container) *Container  {
	return dag.
			Xk6().
			Builder().
			Build(c)
}
@function
def example(c: dagger.Container) -> dagger.Container:
	return (
		dag.xk6()
		.builder()
		.build(c)
	)
@func()
example(c: Container): Container {
	return dag
		.xk6()
		.builder()
		.build(c)
}