common

package
v0.0.0-...-0831176 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(source, destination string) error

func DetectInFile

func DetectInFile(file string, pattern string, logger bard.Logger) bool

func InitialiseBuild

func InitialiseBuild(context libcnb.BuildContext, logger bard.Logger) (*libpak.ConfigurationResolver, error)

func SummariseContributions

func SummariseContributions(layer libcnb.Layer)

Types

type BuildpackGroups

type BuildpackGroups struct {
	Groups []struct {
		ID string `toml:"id"`
	} `toml:"group"`
}

func NewBuildpackGroups

func NewBuildpackGroups() (BuildpackGroups, error)

type EnvironmentVariable

type EnvironmentVariable struct {
	Key       string   `json:"key"`
	Value     []string `json:"value"`
	Delimiter string   `json:"delimiter"`
}

type EnvironmentVariables

type EnvironmentVariables map[string]EnvironmentVariable

func GetBuildpackGroupEnvironmentVariables

func GetBuildpackGroupEnvironmentVariables(logger bard.Logger) (EnvironmentVariables, error)

func (EnvironmentVariables) GetForCommand

func (v EnvironmentVariables) GetForCommand() []string

type IndentedWriter

type IndentedWriter struct {
	Indent int
	Logger bard.Logger
}

func IndentedWriterFactory

func IndentedWriterFactory(indent int, logger bard.Logger) IndentedWriter

func (IndentedWriter) Write

func (iw IndentedWriter) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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