Dagger
Search

bats

No long description provided.

Installation

dagger install github.com/sagikazarmark/daggerverse/bats@d5da86877cae930fa6a6e2e6377cea565e5e0c62

Entrypoint

Return Type
Bats
Example
func (m *myModule) example() *Bats  {
	return dag.
			Bats()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
versionStringKind !-No description provided
Example
Function Bats.fromVersion is not accessible from the bats module
func (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
NameTypeDefault ValueDescription
imageStringKind !-No description provided
Example
Function Bats.fromImage is not accessible from the bats module
func (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
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
Function Bats.fromContainer is not accessible from the bats module
func (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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function Bats.withSource is not accessible from the bats module
func (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
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
versionStringKind -No description provided
imageStringKind -No description provided
containerContainer -No description provided
sourceDirectory -No description provided
Example
Function Bats.run is not accessible from the bats module
func (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
Function Bats.container is not accessible from the bats module
func (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 module
Function BatsBase.Ctr is not accessible from the bats module
Function BatsBase.Ctr is not accessible from the bats module
Function BatsBase.Ctr is not accessible from the bats module

container() 🔗

Return the default container.

Return Type
Container !
Example
Function BatsBase.container is not accessible from the bats module
Function BatsBase.container is not accessible from the bats module
Function BatsBase.container is not accessible from the bats module
Function BatsBase.container is not accessible from the bats module

withSource() 🔗

Mount a source directory.

Return Type
BaseWithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function BatsBase.withSource is not accessible from the bats module
Function BatsBase.withSource is not accessible from the bats module
Function BatsBase.withSource is not accessible from the bats module
Function BatsBase.withSource is not accessible from the bats module

run() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
sourceDirectory -No description provided
Example
Function BatsBase.run is not accessible from the bats module
Function BatsBase.run is not accessible from the bats module
Function BatsBase.run is not accessible from the bats module
Function BatsBase.run is not accessible from the bats module

BaseWithSource 🔗

base() 🔗

Return Type
Base !
Example
Function BatsBaseWithSource.Base is not accessible from the bats module
Function BatsBaseWithSource.Base is not accessible from the bats module
Function BatsBaseWithSource.Base is not accessible from the bats module
Function BatsBaseWithSource.Base is not accessible from the bats module

container() 🔗

Return the default container.

Return Type
Container !
Example
Function BatsBaseWithSource.container is not accessible from the bats module
Function BatsBaseWithSource.container is not accessible from the bats module
Function BatsBaseWithSource.container is not accessible from the bats module
Function BatsBaseWithSource.container is not accessible from the bats module

withSource() 🔗

Mount a source directory.

Return Type
BaseWithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function BatsBaseWithSource.withSource is not accessible from the bats module
Function BatsBaseWithSource.withSource is not accessible from the bats module
Function BatsBaseWithSource.withSource is not accessible from the bats module
Function BatsBaseWithSource.withSource is not accessible from the bats module

run() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
Function BatsBaseWithSource.run is not accessible from the bats module
Function BatsBaseWithSource.run is not accessible from the bats module
Function BatsBaseWithSource.run is not accessible from the bats module
Function BatsBaseWithSource.run is not accessible from the bats module