cache

package
v0.6.8-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CustomCacheDirEnvVar = "HOF_CACHE"
View Source
const NoCacheEnvVar = "HOF_NOCACHE"

Variables

This section is empty.

Functions

func Cache

func Cache(url, ver string) (billy.Filesystem, error)

func CacheModule added in v0.6.8

func CacheModule(url, ver string) (billy.Filesystem, error)

func Checksum

func Checksum(mod, ver string) (string, error)

func CleanCache added in v0.6.8

func CleanCache() error

func CopyRepoTag added in v0.6.8

func CopyRepoTag(path, ver string) (string, error)

func FetchOCISource added in v0.6.8

func FetchOCISource(mod, ver string) (billy.Filesystem, error)

func FetchRepoSource added in v0.6.8

func FetchRepoSource(mod, ver string) (billy.Filesystem, error)

func GetBranchLatestHash added in v0.6.8

func GetBranchLatestHash(path, branch string) (string, error)

this function returns the commit hash for a branch

func GetHashForNamedRef added in v0.6.8

func GetHashForNamedRef(path, ref string) (string, error)

return the hash for the named ref, either git branch or OCI non-semver tag

func GetLatestTag added in v0.6.8

func GetLatestTag(path string, pre bool) (string, error)

func GetLatestTagGit added in v0.6.8

func GetLatestTagGit(path string, pre bool) (string, error)

func GetLatestTagOCI added in v0.6.8

func GetLatestTagOCI(path string, pre bool) (string, error)

func GetNamedTagHashOCI added in v0.6.8

func GetNamedTagHashOCI(path, tag string) (string, error)

func Load

func Load(url, ver string) (_ billy.Filesystem, err error)

func ModuleOutdir added in v0.6.8

func ModuleOutdir(remote, owner, repo, tag string) string

func OpenRepoSource added in v0.6.8

func OpenRepoSource(path string) (*gogit.Repository, error)

func Read

func Read(url, ver string) (FS billy.Filesystem, err error)

func SetCacheDir added in v0.6.8

func SetCacheDir(basedir string)

func SourceOutdir added in v0.6.8

func SourceOutdir(remote, owner, repo string) string

func SourceOutdirParts added in v0.6.8

func SourceOutdirParts(parts ...string) string

func UpgradePseudoVersion added in v0.6.8

func UpgradePseudoVersion(path, ver string) (s string, err error)

func Write

func Write(remote, owner, repo, tag string, FS billy.Filesystem) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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