cache

package
v0.6.8-beta.13 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: BSD-3-Clause Imports: 16 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 FetchRepoSource added in v0.6.8

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

func GetLatestBranch

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

func GetLatestTag added in v0.6.8

func GetLatestTag(path string, pre bool) (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 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