pkgmgmtutils

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

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()`

Directories

Path Synopsis
mocks
Package mock_formula_updater_types is a generated GoMock package.
Package mock_formula_updater_types is a generated GoMock package.

Jump to

Keyboard shortcuts

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