binapi-generator

command
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

The binapi-generator parses VPP API definitions in JSON format and generates Go code.

The VPP API input can be specified using --input=<INPUT> option, where INPUT is one of the following:

- path to directory containing `*.api.json` files (these may be nested under core/plugins) - path to local VPP repository (uses files under`build-root/install-vpp-native/vpp/share/vpp/api`)

The generated Go code will be placed into directory specified using `--output-dir=<OUTPUT>` option (defaults to `binapi`). Each VPP API file will be generated as a separate Go package.

Example:

binapi-generator --input=/usr/share/vpp/api --output-dir=binapi

Jump to

Keyboard shortcuts

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