Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPinnedRevs ¶
func GetPinnedRevs(ctx context.Context, deps []*config.VersionFileConfig, getFile GetFileFunc) (map[string]string, error)
GetPinnedRevs reads files using the given GetFileFunc to retrieve the given pinned revisions. File retrievals are cached for efficiency.
func UpdateDep ¶
func UpdateDep(ctx context.Context, primaryDep *config.DependencyConfig, rev *revision.Revision, getFile GetFileFunc) (map[string]string, error)
UpdateDep updates the given dependency to the given revision, also updating any transitive dependencies to the revisions specified in the new revision of the primary dependency. Returns a map whose keys are file names to update and values are their updated contents.
Types ¶
Click to show internal directories.
Click to hide internal directories.