Documentation ¶
Index ¶
- Constants
- func Cache(url, ver string) (billy.Filesystem, error)
- func CacheModule(url, ver string) (billy.Filesystem, error)
- func Checksum(mod, ver string) (string, error)
- func CleanCache() error
- func CopyRepoTag(path, ver string) (string, error)
- func FetchOCISource(mod, ver string) (billy.Filesystem, error)
- func FetchRepoSource(mod, ver string) (billy.Filesystem, error)
- func GetBranchLatestHash(path, branch string) (string, error)
- func GetHashForNamedRef(path, ref string) (string, error)
- func GetLatestTag(path string, pre bool) (string, error)
- func GetLatestTagGit(path string, pre bool) (string, error)
- func GetLatestTagOCI(path string, pre bool) (string, error)
- func GetNamedTagHashOCI(path, tag string) (string, error)
- func Load(url, ver string) (_ billy.Filesystem, err error)
- func ModuleOutdir(remote, owner, repo, tag string) string
- func OpenRepoSource(path string) (*gogit.Repository, error)
- func Read(url, ver string) (FS billy.Filesystem, err error)
- func SetCacheDir(basedir string)
- func SourceOutdir(remote, owner, repo string) string
- func SourceOutdirParts(parts ...string) string
- func UpgradePseudoVersion(path, ver string) (s string, err error)
- func Write(remote, owner, repo, tag string, FS billy.Filesystem) error
Constants ¶
View Source
const CustomCacheDirEnvVar = "HOF_CACHE"
View Source
const NoCacheEnvVar = "HOF_NOCACHE"
Variables ¶
This section is empty.
Functions ¶
func CacheModule ¶ added in v0.6.8
func CleanCache ¶ added in v0.6.8
func CleanCache() error
func CopyRepoTag ¶ added in v0.6.8
func FetchOCISource ¶ added in v0.6.8
func FetchRepoSource ¶ added in v0.6.8
func GetBranchLatestHash ¶ added in v0.6.8
this function returns the commit hash for a branch
func GetHashForNamedRef ¶ added in v0.6.8
return the hash for the named ref, either git branch or OCI non-semver tag
func GetNamedTagHashOCI ¶ added in v0.6.8
func ModuleOutdir ¶ added in v0.6.8
func OpenRepoSource ¶ added in v0.6.8
func OpenRepoSource(path string) (*gogit.Repository, error)
func SetCacheDir ¶ added in v0.6.8
func SetCacheDir(basedir string)
func SourceOutdir ¶ added in v0.6.8
func SourceOutdirParts ¶ added in v0.6.8
func UpgradePseudoVersion ¶ added in v0.6.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.