mirror of https://github.com/projectcalico/api.git
Add labels to github PR |
||
|---|---|---|
| .github | ||
| .semaphore | ||
| build | ||
| examples/list-gnp | ||
| hack | ||
| pkg | ||
| .gitignore | ||
| LICENSE | ||
| Makefile | ||
| Makefile.local | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
| lib.Makefile | ||
| metadata.mk | ||
README.md
projectcalico/api
This is canonical source for API definitions of Projectcalico.
How to use
One way is to import the clientset directly and use it. See examples/list-gnp/main.go for some example code.
Adding new APIs
-
Create a .go file which contains the new type to
pkg/apis/<apigroup>/<version> -
Add the new type to
pkg/apis/<apigroup>/<version>/register.go -
Update generated code, including clients, informers, etc.
make build