repo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 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)

func GetContainerType

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

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,omitempty"`
	Container SpackContainer           `yaml:"container,omitempty"`
}

type SpackConfig

type SpackConfig struct {
	Compiler                SpackConfigCompiler `yaml:"compiler,omitempty"`
	InstallMissingCompilers bool                `yaml:"install_missing_compilers"`
}

type SpackConfigCompiler

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

type SpackContainer

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

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