repo

package
v0.1.9 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: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndParse

func FindAndParse(parser parser.Repo, path, name string) (output parser.Result, err error)

FindAndParse attempts to find a package in the repository and parse it.

func GetBranchName

func GetBranchName(path string) (name string, err error)

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

func GetChangedFiles(path, currentBranch, mainBranch string) (filepaths []string, err error)

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

func GetCurrentCommit(path string) (commit *object.Commit, err error)

GetCurrentCommit returns the current head commit from a branch.

func IndexPackageContainerDeps added in v0.1.0

func IndexPackageContainerDeps(prefixPath, defaultEnvPath, containersPath string) (result map[string][]string, err error)

func IndexReverseDependencies added in v0.1.0

func IndexReverseDependencies(parser binoc.Repo, path, packagesPath string) (result map[string][]string, err error)

func PrAddComment added in v0.1.2

func PrAddComment(path, gitToken string, pr int, comment string) (err error)

func PrAddLabel added in v0.1.2

func PrAddLabel(path, gitToken string, pr int, label string) (err error)

func PrGetNumber added in v0.1.2

func PrGetNumber(ref string) (pr int, err error)

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 SpackConfigInstallTree struct {
	Root         string `yaml:"root,omitempty"`
	PaddedLength int    `yaml:"padded_length,omitempty"`
}

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 SpackContainerImages struct {
	Build string `yaml:"build,omitempty"`
	Final string `yaml:"final,omitempty"`
}

type SpackContainerPackages added in v0.1.6

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

type SpackEnv added in v0.1.0

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

func ParseSpackEnv added in v0.1.6

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

ParseSpackEnv parses a spack environment into a go struct.

type SpackPackages added in v0.1.6

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