cnb

package
v0.0.0-...-7f751fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BOMEntry

type BOMEntry struct {
	Name      string                 `json:"name"`
	Version   string                 `json:"version"`
	Metadata  map[string]interface{} `json:"metadata"`
	Buildpack Buildpack
}

type BuildMetadata

type BuildMetadata struct {
	Processes  []Process   `json:"processes"`
	Buildpacks []Buildpack `json:"buildpacks"`
	BOM        []BOMEntry  `json:"bom"`
}

func ParseBuildMetadata

func ParseBuildMetadata(img v1.Image) (BuildMetadata, error)

func (*BuildMetadata) FindBOM

func (m *BuildMetadata) FindBOM(name string) BOMEntry

type Buildpack

type Buildpack struct {
	ID      string `json:"id"`
	Version string `json:"version"`
}

type Process

type Process struct {
	Type    string   `json:"type"`
	Command string   `json:"command"`
	Args    []string `json:"args"`
	Direct  bool     `json:"direct"`
}

type Registry

type Registry struct {
	Keychain authn.Keychain
}

func (*Registry) GetImage

func (r *Registry) GetImage(ref string) (ggcr.Image, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL