Documentation ¶
Index ¶
- func CheckoutCommit(target string, commit string) error
- func Clone(src string, dst string) error
- func CloneOrPull(src string, dst string) error
- func GitUrlInfo(url string) (*vcsurl.VCS, error)
- func IsValidGitUrl(url string) bool
- func ParseGitUrl(url string) (*url.URL, error)
- func Pull(dst string) error
- func RepoLastCommit(src string) (string, error)
- func RepoRemoteUrl(src string) (string, error)
- func SortRepoInfo(infos []*RepoInfo)
- type RepoInfo
- type VersionCollection
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutCommit ¶ added in v0.12.0
func CloneOrPull ¶ added in v0.12.0
func GitUrlInfo ¶ added in v0.12.0
func IsValidGitUrl ¶
func RepoLastCommit ¶ added in v0.12.0
func RepoRemoteUrl ¶ added in v0.12.0
func SortRepoInfo ¶ added in v0.16.2
func SortRepoInfo(infos []*RepoInfo)
Types ¶
type RepoInfo ¶ added in v0.16.0
type RepoInfo struct { Name string `json:"name"` Description string `json:"description"` Author string `json:"author"` Path string `json:"path"` Git string `json:"git"` Commit string `json:"commit"` Latest string `json:"latest"` Versions VersionCollection `json:"tags"` InCache bool `json:"inCache"` InRegistry bool `json:"inRegistry"` }
func RemoteRepoInfo ¶ added in v0.12.0
type VersionCollection ¶ added in v0.12.0
type VersionCollection []VersionInfo
VersionCollection is a collection of tags it implements sort.Interface
func (VersionCollection) AsList ¶ added in v0.16.2
func (c VersionCollection) AsList() []string
func (VersionCollection) Latest ¶ added in v0.12.0
func (c VersionCollection) Latest() VersionInfo
Latest returns the latest tag info
func (VersionCollection) Len ¶ added in v0.12.0
func (c VersionCollection) Len() int
Len is the number of elements in the collection.
func (VersionCollection) Less ¶ added in v0.12.0
func (c VersionCollection) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (VersionCollection) Swap ¶ added in v0.12.0
func (c VersionCollection) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.