project

package
v1.408.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Package project handles project.toml parsing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath added in v1.198.0

func ResolvePath(descriptor, path string, utils cnbutils.BuildUtils) (string, error)

1. If "path" is a directory, check for "${path}/${descriptor}" 2. If "path" is a file, check for "${PWD}/${descriptor}"

Types

type Descriptor

type Descriptor struct {
	Exclude        *ignore.GitIgnore
	Include        *ignore.GitIgnore
	EnvVars        map[string]interface{}
	Buildpacks     []string
	PreBuildpacks  []string
	PostBuildpacks []string
	ProjectID      string
}

func ParseDescriptor

func ParseDescriptor(descriptorPath string, utils cnbutils.BuildUtils, httpClient piperhttp.Sender) (*Descriptor, error)

Directories

Path Synopsis
Package metadata handles generation of the project-metadata.toml
Package metadata handles generation of the project-metadata.toml
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/types/types.go
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/types/types.go
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/v01/project.go
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/v01/project.go
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/v02/project.go
Source: https://github.com/buildpacks/pack/blob/main/pkg/project/v02/project.go

Jump to

Keyboard shortcuts

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