github.com/projectcalico/api@v0.0.0-20231218190037-9183ab93f33e/README.md (about)

     1  # projectcalico/api
     2  
     3  This is canonical source for API definitions of Projectcalico.
     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     ```