Documentation ¶
Index ¶
- func FindAndParse(parser parser.Repo, path, name string) (output parser.Result, err error)
- func GetBranchName(path string) (name string, err error)
- func GetChangedContainers(prefixPath, containersPath string, filepaths []string) (containers map[string]bool, err error)
- func GetChangedFiles(path, currentBranch, mainBranch string) (filepaths []string, err error)
- func GetChangedPackages(parser parser.Repo, prefixPath, packagesPath string, filepaths []string) (packages []parser.Result, err error)
- func GetCurrentCommit(path string) (commit *object.Commit, err error)
- func IndexPackageContainerDeps(prefixPath, defaultEnvPath, containersPath string) (result map[string][]string, err error)
- func IndexReverseDependencies(parser binoc.Repo, path, packagesPath string) (result map[string][]string, err error)
- func PrAddComment(path, gitToken string, pr int, comment string) (err error)
- func PrAddLabel(path, gitToken string, pr int, label string) (err error)
- func PrGetNumber(ref string) (pr int, err error)
- type Spack
- type SpackConfig
- type SpackConfigCompiler
- type SpackConfigInstallTree
- type SpackContainer
- type SpackContainerImages
- type SpackContainerPackages
- type SpackEnv
- type SpackPackages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndParse ¶
FindAndParse attempts to find a package in the repository and parse it.
func GetBranchName ¶
GetBranchName returns the name of the current branch.
func GetChangedContainers ¶ added in v0.1.0
func GetChangedContainers(prefixPath, containersPath string, filepaths []string) (containers map[string]bool, err error)
GetChangedContainers returns a slice of parser.Results from the files changed.
func GetChangedFiles ¶
GetChangedFiles returns all of the changed files
func GetChangedPackages ¶ added in v0.1.0
func GetChangedPackages(parser parser.Repo, prefixPath, packagesPath string, filepaths []string) (packages []parser.Result, err error)
GetChangedPackages returns a slice of parser.Results from the files changed.
func GetCurrentCommit ¶
GetCurrentCommit returns the current head commit from a branch.
func IndexPackageContainerDeps ¶ added in v0.1.0
func IndexReverseDependencies ¶ added in v0.1.0
func PrAddComment ¶ added in v0.1.2
func PrAddLabel ¶ added in v0.1.2
func PrGetNumber ¶ added in v0.1.2
Types ¶
type Spack ¶ added in v0.1.6
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 ¶ added in v0.1.6
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 ¶ added in v0.1.6
type SpackConfigCompiler struct {
Target []string `yaml:"target,omitempty"`
}
type SpackConfigInstallTree ¶ added in v0.1.6
type SpackContainer ¶ added in v0.1.6
type SpackContainer struct { OSPackages SpackContainerPackages `yaml:"os_packages,omitempty"` Images SpackContainerImages `yaml:"images,omitempty"` Strip bool `yaml:"strip"` }
type SpackContainerImages ¶ added in v0.1.6
type SpackContainerPackages ¶ added in v0.1.6
type SpackEnv ¶ added in v0.1.0
type SpackEnv struct {
Spack Spack `yaml:"spack"`
}
func ParseSpackEnv ¶ added in v0.1.6
ParseSpackEnv parses a spack environment into a go struct.
type SpackPackages ¶ added in v0.1.6
type SpackPackages struct {
Target []string `yaml:"target,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.