config

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() (string, error)

func FormatUndecodedKeys added in v0.10.0

func FormatUndecodedKeys(undecodedKeys []toml.Key) string

func MkdirAll

func MkdirAll(path string) error

func PackHome

func PackHome() (string, error)

func Write

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"`
	DefaultRegistry string           `toml:"default-registry-url,omitempty"`
	Experimental    bool             `toml:"experimental,omitempty"`
	TrustedBuilders []TrustedBuilder `toml:"trusted-builders,omitempty"`
}

func Read

func Read(path string) (Config, error)

func SetRunImageMirrors

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

type RunImage

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

type TrustedBuilder added in v0.11.0

type TrustedBuilder struct {
	Name string `toml:"name"`
}

Jump to

Keyboard shortcuts

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