protoc-gen-go-govmomi-bridge

command module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

protoc-gen-go-govmomi-bridge

protoc-gen-go-govmomi-bridge is a protoc go plugin to generate a compatibility layer between vSphere vim25 proto definitions and govmomi type definitions.

An example proto package is included in the proto directory. The generated files are included in the gen directory.

Usage

  1. Install the plugin
go install github.com/jiayinzhang-mint/protoc-gen-go-govmomi-bridge@latest
  1. Include this plugin in your buf.gen.yaml

    Parameters:

    • include_enum_proto_files: A list of proto files with enum definitions to include.
    • include_types_go_packages: A list of go packages with govmomi-related types definitions to include.
plugins:
  - name: go-govmomi-bridge
    out: gen
    opt:
      - paths=source_relative
      - include_enum_proto_files=proto/v1/enum.proto
      - include_types_go_packages=github.com/jiayinzhang-mint/protoc-gen-go-govmomi-bridge/fixture/gen/proto/v1

Author

Jiayin Zhang

License

Released under Apache-2.0 License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gen
proto/v1
Code generated by protoc-gen-go-govmomi-bridge.
Code generated by protoc-gen-go-govmomi-bridge.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL