xk6
Build k6 with extensions.
Installation
dagger install github.com/jedevc/daggerverse-sagikazarmark/xk6@a104424df38ca8b0b758f699dcfeeb0c2210cc2e
Entrypoint
Return Type
Xk6 !
Arguments
Name | Type | Description |
---|---|---|
version | String | Version (image tag) to use from the official image repository as a base container. |
image | String | Custom image reference in "repository:tag" format to use as a base container. |
container | Container | Custom container to use as a base container. |
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/xk6@a104424df38ca8b0b758f699dcfeeb0c2210cc2e 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 🔗
container() 🔗
Return Type
Container !
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/xk6@a104424df38ca8b0b758f699dcfeeb0c2210cc2e call \
container
func (m *myModule) example() *Container {
return dag.
Xk6().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.xk6()
.container()
)
@func()
example(): Container {
return dag
.xk6()
.container()
}
withPlatform() 🔗
Set GOOS, GOARCH and GOARM environment variables.
Return Type
Xk6 !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar ! | - | Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64"). |
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/xk6@a104424df38ca8b0b758f699dcfeeb0c2210cc2e call \
with-platform
func (m *myModule) example(platform ) *Xk6 {
return dag.
Xk6().
WithPlatform(platform)
}
@function
def example(platform: ) -> dag.Xk6:
return (
dag.xk6()
.with_platform(platform)
)
@func()
example(platform: ): Xk6 {
return dag
.xk6()
.withPlatform(platform)
}
build() 🔗
Build a custom k6 binary.
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | - | k6 version to build (default: "latest") |
with | [String ! ] | - | Extension to add to the k6 binary (format: <module[@version][=replacement]>) |
replace | [String ! ] | - | Add replacements to the go.mod file generated (format: <module=replacement>) |
platform | Scalar | - | Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64"). |
Example
dagger -m github.com/jedevc/daggerverse-sagikazarmark/xk6@a104424df38ca8b0b758f699dcfeeb0c2210cc2e call \
build
func (m *myModule) example() *File {
return dag.
Xk6().
Build()
}
@function
def example() -> dagger.File:
return (
dag.xk6()
.build()
)
@func()
example(): File {
return dag
.xk6()
.build()
}