config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvOr

func EnvOr[T any](key string, parser func(string) (T, error), def T) T

func StringEnvOr

func StringEnvOr(key, def string) string

Types

type Buildr

type Buildr struct {
	BinariesDirectory string `hcl:"bin_dir,optional"`
	OutDirectory      string `hcl:"out_dir,optional"`
	LogsDirectory     string `hcl:"logs_dir,optional"`
	CacheDirectory    string
	Plugins           []PluginReference `hcl:"plugin,block"`
	LogToStderr       bool              `hcl:"log_to_stdout,optional"`
}

func (Buildr) PluginURLs

func (c Buildr) PluginURLs() (pluginUrls []*url.URL, err error)

func (*Buildr) SetupDirectories

func (c *Buildr) SetupDirectories(buildRDir, repoRoot string, cleanDirectories bool) error

type PluginReference

type PluginReference struct {
	Checksum *string `hcl:"checksum,optional"`
	Name     string  `hcl:",label"`
	URL      string  `hcl:"url"`
}

Jump to

Keyboard shortcuts

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