MCPcopy Index your code
hub / github.com/buildpacks/libcnb

github.com/buildpacks/libcnb @v2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.0 ↗ · + Follow
227 symbols 642 edges 61 files 168 documented · 74%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Extension points exported contracts — how you extend this code

EnvironmentWriter (Interface)
go:generate mockery --name EnvironmentWriter --case=underscore EnvironmentWriter is the interface implemented by a type [7 …
config.go
DirectoryContentFormatter (Interface)
go:generate mockery --name DirectoryContentFormatter --case=underscore DirectoryContentFormatter allows customization of [2 …
log/formatter.go
Logger (Interface)
go:generate mockery --name Logger --case=underscore Logger is the interface implement by a type that wishes to write log [2 …
log/logger.go
ExecD (Interface)
go:generate mockery --name ExecD --case=underscore ExecD describes an interface for types that follow the Exec.d specifi [1 …
exec_d.go
DetectFunc (FuncType)
DetectFunc takes a context and returns a result, performing buildpack detect behaviors.
detect.go
BuildFunc (FuncType)
BuildFunc takes a context and returns a result, performing buildpack build behaviors.
build.go
GenerateFunc (FuncType)
GenerateFunc takes a context and returns a result, performing extension generate behaviors.
generate.go
ExecDOption (FuncType)
Option is a function for configuring an ExitHandler instance.
internal/execd_writer.go

Core symbols most depended-on inside this repo

Error
called by 67
config.go
Debugf
called by 42
log/logger.go
NewDiscard
called by 35
log/logger.go
Write
called by 26
config.go
IsDebugEnabled
called by 13
log/logger.go
String
called by 12
layer.go
New
called by 11
log/logger.go
NewConfigMapFromPath
called by 8
internal/config_map.go

Shape

Method 80
Function 71
Struct 59
Interface 7
FuncType 6
TypeAlias 4

Languages

Go100%

Modules by API surface

config.go20 symbols
environment.go18 symbols
layer.go15 symbols
platform.go13 symbols
log/logger.go12 symbols
generate.go9 symbols
buildpack.go9 symbols
internal/exit_handler.go8 symbols
build.go8 symbols
log/mocks/logger.go6 symbols
mocks/exit_handler.go5 symbols
log/mocks/directory_content_formatter.go5 symbols

Datastores touched

exampleuserDatabase · 1 repos

For agents

$ claude mcp add libcnb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact