buildpack

package
v1.37.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabel

func GetLabel(image v1.Image, key string, value interface{}) error

func GetStringLabel

func GetStringLabel(image v1.Image, key string) (string, error)

func Rename

func Rename(buildpack, tag, newID, newVersion string) (string, error)

func SetLabels

func SetLabels(image v1.Image, labels map[string]interface{}) (v1.Image, error)

Types

type BuildpackDescriptor

type BuildpackDescriptor struct {
	API      string            `toml:"api"`
	Info     BuildpackTomlInfo `toml:"buildpack"`
	Stacks   interface{}       `toml:"stacks"`
	Order    interface{}       `toml:"order"`
	Metadata interface{}       `toml:"metadata"`
}

type BuildpackInfo

type BuildpackInfo struct {
	Id      string `json:"id"`
	Version string `json:"version,omitempty"`
}

type BuildpackLayerInfo

type BuildpackLayerInfo struct {
	API         string      `json:"api"`
	Stacks      []Stack     `json:"stacks,omitempty"`
	Order       Order       `json:"order,omitempty"`
	LayerDiffID string      `json:"layerDiffID"`
	Name        string      `json:"name,omitempty"`
	Homepage    interface{} `json:"homepage,omitempty"`
}

type BuildpackLayerMetadata

type BuildpackLayerMetadata map[string]map[string]BuildpackLayerInfo

type BuildpackRef

type BuildpackRef struct {
	BuildpackInfo `json:",inline"`
	Optional      bool `json:"optional,omitempty"`
}

type BuildpackTomlInfo

type BuildpackTomlInfo struct {
	ID          string   `toml:"id"`
	Version     string   `toml:"version"`
	Name        string   `toml:"name"`
	ClearEnv    bool     `toml:"clear-env,omitempty"`
	SBOMFormats []string `toml:"sbom-formats,omitempty"`
	Description string   `toml:"description,omitempty"`
	Homepage    string   `toml:"homepage,omitempty"`
}

type Metadata

type Metadata struct {
	Id          string      `json:"id"`
	Name        string      `json:"name,omitempty"`
	Version     string      `json:"version,omitempty"`
	Homepage    interface{} `json:"homepage,omitempty"`
	Description interface{} `json:"description,omitempty"`
	Keywords    interface{} `json:"keywords,omitempty"`
	Licenses    interface{} `json:"licenses,omitempty"`
	Stacks      interface{} `toml:"stacks" json:"stacks,omitempty"`
}

type Order

type Order []OrderEntry

type OrderEntry

type OrderEntry struct {
	Group []BuildpackRef `json:"group,omitempty"`
}

type Stack

type Stack struct {
	ID     string   `json:"id"`
	Mixins []string `json:"mixins,omitempty"`
}

Jump to

Keyboard shortcuts

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