Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyUpdated = eris.New("pkgmgmtutils: formula already updated") ErrNoSha256sFound = eris.New("pkgmgmtutils: did not find any sha256 data") )
Functions ¶
This section is empty.
Types ¶
type FormulaUpdater ¶ added in v0.16.1
type FormulaUpdater struct {
// contains filtered or unexported fields
}
func NewFormulaUpdater ¶ added in v0.16.1
func NewFormulaUpdater( gitClient formula_updater_types.GitClient, remoteShaGetter formula_updater_types.RemoteShaGetter, currentEpochTimeProvider func() int64, localCloneChangePusher formula_updater_types.ChangePusher, remoteChangePusher formula_updater_types.ChangePusher, ) *FormulaUpdater
func NewFormulaUpdaterWithDefaults ¶ added in v0.16.1
func NewFormulaUpdaterWithDefaults(ctx context.Context) (*FormulaUpdater, error)
func (*FormulaUpdater) Update ¶ added in v0.16.1
func (f *FormulaUpdater) Update( ctx context.Context, version *versionutils.Version, projectRepoOwner string, projectRepoName string, formulaOptionsList []*formula_updater_types.FormulaOptions, ) ([]formula_updater_types.FormulaStatus, error)
for each option in the options slice, update the formula using those options the `version` arg here can often be derived from `versionutils.GetReleaseVersionOrExitGracefully()`
Click to show internal directories.
Click to hide internal directories.