An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/cloudfoundry/packit

Package packit provides primitives for implementing a Cloud Native Buildpack according to the specification: https://github.com/buildpacks/spec/blob/master/buildpack.md. According to the specification, the buildpack interface is composed of both a detect and build phase. Each of these phases has a corresponding set of packit primitives enable developers to easily implement a buildpack. The purpose of the detect phase is for buildpacks to declare dependencies that are provided or required for the buildpack to execute. Implementing the detect phase can be achieved by calling the Detect function and providing a DetectFunc callback to be invoked during that phase. Below is an example of a simple detect phase that provides the "yarn" dependency and requires the "node" dependency. The purpose of the build phase is to perform the operation of providing whatever dependencies were declared in the detect phase for the given application code. Implementing the build phase can be achieved by calling the Build function and providing a BuildFunc callback to be invoked during that phase. Below is an example that adds "yarn" as a dependency to the application source code. These examples show the very basics of what a buildpack implementation using packit might entail. For more details, please consult the documentation of the types and functions declared herein.

Ecosystem
proxy.golang.org
Latest Release
v1.3.1
over 4 years ago
Versions
56
Dependent Packages
66
Dependent Repos
17
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/cloudfoundry/packit
spec
License Apache-2.0
Namespace github.com/cloudfoundry
First Release almost 6 years ago
Last Synced 11 days ago
Repository
Stars 36 on GitHub
Forks 20 on GitHub
Docker Dependents 9
Docker Downloads 12,307,218
Rankings on proxy.golang.org
Overall Top 2.8%
Dependent packages Top 0.6%
Dependent repos Top 1.3%
Forks Top 4.9%
Docker downloads Top 0.9%