8000 GitHub - calico-vpp/api: Calico API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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
    

About

Calico API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

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