protoc-gen-go-grpc
A generated module for ProtocGenGoGRPC functions
Installation
dagger install github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@8de50ad7e81ccc794aed79e3aab40f161591b2faEntrypoint
Return Type
ProtocGenGoGrpc !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| goImage | String | "golang:1.22.5-bookworm" | Custom image to use to run protoc. renovate image: datasource=docker depName=golang versioning=docker | 
| protobufVersion | String | "27.2" | renovate: datasource=github-tags depName=protocolbuffers/protobuf versioning="regex:^v?(?<major>\\d | 
| protocGenGoVersion | String | "v1.33.0" | renovate: datasource=go depName=google.golang.org/protobuf/cmd/protoc-gen-go versioning=semver | 
| protocGenGoGrpcversion | String | "v1.3.0" | renovate: datasource=go depName=google.golang.org/grpc/cmd/protoc-gen-go-grpc versioning=semver | 
Example
dagger -m github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@8de50ad7e81ccc794aed79e3aab40f161591b2fa call \
func (m *MyModule) Example() *dagger.ProtocGenGoGrpc  {
	return dag.
			ProtocGenGoGrpc()
}@function
def example() -> dagger.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@8de50ad7e81ccc794aed79e3aab40f161591b2fa call \
 containerfunc (m *MyModule) Example() *dagger.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.
Example: dagger call run --source . \
    --go-opt module=github.com/cloudnative-pg/cnpg-i \
    --go-grpcopt module=github.com/cloudnative-pg/cnpg-i \
    --proto-path proto -o .
Return Type
Directory !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | The source directory. | 
| protoPath | String ! | - | The path to the proto files, relative to the source directory. | 
| goOpt | String ! | - | go_opt flag to pass to protoc. | 
| goGrpcopt | String ! | - | go-grpc_opt flag to pass to protoc. | 
Example
dagger -m github.com/cloudnative-pg/daggerverse/protoc-gen-go-grpc@8de50ad7e81ccc794aed79e3aab40f161591b2fa call \
 run --source DIR_PATH --proto-path string --go-opt string --go-grpcopt stringfunc (m *MyModule) Example(source *dagger.Directory, protoPath string, goOpt string, goGrpcopt string) *dagger.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)
}