v02

package
v0.40.11 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitMetadata added in v0.28.0

func GitMetadata(appPath string) *files.ProjectSource

func NewDescriptor

func NewDescriptor(projectTomlContents string) (types.Descriptor, toml.MetaData, error)

Types

type Build added in v0.28.0

type Build struct {
	Env []EnvVar `toml:"env"`
}

type Buildpack added in v0.40.0

type Buildpack struct {
	ID      string       `toml:"id"`
	Version string       `toml:"version"`
	URI     string       `toml:"uri"`
	Script  types.Script `toml:"script"`
}

type Buildpacks

type Buildpacks struct {
	Include []string      `toml:"include"`
	Exclude []string      `toml:"exclude"`
	Group   []Buildpack   `toml:"group"`
	Env     Env           `toml:"env"`
	Build   Build         `toml:"build"`
	Builder string        `toml:"builder"`
	Pre     GroupAddition `toml:"pre"`
	Post    GroupAddition `toml:"post"`
}

type Descriptor

type Descriptor struct {
	Project Project `toml:"_"`
	IO      IO      `toml:"io"`
}

type Env deprecated

type Env struct {
	Build []EnvVar `toml:"build"`
}

Deprecated: use `[[io.buildpacks.build.env]]` instead. see https://github.com/buildpacks/pack/pull/1479

type EnvVar added in v0.40.0

type EnvVar struct {
	Name  string `toml:"name"`
	Value string `toml:"value"`
}

type GroupAddition added in v0.40.0

type GroupAddition struct {
	Buildpacks []Buildpack `toml:"group"`
}

type IO

type IO struct {
	Buildpacks Buildpacks `toml:"buildpacks"`
}

type Project

type Project struct {
	SchemaVersion    string                 `toml:"schema-version"`
	ID               string                 `toml:"id"`
	Name             string                 `toml:"name"`
	Version          string                 `toml:"version"`
	Authors          []string               `toml:"authors"`
	Licenses         []types.License        `toml:"licenses"`
	DocumentationURL string                 `toml:"documentation-url"`
	SourceURL        string                 `toml:"source-url"`
	Metadata         map[string]interface{} `toml:"metadata"`
}

type TagInfo added in v0.28.0

type TagInfo struct {
	Name    string
	Message string
	Type    string
	TagHash string
	TagTime time.Time
}

Jump to

Keyboard shortcuts

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