Documentation
¶
Overview ¶
Package cnbutils provides utility functions to interact with Buildpacks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildPackMetadata ¶
type BuildPackMetadata struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Homepage string `json:"homepage,omitempty"`
Keywords []string `json:"keywords,omitempty"`
Licenses []License `json:"licenses,omitempty"`
}
type BuildUtils ¶
type BuildUtils interface {
command.ExecRunner
piperutils.FileUtils
docker.Download
}
type BuildpackRef ¶
type DockerMock ¶
type DockerMock struct{}
func (*DockerMock) DownloadImageToPath ¶
func (d *DockerMock) DownloadImageToPath(_, filePath string) (pkgutil.Image, error)
func (*DockerMock) GetImageSource ¶
func (d *DockerMock) GetImageSource() (string, error)
type MockUtils ¶
type MockUtils struct {
*mock.ExecMockRunner
*mock.FilesMock
*DockerMock
}
func (*MockUtils) GetDockerClient ¶
func (*MockUtils) GetFileUtils ¶
func (c *MockUtils) GetFileUtils() piperutils.FileUtils
type Order ¶
type Order struct {
Order []OrderEntry `toml:"order"`
Utils BuildUtils `toml:"-"`
}
func DownloadBuildpacks ¶
func DownloadBuildpacks(path string, bpacks []string, utils BuildUtils) (Order, error)
type OrderEntry ¶
type OrderEntry struct {
Group []BuildpackRef `toml:"group" json:"group"`
}
Click to show internal directories.
Click to hide internal directories.