github.com/tigera/api@v0.0.0-20240320170621-278e89a8c5fb/README.md (about) 1 # tigera/api 2 3 This is the location of the Tigera API structures for use in code that wants to use the Tigera API. 4 5 ## How to use 6 7 One way is to import the clientset directly and use it. See [examples/list-gnp/main.go](examples/list-gnp/main.go) for some example code. 8 9 ## Adding new APIs 10 1. Create a .go file which contains the new type to `pkg/apis/<apigroup>/<version>` 11 12 1. Add the new type to `pkg/apis/<apigroup>/<version>/register.go` 13 14 1. Update generated code, including clients, informers, etc. 15 16 ``` 17 make build 18 ```