Dagger
Search

protoc-gen-go-grpc

A generated module for ProtocGenGoGRPC functions

Installation

dagger install github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@9312a7826b1c8b5e67a44a12b092ab13a529adb7

Entrypoint

Return Type
ProtocGenGoGrpc !
Arguments
NameTypeDescription
goImageString Custom image to use to run protoc. renovate image: datasource=docker depName=golang versioning=docker
protobufVersionString renovate: datasource=github-tags depName=protocolbuffers/protobuf versioning="regex:^v?(?<major>\\d
protocGenGoVersionString renovate: datasource=go depName=google.golang.org/protobuf/cmd/protoc-gen-go versioning=semver
protocGenGoGrpcversionString renovate: datasource=go depName=google.golang.org/grpc/cmd/protoc-gen-go-grpc versioning=semver
Example
func (m *myModule) example() *ProtocGenGoGrpc  {
	return dag.
			ProtocGenGoGrpc()
}
@function
def example() -> dag.ProtocGenGoGrpc:
	return (
		dag.protoc_gen_go_grpc()
	)
@func()
example(): ProtocGenGoGrpc {
	return dag
		.protocGenGoGrpc()
}

Types

ProtocGenGoGrpc

container()

Container get the current container

Return Type
Container !
Example
dagger -m github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@9312a7826b1c8b5e67a44a12b092ab13a529adb7 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			ProtocGenGoGrpc().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.protoc_gen_go_grpc()
		.container()
	)
@func()
example(): Container {
	return dag
		.protocGenGoGrpc()
		.container()
}

run()

Run runs protoc on proto files, returning the generated go files as a directory.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-The source directory.
protoPathString !-The path to the proto files, relative to the source directory.
goOptString !-go_opt flag to pass to protoc.
goGrpcoptString !-go-grpc_opt flag to pass to protoc.
Example
dagger -m github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@9312a7826b1c8b5e67a44a12b092ab13a529adb7 call \
 run --source DIR_PATH --proto-path string --go-opt string --go-grpcopt string
func (m *myModule) example(source *Directory, protoPath string, goOpt string, goGrpcopt string) *Directory  {
	return dag.
			ProtocGenGoGrpc().
			Run(source, protoPath, goOpt, goGrpcopt)
}
@function
def example(source: dagger.Directory, proto_path: str, go_opt: str, go_grpcopt: str) -> dagger.Directory:
	return (
		dag.protoc_gen_go_grpc()
		.run(source, proto_path, go_opt, go_grpcopt)
	)
@func()
example(source: Directory, protoPath: string, goOpt: string, goGrpcopt: string): Directory {
	return dag
		.protocGenGoGrpc()
		.run(source, protoPath, goOpt, goGrpcopt)
}