config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath added in v0.3.0

func DefaultConfigPath() (string, error)

func MkdirAll added in v0.4.0

func MkdirAll(path string) error

func PackHome added in v0.3.0

func PackHome() (string, error)

func Write added in v0.3.0

func Write(cfg Config, path string) error

Types

type Config

type Config struct {
	RunImages      []RunImage `toml:"run-images"`
	DefaultBuilder string     `toml:"default-builder-image,omitempty"`
}

func Read added in v0.3.0

func Read(path string) (Config, error)

func SetRunImageMirrors added in v0.3.0

func SetRunImageMirrors(cfg Config, image string, mirrors []string) Config

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