1 | 'use strict'
|
---|
2 |
|
---|
3 | const ls = require('./ls.js')
|
---|
4 | const get = require('./get.js')
|
---|
5 | const put = require('./put.js')
|
---|
6 | const rm = require('./rm.js')
|
---|
7 | const verify = require('./verify.js')
|
---|
8 | const { clearMemoized } = require('./lib/memoization.js')
|
---|
9 | const tmp = require('./lib/util/tmp.js')
|
---|
10 | const index = require('./lib/entry-index.js')
|
---|
11 |
|
---|
12 | module.exports.index = {}
|
---|
13 | module.exports.index.compact = index.compact
|
---|
14 | module.exports.index.insert = index.insert
|
---|
15 |
|
---|
16 | module.exports.ls = ls
|
---|
17 | module.exports.ls.stream = ls.stream
|
---|
18 |
|
---|
19 | module.exports.get = get
|
---|
20 | module.exports.get.byDigest = get.byDigest
|
---|
21 | module.exports.get.sync = get.sync
|
---|
22 | module.exports.get.sync.byDigest = get.sync.byDigest
|
---|
23 | module.exports.get.stream = get.stream
|
---|
24 | module.exports.get.stream.byDigest = get.stream.byDigest
|
---|
25 | module.exports.get.copy = get.copy
|
---|
26 | module.exports.get.copy.byDigest = get.copy.byDigest
|
---|
27 | module.exports.get.info = get.info
|
---|
28 | module.exports.get.hasContent = get.hasContent
|
---|
29 | module.exports.get.hasContent.sync = get.hasContent.sync
|
---|
30 |
|
---|
31 | module.exports.put = put
|
---|
32 | module.exports.put.stream = put.stream
|
---|
33 |
|
---|
34 | module.exports.rm = rm.entry
|
---|
35 | module.exports.rm.all = rm.all
|
---|
36 | module.exports.rm.entry = module.exports.rm
|
---|
37 | module.exports.rm.content = rm.content
|
---|
38 |
|
---|
39 | module.exports.clearMemoized = clearMemoized
|
---|
40 |
|
---|
41 | module.exports.tmp = {}
|
---|
42 | module.exports.tmp.mkdir = tmp.mkdir
|
---|
43 | module.exports.tmp.withTmp = tmp.withTmp
|
---|
44 |
|
---|
45 | module.exports.verify = verify
|
---|
46 | module.exports.verify.lastRun = verify.lastRun
|
---|