Dagger
Search

apache-avro-tools

This module provides a set of functions to work with Apache Avro Tools.

Shorthand avro tools functions provided by this module are:

- idl2schemata: a helper function to Convert an Avro IDL file to Avro schema files in the provided directory
- idl: a helper function to Convert an Avro IDL file to an Avro schema file

For more advanced usage, you can use the avro-tools function to get a container with Apache Avro Tools installed.

- `avro-tools`: Get a container with Apache Avro Tools installed for running other functions

Example:

dagger call --version=1.11.3 avro-tools with-file --path /app/file --source .vro-file.avdl with-exec --args idl,/app/file,/output file --path /output contents

Installation

dagger install github.com/pjmagee/dagger-apache-avro-tools@v0.1.1

Entrypoint

Return Type
ApacheAvroTools !
Arguments
NameTypeDescription
versionString !The version of Apache Avro Tools to use, retrieved from Maven
Example
dagger -m github.com/pjmagee/dagger-apache-avro-tools@b0671eee6f0078e19d5103f095af0fe59b7c4056 call \
 --version string
func (m *myModule) example(version string) *ApacheAvroTools  {
	return dag.
			ApacheAvroTools(version)
}
@function
def example(version: str) -> dag.ApacheAvroTools:
	return (
		dag.apache_avro_tools(version)
	)
@func()
example(version: string): ApacheAvroTools {
	return dag
		.apacheAvroTools(version)
}

Types

ApacheAvroTools 🔗

A module for Apache Avro Tools

idl2Schemata() 🔗

Convert an Avro IDL file to Avro schema files in the provided directory

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
fileFile !-The Avro IDL file to convert to Avro schema files
Example
dagger -m github.com/pjmagee/dagger-apache-avro-tools@b0671eee6f0078e19d5103f095af0fe59b7c4056 call \
 --version string idl-2-schemata --file file:path
func (m *myModule) example(version string, file *File) *Directory  {
	return dag.
			ApacheAvroTools(version).
			Idl2Schemata(file)
}
@function
def example(version: str, file: dagger.File) -> dagger.Directory:
	return (
		dag.apache_avro_tools(version)
		.idl2_schemata(file)
	)
@func()
example(version: string, file: File): Directory {
	return dag
		.apacheAvroTools(version)
		.idl2Schemata(file)
}

idl() 🔗

Convert an Avro IDL file to Avro schema file

Return Type
File !
Arguments
NameTypeDefault ValueDescription
fileFile !-The Avro IDL file to convert
Example
dagger -m github.com/pjmagee/dagger-apache-avro-tools@b0671eee6f0078e19d5103f095af0fe59b7c4056 call \
 --version string idl --file file:path
func (m *myModule) example(version string, file *File) *File  {
	return dag.
			ApacheAvroTools(version).
			Idl(file)
}
@function
def example(version: str, file: dagger.File) -> dagger.File:
	return (
		dag.apache_avro_tools(version)
		.idl(file)
	)
@func()
example(version: string, file: File): File {
	return dag
		.apacheAvroTools(version)
		.idl(file)
}

avroTools() 🔗

Get a container with Apache Avro Tools installed

Return Type
Container !
Example
dagger -m github.com/pjmagee/dagger-apache-avro-tools@b0671eee6f0078e19d5103f095af0fe59b7c4056 call \
 --version string avro-tools
func (m *myModule) example(version string) *Container  {
	return dag.
			ApacheAvroTools(version).
			AvroTools()
}
@function
def example(version: str) -> dagger.Container:
	return (
		dag.apache_avro_tools(version)
		.avro_tools()
	)
@func()
example(version: string): Container {
	return dag
		.apacheAvroTools(version)
		.avroTools()
}