repo

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const DockerType = "Dockerfile"
View Source
const SpackType = "Spack"

Variables

This section is empty.

Functions

func FindPackagePath

func FindPackagePath(packageName, packagesPath string) (packagePath string, err error)

FindPackagePath returns the path to the package.py file for a given package.

func GetContainerType

func GetContainerType(containersPath, containerName string) (result, resultPath string, err error)

func GetPackageFromSpec added in v0.1.7

func GetPackageFromSpec(spec string) (packageName string)

GetPackageFromSpec extracts the name of the package from the abstract spec.

Types

type Spack

type Spack struct {
	Specs     []string                 `yaml:"specs,omitempty"`
	View      bool                     `yaml:"view"`
	Packages  map[string]SpackPackages `yaml:"packages,omitempty"`
	Config    SpackConfig              `yaml:"config"`
	Container SpackContainer           `yaml:"container"`
	Mirrors   map[string]string        `yaml:"mirrors,omitempty"`
}

type SpackConfig

type SpackConfig struct {
	Concretizer             string                 `yaml:"concretizer,omitempty"`
	Compiler                SpackConfigCompiler    `yaml:"compiler,omitempty"`
	InstallMissingCompilers bool                   `yaml:"install_missing_compilers"`
	InstallTree             SpackConfigInstallTree `yaml:"install_tree,omitempty"`
}

type SpackConfigCompiler

type SpackConfigCompiler struct {
	Target []string `yaml:"target,omitempty"`
}

type SpackConfigInstallTree added in v0.1.3

type SpackConfigInstallTree struct {
	Root         string `yaml:"root,omitempty"`
	PaddedLength int    `yaml:"padded_length,omitempty"`
}

type SpackContainer

type SpackContainer struct {
	OSPackages SpackContainerPackages `yaml:"os_packages,omitempty"`
	Images     SpackContainerImages   `yaml:"images,omitempty"`
	Strip      bool                   `yaml:"strip"`
}

type SpackContainerImages added in v0.0.7

type SpackContainerImages struct {
	Build string `yaml:"build,omitempty"`
	Final string `yaml:"final,omitempty"`
}

type SpackContainerPackages

type SpackContainerPackages struct {
	Build []string `yaml:"build,omitempty"`
	Final []string `yaml:"final,omitempty"`
}

type SpackEnv

type SpackEnv struct {
	Spack Spack `yaml:"spack"`
}

func ParseSpackEnv

func ParseSpackEnv(defaultPath, containerPath string) (result SpackEnv, err error)

ParseSpackEnv parses a spack environment into a go struct.

type SpackPackages

type SpackPackages struct {
	Target []string `yaml:"target,omitempty"`
}

Jump to

Keyboard shortcuts

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