(source RemoteNode, dir string)
| 16 | } |
| 17 | |
| 18 | func NewCacheNode(source RemoteNode, dir string) *CacheNode { |
| 19 | return &CacheNode{ |
| 20 | baseNode: &baseNode{ |
| 21 | dir: filepath.Join(dir, remoteCacheDir), |
| 22 | }, |
| 23 | source: source, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (node *CacheNode) Read() ([]byte, error) { |
| 28 | return os.ReadFile(node.Location()) |
no outgoing calls
no test coverage detected
searching dependent graphs…