Cockpit API

Cockpit has API available for writing packages. There is no API available for external callers to invoke via HTTP, REST or otherwise.

Warning

Unless an API is explicitly marked as stable, it is unstable and can be changed when Cockpit is upgraded.

API from various packages can be used to implement Cockpit packages. Each package listed here has some API available for use. Only the API explicitly documented should be used. In some cases even though the API is available it is not (yet) stable.

To include javascript from the API, simply load it into your HTML using a script tag. Alternatively you can use an javascript loader. Always refer to the package using the @@package@@ syntax. This allows Cockpit to optimize and cache multiple uses of the same resources.