projectcalico / api

Calico API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  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

License:Apache License 2.0


Languages

Language:Go 67.0%Language:Makefile 31.8%Language:Shell 1.0%Language:Starlark 0.3%