This repositiory contains Calico's Go components:
libcalico
, which can be imported as"github.com/projectcalico/libcalico-go/lib"
This library is used by both calicoctl
, calico-cni
and felix
.
If you are looking for the golang version of calicoctl
it is in the process of moving and
can be found in our
calico-containers repo / golang branch.
If you wish to use libcalico for integration with Calico networking and policy, the main entry point to managing Calico configuration is through the client.
- Documentation for the client is in
lib/client
. - The resource structure definitions are defined in
lib/api
, this includes detailed per-resource and per-field level descriptions.
If you are developing against the code in libcalico, please run the tests before submitting a Pull Request.
To run the tests locally (requires a full golang environment Go 1.7+):
make ut
To run the tests within a containerized environment:
make test-containerized