config

package
v0.0.0-...-eca8a8d Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Whether debugging capabilities should be included in the image.
	Debug bool
	// Entrypoint for the resulting image.
	Entrypoint []string
	// Command for the resulting image.
	Command []string
	// User to be used in the resulting image.
	User string
	// Other configuration fields. Typically used by plugins for additional
	// settings.
	Other map[string]interface{} `mapstructure:",remain"`
}

Config that drives that image creation. Typically stored in pack.yaml file.

func New

func New() *Config

New returns an instance of configuration with pre-populated defaults.

func Read

func Read(data []byte) (*Config, error)

Read the configuration provided into a structured format.

Jump to

Keyboard shortcuts

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