config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 7 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 {
	S3 struct {
		BinaryCache string `yaml:"binaryCache"`
		BuildBase   string `yaml:"buildBase"`
	} `yaml:"s3"`
	Module struct {
		ModuleInstallDir  string   `yaml:"moduleInstallDir"`
		ScriptsInstallDir string   `yaml:"scriptsInstallDir"`
		LoadPath          string   `yaml:"loadPath"`
		Dependencies      []string `yaml:"dependencies"`
		WrapperScript     string   `yaml:"wrapperScript"`
	} `yaml:"module"`
	CustomSpackRepo string `yaml:"customSpackRepo"`
	Spack           struct {
		BuildImage      string  `yaml:"buildImage"`
		FinalImage      string  `yaml:"finalImage"`
		ProcessorTarget string  `yaml:"processorTarget"`
		ReindexHours    float64 `yaml:"reindexHours"`
		Path            string  `yaml:"path"`
	} `yaml:"spack"`
	CoreURL      string `yaml:"coreURL"`
	ListenURL    string `yaml:"listenURL"`
	WRDeployment string `yaml:"wrDeployment"`
}

Config holds our config options.

func GetConfig added in v1.6.0

func GetConfig(configPath string) (*Config, error)

GetConfig returns a config based on the given config file path. If it's blank, looks for ~/.softpack/builder/gsb-config.yml.

func Parse

func Parse(r io.Reader) (*Config, error)

Parse parses a YAML file of our config options.

Jump to

Keyboard shortcuts

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