Skip to content

Commit cc4abed

Browse files
authored
chore: update client version to 0.2.0 (#3735)
Signed-off-by: Gaius <[email protected]>
1 parent cc687d7 commit cc4abed

32 files changed

+8334
-3892
lines changed

CHANGELOG.md

Lines changed: 8072 additions & 3548 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PROJECT_NAME := "d7y.io/dragonfly/v2"
1616
DFGET_NAME := "dfget"
1717
DFCACHE_NAME := "dfcache"
1818
DFSTORE_NAME := "dfstore"
19-
SEMVER := "2.1.0"
19+
SEMVER := "2.2.0"
2020
VERSION_RELEASE := "1"
2121
PKG := "$(PROJECT_NAME)"
2222
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v '\(/test/\)')
Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache delete\f[R] \[em] delete file from P2P cache system
86
.SH SYNOPSIS
9-
.PP
107
Delete file from P2P cache system.
118
.IP
12-
.nf
13-
\f[C]
14-
dfcache delete <-i cid> [flags]
15-
\f[R]
16-
.fi
9+
.EX
10+
dfcache delete <\-i cid> [flags]
11+
.EE
1712
.SS OPTIONS
1813
.IP
19-
.nf
20-
\f[C]
21-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
22-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
23-
--console whether logger output records to the stdout
24-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
25-
--logdir string Dfcache log directory
26-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
27-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
28-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
29-
--timeout duration Timeout for this cache operation, 0 is infinite
30-
--verbose whether logger use debug level
31-
--workhome string Dfcache working directory
32-
-h, --help help for delete
33-
\f[R]
34-
.fi
14+
.EX
15+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
16+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
17+
\-\-console whether logger output records to the stdout
18+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
19+
\-\-logdir string Dfcache log directory
20+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
21+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
22+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
23+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
24+
\-\-verbose whether logger use debug level
25+
\-\-workhome string Dfcache working directory
26+
\-h, \-\-help help for delete
27+
.EE
3528
.SH SEE ALSO
3629
.IP \[bu] 2
37-
dfcache - the P2P cache client of dragonfly
30+
dfcache \- the P2P cache client of dragonfly
Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache doc\f[R] \[em] generate documents
86
.SH SYNOPSIS
9-
.PP
107
Generate markdown documents for cmd: dfcache.
118
.IP
12-
.nf
13-
\f[C]
9+
.EX
1410
dfcache doc [flags]
15-
\f[R]
16-
.fi
11+
.EE
1712
.SS OPTIONS
1813
.IP
19-
.nf
20-
\f[C]
21-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
22-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
23-
--console whether logger output records to the stdout
24-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
25-
--logdir string Dfcache log directory
26-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
27-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
28-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
29-
--timeout duration Timeout for this cache operation, 0 is infinite
30-
--verbose whether logger use debug level
31-
--workhome string Dfcache working directory
32-
-h, --help help for doc
33-
--path string destination dir of generated markdown documents (default \[dq]./\[dq])
34-
\f[R]
35-
.fi
14+
.EX
15+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
16+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
17+
\-\-console whether logger output records to the stdout
18+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
19+
\-\-logdir string Dfcache log directory
20+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
21+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
22+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
23+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
24+
\-\-verbose whether logger use debug level
25+
\-\-workhome string Dfcache working directory
26+
\-h, \-\-help help for doc
27+
\-\-path string destination dir of generated markdown documents (default \[dq]./\[dq])
28+
.EE
3629
.SH SEE ALSO
3730
.IP \[bu] 2
38-
dfcache - the P2P cache client of dragonfly
31+
dfcache \- the P2P cache client of dragonfly
Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache export\f[R] \[em] export file from P2P cache system
86
.SH SYNOPSIS
9-
.PP
107
Export file from P2P cache system.
118
.IP
12-
.nf
13-
\f[C]
14-
dfcache export <-i cid> <output>|<-O output> [flags]
15-
\f[R]
16-
.fi
9+
.EX
10+
dfcache export <\-i cid> <output>|<\-O output> [flags]
11+
.EE
1712
.SS OPTIONS
1813
.IP
19-
.nf
20-
\f[C]
21-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
22-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
23-
--console whether logger output records to the stdout
24-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
25-
--logdir string Dfcache log directory
26-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
27-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
28-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
29-
--timeout duration Timeout for this cache operation, 0 is infinite
30-
--verbose whether logger use debug level
31-
--workhome string Dfcache working directory
32-
-h, --help help for export
33-
-l, --local only export file from local cache
34-
-O, --output string export file path
35-
\f[R]
36-
.fi
14+
.EX
15+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
16+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
17+
\-\-console whether logger output records to the stdout
18+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
19+
\-\-logdir string Dfcache log directory
20+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
21+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
22+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
23+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
24+
\-\-verbose whether logger use debug level
25+
\-\-workhome string Dfcache working directory
26+
\-h, \-\-help help for export
27+
\-l, \-\-local only export file from local cache
28+
\-O, \-\-output string export file path
29+
.EE
3730
.SH SEE ALSO
3831
.IP \[bu] 2
39-
dfcache - the P2P cache client of dragonfly
32+
dfcache \- the P2P cache client of dragonfly
Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache import\f[R] \[em] import file into P2P cache system
86
.SH SYNOPSIS
9-
.PP
107
Import file into P2P cache system.
118
.IP
12-
.nf
13-
\f[C]
14-
dfcache import <-i cid> <file>|<-I file> [flags]
15-
\f[R]
16-
.fi
9+
.EX
10+
dfcache import <\-i cid> <file>|<\-I file> [flags]
11+
.EE
1712
.SS OPTIONS
1813
.IP
19-
.nf
20-
\f[C]
21-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
22-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
23-
--console whether logger output records to the stdout
24-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
25-
--logdir string Dfcache log directory
26-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
27-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
28-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
29-
--timeout duration Timeout for this cache operation, 0 is infinite
30-
--verbose whether logger use debug level
31-
--workhome string Dfcache working directory
32-
-h, --help help for import
33-
-I, --input string import the given file into P2P network
34-
\f[R]
35-
.fi
14+
.EX
15+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
16+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
17+
\-\-console whether logger output records to the stdout
18+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
19+
\-\-logdir string Dfcache log directory
20+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
21+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
22+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
23+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
24+
\-\-verbose whether logger use debug level
25+
\-\-workhome string Dfcache working directory
26+
\-h, \-\-help help for import
27+
\-I, \-\-input string import the given file into P2P network
28+
.EE
3629
.SH SEE ALSO
3730
.IP \[bu] 2
38-
dfcache - the P2P cache client of dragonfly
31+
dfcache \- the P2P cache client of dragonfly
Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache plugin\f[R] \[em] show plugin
86
.SH SYNOPSIS
9-
.PP
107
Show the plugin details of dragonfly.
118
.IP
12-
.nf
13-
\f[C]
9+
.EX
1410
dfcache plugin [flags]
15-
\f[R]
16-
.fi
11+
.EE
1712
.SS OPTIONS
1813
.IP
19-
.nf
20-
\f[C]
21-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
22-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
23-
--console whether logger output records to the stdout
24-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
25-
--logdir string Dfcache log directory
26-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
27-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
28-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
29-
--timeout duration Timeout for this cache operation, 0 is infinite
30-
--verbose whether logger use debug level
31-
--workhome string Dfcache working directory
32-
-h, --help help for plugin
33-
\f[R]
34-
.fi
14+
.EX
15+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
16+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
17+
\-\-console whether logger output records to the stdout
18+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
19+
\-\-logdir string Dfcache log directory
20+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
21+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
22+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
23+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
24+
\-\-verbose whether logger use debug level
25+
\-\-workhome string Dfcache working directory
26+
\-h, \-\-help help for plugin
27+
.EE
3528
.SH SEE ALSO
3629
.IP \[bu] 2
37-
dfcache - the P2P cache client of dragonfly
30+
dfcache \- the P2P cache client of dragonfly
Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
1-
.\" Automatically generated by Pandoc 2.13
1+
.\" Automatically generated by Pandoc 3.6.1
22
.\"
3-
.TH "DFCACHE" "1" "" "Version v2.1.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
4-
.hy
3+
.TH "DFCACHE" "1" "" "Version v2.2.0" "Frivolous \[lq]Dfcache\[rq] Documentation"
54
.SH NAME
6-
.PP
75
\f[B]dfcache stat\f[R] \[em] stat checks if a file exists in P2P cache
86
system
97
.SH SYNOPSIS
10-
.PP
118
Stat checks if a file exists in P2P cache system.
129
.IP
13-
.nf
14-
\f[C]
15-
dfcache stat <-i cid> [flags]
16-
\f[R]
17-
.fi
10+
.EX
11+
dfcache stat <\-i cid> [flags]
12+
.EE
1813
.SS OPTIONS
1914
.IP
20-
.nf
21-
\f[C]
22-
-i, --cid string content or cache ID, e.g. sha256 digest of the content
23-
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
24-
--console whether logger output records to the stdout
25-
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
26-
--logdir string Dfcache log directory
27-
--pprof-port int listen port for pprof, 0 represents random port (default -1)
28-
--service-name string name of the service for tracer (default \[dq]dragonfly-dfcache\[dq])
29-
-t, --tag string different tags for the same cid will be recognized as different files in P2P network
30-
--timeout duration Timeout for this cache operation, 0 is infinite
31-
--verbose whether logger use debug level
32-
--workhome string Dfcache working directory
33-
-h, --help help for stat
34-
-l, --local only check task exists locally, and don\[aq]t check other peers in P2P network
35-
\f[R]
36-
.fi
15+
.EX
16+
\-i, \-\-cid string content or cache ID, e.g. sha256 digest of the content
17+
\-\-config string the path of configuration file with yaml extension name, default is /etc/dragonfly/dfcache.yaml, it can also be set by env var: DFCACHE_CONFIG
18+
\-\-console whether logger output records to the stdout
19+
\-\-jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
20+
\-\-logdir string Dfcache log directory
21+
\-\-pprof\-port int listen port for pprof, 0 represents random port (default \-1)
22+
\-\-service\-name string name of the service for tracer (default \[dq]dragonfly\-dfcache\[dq])
23+
\-t, \-\-tag string different tags for the same cid will be recognized as different files in P2P network
24+
\-\-timeout duration Timeout for this cache operation, 0 is infinite
25+
\-\-verbose whether logger use debug level
26+
\-\-workhome string Dfcache working directory
27+
\-h, \-\-help help for stat
28+
\-l, \-\-local only check task exists locally, and don\[aq]t check other peers in P2P network
29+
.EE
3730
.SH SEE ALSO
3831
.IP \[bu] 2
39-
dfcache - the P2P cache client of dragonfly
32+
dfcache \- the P2P cache client of dragonfly

0 commit comments

Comments
 (0)