A non-opinionated language binding for the Cloud Native Buildpack Buildpack and Extension specifications
Go to file
Buildpacks Robot f7e753e42f
Bump Go Modules (#327)
Bumps Go modules used by the project. See the commit for details on what modules were updated.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: buildpack-bot <buildpack-bot@users.noreply.github.com>
2025-06-27 14:47:47 -04:00
.github Bump pipeline from 1.41.2 to 1.42.0 (#325) 2025-03-18 07:53:14 -04:00
examples Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
internal Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
log Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
mocks Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
testdata Convert nested binding credentials to JSON (#256) 2023-09-21 13:10:44 -04:00
tools Updates (#306) 2024-10-07 08:16:38 -04:00
.gitignore Bump pipeline from 1.37.5 to 1.37.5 (#281) 2024-04-05 12:25:18 -04:00
LICENSE Update LICENSE 2021-02-08 12:12:19 +02:00
MIGRATION-v1-to-v2.md Update MIGRATION-v1-to-v2.md (#318) 2025-02-23 21:49:26 -05:00
Makefile Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
NOTICE Initial Commit 2020-02-25 12:01:07 -08:00
README.md Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
build.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
build_plan.go Remove Build Plan and Buildpack Plan Version 2020-06-05 14:09:52 -07:00
build_test.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
build_toml.go Extracts all structs within the `application.go` 2021-12-09 22:38:19 +00:00
buildpack.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
buildpack_plan.go Implement Buildpack API 0.5 2021-02-01 17:11:14 -05:00
buildpack_test.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
config.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
detect.go Do not enforce presence of CNB_STACK_ID (#283) 2024-04-18 09:38:23 -04:00
detect_test.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
environment.go Update Environment Var APIs 2020-09-10 09:37:23 -07:00
environment_test.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
exec_d.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
exec_d_test.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
extension.go Support Buildpack API 0.10 (#291) 2024-06-17 22:28:34 -04:00
extension_test.go Change module versions & prep to cut an alpha (#251) 2023-08-07 07:51:15 -04:00
generate.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
generate_test.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
go.mod Bump Go Modules (#327) 2025-06-27 14:47:47 -04:00
go.sum Bump Go Modules (#327) 2025-06-27 14:47:47 -04:00
golangci.yaml Updates (#306) 2024-10-07 08:16:38 -04:00
init_test.go Add extension support (#234) 2023-06-27 09:09:37 -04:00
label.go Extracts all structs within the `application.go` 2021-12-09 22:38:19 +00:00
launch_toml.go Extracts all structs within the `application.go` 2021-12-09 22:38:19 +00:00
layer.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
layer_test.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
main.go Add extension support (#234) 2023-06-27 09:09:37 -04:00
main_test.go Code cleanup for v2 (#295) 2024-06-23 09:55:33 +01:00
platform.go Support Buildpack API 0.10 (#291) 2024-06-17 22:28:34 -04:00
platform_test.go Convert nested binding credentials to JSON (#256) 2023-09-21 13:10:44 -04:00
process.go align toml tag of `working-dir` with spec (#269) 2023-11-28 11:53:34 -05:00
slice.go Extracts all structs within the `application.go` 2021-12-09 22:38:19 +00:00
store.go Extracts all structs within the `application.go` 2021-12-09 22:38:19 +00:00

README.md

github.com/buildpacks/libcnb

Go Reference

libcnb is a Go language binding of the Cloud Native Buildpacks API. It is a non-opinionated implementation adding language constructs and convenience methods for working with the API.

For operations such as building an app, creating a builder or packaging a buildpack, you may use pack as a Go library.

Usage

Installation

go get github.com/buildpacks/libcnb

or for the v2 alpha

go get github.com/buildpacks/libcnb@v2.0.0-alpha.1

Docs

https://pkg.go.dev/github.com/buildpacks/libcnb?tab=doc

License

This library is released under version 2.0 of the Apache License.