bats
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62Entrypoint
Return Type
Bats Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
func (m *MyModule) Example() *dagger.Bats {
return dag.
Bats()
}@function
def example() -> dagger.Bats:
return (
dag.bats()
)@func()
example(): Bats {
return dag
.bats()
}Types
Bats 🔗
fromVersion() 🔗
Specify which version (image tag) of Bats to use from the official image repository on Docker Hub.
Return Type
Base !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | StringKind ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
from-versionfunc (m *MyModule) Example(version ) {
return dag.
Bats().
FromVersion(version)
}@function
def example(version: ) -> :
return (
dag.bats()
.from_version(version)
)@func()
example(version: ): {
return dag
.bats()
.fromVersion(version)
}fromImage() 🔗
Specify a custom image reference in “repository:tag” format.
Return Type
Base !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | StringKind ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
from-imagefunc (m *MyModule) Example(image ) {
return dag.
Bats().
FromImage(image)
}@function
def example(image: ) -> :
return (
dag.bats()
.from_image(image)
)@func()
example(image: ): {
return dag
.bats()
.fromImage(image)
}fromContainer() 🔗
Specify a custom container.
Return Type
Base !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
from-containerfunc (m *MyModule) Example(ctr ) {
return dag.
Bats().
FromContainer(ctr)
}@function
def example(ctr: ) -> :
return (
dag.bats()
.from_container(ctr)
)@func()
example(ctr: ): {
return dag
.bats()
.fromContainer(ctr)
}withSource() 🔗
Mount a source directory.
Return Type
BaseWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
with-sourcefunc (m *MyModule) Example(src ) {
return dag.
Bats().
WithSource(src)
}@function
def example(src: ) -> :
return (
dag.bats()
.with_source(src)
)@func()
example(src: ): {
return dag
.bats()
.withSource(src)
}run() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided |
| version | StringKind | - | No description provided |
| image | StringKind | - | No description provided |
| container | Container | - | No description provided |
| source | Directory | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
runfunc (m *MyModule) Example(args ) {
return dag.
Bats().
Run(args)
}@function
def example(args: ) -> :
return (
dag.bats()
.run(args)
)@func()
example(args: ): {
return dag
.bats()
.run(args)
}container() 🔗
Return the default container.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62 call \
containerfunc (m *MyModule) Example() {
return dag.
Bats().
Container()
}@function
def example() -> :
return (
dag.bats()
.container()
)@func()
example(): {
return dag
.bats()
.container()
}Base 🔗
ctr() 🔗
Return Type
Container ! Example
Function BatsBase.Ctr is not accessible from the bats moduleFunction BatsBase.Ctr is not accessible from the bats moduleFunction BatsBase.Ctr is not accessible from the bats moduleFunction BatsBase.Ctr is not accessible from the bats modulecontainer() 🔗
Return the default container.
Return Type
Container ! Example
Function BatsBase.container is not accessible from the bats moduleFunction BatsBase.container is not accessible from the bats moduleFunction BatsBase.container is not accessible from the bats moduleFunction BatsBase.container is not accessible from the bats modulewithSource() 🔗
Mount a source directory.
Return Type
BaseWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
Function BatsBase.withSource is not accessible from the bats moduleFunction BatsBase.withSource is not accessible from the bats moduleFunction BatsBase.withSource is not accessible from the bats moduleFunction BatsBase.withSource is not accessible from the bats modulerun() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided |
| source | Directory | - | No description provided |
Example
Function BatsBase.run is not accessible from the bats moduleFunction BatsBase.run is not accessible from the bats moduleFunction BatsBase.run is not accessible from the bats moduleFunction BatsBase.run is not accessible from the bats moduleBaseWithSource 🔗
base() 🔗
Return Type
Base ! Example
Function BatsBaseWithSource.Base is not accessible from the bats moduleFunction BatsBaseWithSource.Base is not accessible from the bats moduleFunction BatsBaseWithSource.Base is not accessible from the bats moduleFunction BatsBaseWithSource.Base is not accessible from the bats modulecontainer() 🔗
Return the default container.
Return Type
Container ! Example
Function BatsBaseWithSource.container is not accessible from the bats moduleFunction BatsBaseWithSource.container is not accessible from the bats moduleFunction BatsBaseWithSource.container is not accessible from the bats moduleFunction BatsBaseWithSource.container is not accessible from the bats modulewithSource() 🔗
Mount a source directory.
Return Type
BaseWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
Function BatsBaseWithSource.withSource is not accessible from the bats moduleFunction BatsBaseWithSource.withSource is not accessible from the bats moduleFunction BatsBaseWithSource.withSource is not accessible from the bats moduleFunction BatsBaseWithSource.withSource is not accessible from the bats modulerun() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided |
Example
Function BatsBaseWithSource.run is not accessible from the bats moduleFunction BatsBaseWithSource.run is not accessible from the bats moduleFunction BatsBaseWithSource.run is not accessible from the bats moduleFunction BatsBaseWithSource.run is not accessible from the bats module