Skip to content

calico-vpp/api

 
 

Repository files navigation

projectcalico/api

This repository is a mirror of the canonical home for Calico API definitions.

It is recommended to use this repository for projects which use the Calico API, so as to avoid importing the full Calico source code.

To make changes to the Calico API, you must first submit a PR against github.com/projectcalico/calico/api. Once merged, changes will be mirrored to this repository for consumption.

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

  1. Create a .go file which contains the new type to pkg/apis/<apigroup>/<version>

  2. Add the new type to pkg/apis/<apigroup>/<version>/register.go

  3. Update generated code, including clients, informers, etc.

    make build
    

Releases

No releases published

Packages

No packages published

Languages

  • Go 67.4%
  • Makefile 31.0%
  • Shell 1.2%
  • Starlark 0.4%