================= PkgCacheConfig ================= //
| 13 | // ================= PkgCacheConfig ================= // |
| 14 | |
| 15 | type 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 | |
| 27 | func NewPkgCacheConfig(ctx context.Context, dir string, writable bool) *PkgCacheConfig { |
| 28 | return &PkgCacheConfig{ |
nothing calls this directly
no outgoing calls
no test coverage detected