Skip to main content

Resource libraries

Libraries turn an external system into Graphene's two primitives:

  • a resource is a durable owned record with convergence and finalize;
  • an action is named one-shot work executed on an agent.
LibraryResourcesActions
Dockercontainer, network, volumeinstall engine, build image
Kubernetesany typed Kubernetes objectapply/reconcile/delete inside the resource
Filefile on a machinewrite/remove inside the resource
Gitinstall, checkout, ls-remote, tag, commit

All resource constructors return pipeline.Resource[T] and accept the same ownership, label and flow options. All action constructors return activity.Call[T] and execute through activity.Activity or ActivityAll. Start with the core reference.

The catalogue is open: a pipeline binary can bring another kind and publish its schema through the manifest. graphenectl kinds shows the exact catalogue of the connected installation.