v02

package
v1.359.0 Latest Latest
Warning

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

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

Documentation

Overview

Source: https://github.com/buildpacks/pack/blob/main/pkg/project/v02/project.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDescriptor

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

Types

type Build

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

type Buildpacks

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

type Descriptor

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

type Env

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

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

type IO

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

type Project

type Project struct {
	ID            string                 `toml:"id"`
	Name          string                 `toml:"name"`
	Licenses      []types.License        `toml:"licenses"`
	Metadata      map[string]interface{} `toml:"metadata"`
	SchemaVersion string                 `toml:"schema-version"`
}

Jump to

Keyboard shortcuts

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