Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoStore ¶
type InfoStore struct { OriginsByPackage map[string]OriginInfoByURL FilePath string Runner exe.Runner CmdBuilder *exe.CmdBuilder }
InfoStore is a collection of OriginInfoByURL by Package. Containing a map of last commit SHAs of a repo
func NewInfoStore ¶
func (*InfoStore) NeedsUpdate ¶
func (v *InfoStore) NeedsUpdate(infos OriginInfoByURL) bool
func (*InfoStore) RemovePackage ¶
RemovePackage removes package from VCS information
type OriginInfo ¶
type OriginInfo struct { Protocols []string `json:"protocols"` Branch string `json:"branch"` SHA string `json:"sha"` }
OriginInfo contains the last commit sha of a repo Example:
"github.com/Jguer/yay.git": { "protocols": [ "https" ], "branch": "next", "sha": "c1171d41467c68ffd3c46748182a16366aaaf87b" }
type OriginInfoByURL ¶
type OriginInfoByURL map[string]OriginInfo
OriginInfoByURL stores the OriginInfo of each origin URL provided
Click to show internal directories.
Click to hide internal directories.