Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BOM ¶
type BOM struct{}
func (BOM) Attach ¶
Attach takes in the image tag of an image on the local Docker daemon, and files to add to that image. It expects a files to have `syft.json` in the name to denote a Syft-type BOM file, and it denotes all other given files as `bom.cdx.json` to denote CycloneDX. Files are added to `/cnb/sbom/`, and are turned into a layer and added to the image. This function also adds a layer to the image under `io.buildpacks.base.sbom`, with the value set to the diffID of the newly added layer.
func (BOM) CreateLayer ¶
func (b BOM) CreateLayer(mappings []InputOutputMapping) (v1.Layer, error)
type BOMGenerator ¶
type Creator ¶
type Creator struct { PackageFinder PackageFinder MixinsGenerator MixinsGenerator ImageClient ImageClient BOMGenerator BOMGenerator AttachBOM bool }
func (Creator) Execute ¶
func (c Creator) Execute(def Definition) error
type Definition ¶
func NewBaseStack ¶
func NewBaseStack(buildTag, runTag, stackDir string, publish bool) (Definition, error)
func NewFullStack ¶
func NewFullStack(buildTag, runTag, stackDir string, publish bool) (Definition, error)
func NewTinyStack ¶
func NewTinyStack(buildTag, runTag, stackDir string, publish bool) (Definition, error)
type ImageClient ¶
type InputOutputMapping ¶
type InputOutputMapping struct { FileName string File io.ReadCloser DstPath string Size int64 }
type MixinsGenerator ¶
type PackageFinder ¶
type Stack ¶
type Stack interface { GetName() string WithBuildKit() bool GetSecretArgs() map[string]string GetBaseBuildArgs() []string GetBaseRunArgs() []string GetCNBBuildArgs() []string GetCNBRunArgs() []string GetBaseBuildDockerfilePath() string GetBaseRunDockerfilePath() string GetCNBBuildDockerfilePath() string GetCNBRunDockerfilePath() string GetBuildDescription() string GetRunDescription() string }
Click to show internal directories.
Click to hide internal directories.