Help us shape the future of Go! Take the 2026 Go Developer Survey

pkgmgmtutils

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

View Source
const PRBaseBranchDefault = "master"

Variables

View Source
var (
	ErrAlreadyUpdated               = errors.New("pkgmgmtutils: formula already updated")
	ErrMissingRequiredVersion       = errors.New("pkgmgmtutils: missing required version")
	ErrMissingRequiredVersionTagSha = errors.New("pkgmgmtutils: missing required version tag sha")
	ErrMissingRequiredDarwinSha     = errors.New("pkgmgmtutils: missing required sha for darwin binary")
	ErrMissingRequiredLinuxSha      = errors.New("pkgmgmtutils: missing required sha for linux binary")
	ErrMissingRequiredWindowsSha    = errors.New("pkgmgmtutils: missing required sha for windows binary")
)
View Source
var (
	ErrNoSha256sFound         = errors.New("pkgmgmtutils: did not find any sha256 data")
	ErrNoShaDataFound         = errors.New("pkgmgmtutils: no data in SHA256 file")
	ErrNoShaOutputDirProvided = errors.New("pkgmgmtutils: required sha256 output directory not provided")
)

Functions

This section is empty.

Types

type FormulaOptions

type FormulaOptions struct {
	Name            string // Descriptive name to be used for logging and general identification
	FormulaName     string // proper formula name without file extension
	Path            string // repo relative path with file extension
	RepoOwner       string // repo owner for Formula change
	RepoName        string // repo name for Formula change
	PRRepoOwner     string // optional, empty means use RepoOwner
	PRRepoName      string // optional, empty means use RepoName
	PRBranch        string // optional, default to master
	PRDescription   string
	PRCommitName    string
	PRCommitEmail   string
	VersionRegex    string
	VersionShaRegex string
	DarwinShaRegex  string
	LinuxShaRegex   string
	WindowsShaRegex string
	// contains filtered or unexported fields
}

type FormulaStatus

type FormulaStatus struct {
	Name    string
	Updated bool
	Err     error
}

func UpdateFormulas

func UpdateFormulas(projectRepoOwner string, projectRepoName string, parentPathSha256 string, reShaFilenames string,
	fOpts []FormulaOptions) ([]FormulaStatus, error)

Jump to

Keyboard shortcuts

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