Dagger
Search

kafka

Kafka service module for Dagger.

Installation

dagger install github.com/sagikazarmark/daggerverse/kafka@v0.1.0

Entrypoint

Return Type
Kafka !
Arguments
NameTypeDescription
versionString Version (image tag) to use from the official image repository as a base container.
imageString Custom image reference in "repository:tag" format to use as a base container.
containerContainer Custom container to use as a base container.
Example
func (m *myModule) example() *Kafka  {
	return dag.
			Kafka()
}
@function
def example() -> dag.Kafka:
	return (
		dag.kafka()
	)
@func()
example(): Kafka {
	return dag
		.kafka()
}

Types

Kafka 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/sagikazarmark/daggerverse/kafka@24c022dde505b24970824dd50f51e719098cfeb3 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Kafka().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.kafka()
		.container()
	)
@func()
example(): Container {
	return dag
		.kafka()
		.container()
}

withEnvVariable() 🔗

Set an environment variable.

Return Type
Kafka !
Arguments
NameTypeDefault ValueDescription
nameString !-The name of the environment variable (e.g., "HOST").
valueString !-The value of the environment variable (e.g., "localhost").
expandBoolean -Replace `${VAR}` or $VAR in the value according to the current environment variables defined in the container (e.g., "/opt/bin:$PATH").
Example
dagger -m github.com/sagikazarmark/daggerverse/kafka@24c022dde505b24970824dd50f51e719098cfeb3 call \
 with-env-variable --name string --value string \
 container
func (m *myModule) example(name string, value string) *Kafka  {
	return dag.
			Kafka().
			WithEnvVariable(name, value)
}
@function
def example(name: str, value: str) -> dag.Kafka:
	return (
		dag.kafka()
		.with_env_variable(name, value)
	)
@func()
example(name: string, value: string): Kafka {
	return dag
		.kafka()
		.withEnvVariable(name, value)
}

service() 🔗

Launch a Kafka service.

Return Type
Service !
Example
dagger -m github.com/sagikazarmark/daggerverse/kafka@24c022dde505b24970824dd50f51e719098cfeb3 call \
 service
func (m *myModule) example() *Service  {
	return dag.
			Kafka().
			Service()
}
@function
def example() -> dagger.Service:
	return (
		dag.kafka()
		.service()
	)
@func()
example(): Service {
	return dag
		.kafka()
		.service()
}