Dagger
Search

protobuf

This software is released under the MIT License.
https://opensource.org/licenses/MIT

Installation

dagger install github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5

Entrypoint

Return Type
Protobuf !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
platformScalar -No description provided
fromContainer -No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string
func (m *MyModule) Example(version string) *dagger.Protobuf  {
	return dag.
			Protobuf(version)
}
@function
def example(version: str, ) -> dagger.Protobuf:
	return (
		dag.protobuf(version)
	)
@func()
example(version: string, ): Protobuf {
	return dag
		.protobuf(version)
}

Types

Protobuf 🔗

container() 🔗

Return Type
Container !
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string container
func (m *MyModule) Example(version string) *dagger.Container  {
	return dag.
			Protobuf(version).
			Container()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.protobuf(version)
		.container()
	)
@func()
example(version: string, ): Container {
	return dag
		.protobuf(version)
		.container()
}

protoc() 🔗

Run protoc.

Return Type
Protoc !
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string protoc
func (m *MyModule) Example(version string) *dagger.ProtobufProtoc  {
	return dag.
			Protobuf(version).
			Protoc()
}
@function
def example(version: str, ) -> dagger.ProtobufProtoc:
	return (
		dag.protobuf(version)
		.protoc()
	)
@func()
example(version: string, ): ProtobufProtoc {
	return dag
		.protobuf(version)
		.protoc()
}

go() 🔗

Install the protoc-gen-go plugin.

Return Type
Go !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string go --version string
func (m *MyModule) Example(version string, version1 string) *dagger.ProtobufGo  {
	return dag.
			Protobuf(version).
			Go(version1)
}
@function
def example(version: str, version1: str) -> dagger.ProtobufGo:
	return (
		dag.protobuf(version)
		.go(version1)
	)
@func()
example(version: string, version1: string): ProtobufGo {
	return dag
		.protobuf(version)
		.go(version1)
}

withPlugin() 🔗

Register the given binary file as a protoc plugin.

Return Type
Protobuf !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
binFile !-No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string with-plugin --name string --bin file:path
func (m *MyModule) Example(version string, name string, bin *dagger.File) *dagger.Protobuf  {
	return dag.
			Protobuf(version).
			WithPlugin(name, bin)
}
@function
def example(version: str, name: str, bin: dagger.File) -> dagger.Protobuf:
	return (
		dag.protobuf(version)
		.with_plugin(name, bin)
	)
@func()
example(version: string, name: string, bin: File): Protobuf {
	return dag
		.protobuf(version)
		.withPlugin(name, bin)
}

copyTo() 🔗

Copy well-known types, protoc, and plugins to the provided container.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 --version string copy-to --container IMAGE:TAG
func (m *MyModule) Example(version string, container *dagger.Container) *dagger.Container  {
	return dag.
			Protobuf(version).
			CopyTo(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
	return (
		dag.protobuf(version)
		.copy_to(container)
	)
@func()
example(version: string, container: Container): Container {
	return dag
		.protobuf(version)
		.copyTo(container)
}

Protoc 🔗

compile() 🔗

Compile protocol buffer definitions.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
proto[String ! ] !-No description provided
includePath[String ! ] !["."]Specify the directory in which to search for imports.
excludeWellKnownTypesBoolean -No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 protoc \
 compile --source DIR_PATH --proto string1 --proto string2 --include-path string1 --include-path string2
func (m *MyModule) Example(source *dagger.Directory, proto []string, includePath []string) *dagger.Directory  {
	return dag.
			Protobuf().
			Protoc().
			Compile(source, proto, includePath)
}
@function
def example(source: dagger.Directory, proto: List[str], include_path: List[str]) -> dagger.Directory:
	return (
		dag.protobuf()
		.protoc()
		.compile(source, proto, include_path)
	)
@func()
example(source: Directory, proto: string[], includePath: string[]): Directory {
	return dag
		.protobuf()
		.protoc()
		.compile(source, proto, includePath)
}

go() 🔗

Generate Go code.

Return Type
Protoc !
Arguments
NameTypeDefault ValueDescription
outDirString !-No description provided
opt[String ! ] -No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 protoc \
 go --out-dir string
func (m *MyModule) Example(outDir string) *dagger.ProtobufProtoc  {
	return dag.
			Protobuf().
			Protoc().
			Go(outDir)
}
@function
def example(out_dir: str) -> dagger.ProtobufProtoc:
	return (
		dag.protobuf()
		.protoc()
		.go(out_dir)
	)
@func()
example(outDir: string): ProtobufProtoc {
	return dag
		.protobuf()
		.protoc()
		.go(outDir)
}

goGrpc() 🔗

Generate GRPC Go code.

Return Type
Protoc !
Arguments
NameTypeDefault ValueDescription
outDirString !-No description provided
opt[String ! ] -No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 protoc \
 go-grpc --out-dir string
func (m *MyModule) Example(outDir string) *dagger.ProtobufProtoc  {
	return dag.
			Protobuf().
			Protoc().
			GoGrpc(outDir)
}
@function
def example(out_dir: str) -> dagger.ProtobufProtoc:
	return (
		dag.protobuf()
		.protoc()
		.go_grpc(out_dir)
	)
@func()
example(outDir: string): ProtobufProtoc {
	return dag
		.protobuf()
		.protoc()
		.goGrpc(outDir)
}

Go 🔗

protobuf() 🔗

Return Type
Protobuf !
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 go --version string \
 protobuf
func (m *MyModule) Example(version string) *dagger.Protobuf  {
	return dag.
			Protobuf().
			Go(version).
			Protobuf()
}
@function
def example(version: str) -> dagger.Protobuf:
	return (
		dag.protobuf()
		.go(version)
		.protobuf()
	)
@func()
example(version: string): Protobuf {
	return dag
		.protobuf()
		.go(version)
		.protobuf()
}

grpc() 🔗

Install the protoc-gen-go-grpc plugin.

Return Type
Go !
Arguments
NameTypeDefault ValueDescription
versionString !"latest"No description provided
Example
dagger -m github.com/z5labs/daggerverse/protobuf@38815e3caba9ce86260f9af15477e42142b063d5 call \
 go --version string \
 grpc --version string
func (m *MyModule) Example(version string, version1 string) *dagger.ProtobufGo  {
	return dag.
			Protobuf().
			Go(version).
			Grpc(version1)
}
@function
def example(version: str, version1: str) -> dagger.ProtobufGo:
	return (
		dag.protobuf()
		.go(version)
		.grpc(version1)
	)
@func()
example(version: string, version1: string): ProtobufGo {
	return dag
		.protobuf()
		.go(version)
		.grpc(version1)
}