config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageByRegistry

func ImageByRegistry(registry string, images []string) (string, error)

func Registry

func Registry(imageName string) (string, error)

Types

type Config

type Config struct {
	RunImages      []RunImage `toml:"run-images"`
	DefaultBuilder string     `toml:"default-builder-image,omitempty"`
	// contains filtered or unexported fields
}

func New

func New(path string) (*Config, error)

func NewDefault added in v0.0.5

func NewDefault() (*Config, error)

func (*Config) GetRunImage added in v0.1.0

func (c *Config) GetRunImage(runImageTag string) *RunImage

func (*Config) Path added in v0.0.5

func (c *Config) Path() string

Path returns the directory path where the config is stored as a toml file. That directory may also contain other `pack` related files.

func (*Config) SetDefaultBuilder added in v0.0.6

func (c *Config) SetDefaultBuilder(builder string) error

func (*Config) SetRunImageMirrors added in v0.1.0

func (c *Config) SetRunImageMirrors(image string, mirrors []string)

type RunImage added in v0.1.0

type RunImage struct {
	Image   string   `toml:"image"`
	Mirrors []string `toml:"mirrors"`
}

Jump to

Keyboard shortcuts

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