MCPcopy Index your code
hub / github.com/celer-pkg/celer / PkgCacheConfig

Struct PkgCacheConfig

configs/pkgcache_config.go:15–25  ·  view source on GitHub ↗

================= PkgCacheConfig ================= //

Source from the content-addressed store, hash-verified

13// ================= PkgCacheConfig ================= //
14
15type PkgCacheConfig struct {
16 Dir string `toml:"dir"`
17 Writable bool `toml:"writable"`
18 CacheArtifacts bool `toml:"cache_artifacts"`
19 CacheDownloads bool `toml:"cache_downloads"`
20
21 // Internal field.
22 ctx context.Context
23 artifactConfig *pkgcache.ArtifactConfig
24 repoConfig *pkgcache.RepoConfig
25}
26
27func NewPkgCacheConfig(ctx context.Context, dir string, writable bool) *PkgCacheConfig {
28 return &PkgCacheConfig{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected