This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
common
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
完成节点检查Cache的任务
pull/1/head
Sydonian
2 years ago
parent
4d94b9c11b
commit
1752511c3e
2 changed files
with
7 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
consts/event/event.go
+5
-0
utils/ipfs/ipfs.go
+ 2
- 1
consts/event/event.go
View File
@@ -1,7 +1,8 @@
package event
const (
UPDATE_CACHE_OP_UNTEMP = "UnTemp"
UPDATE_CACHE_UNTEMP = "UnTemp"
UPDATE_CACHE_CREATE_TEMP = "CreateTemp"
)
const (
+ 5
- 0
utils/ipfs/ipfs.go
View File
@@ -1,6 +1,7 @@
package ipfs
import (
"context"
"fmt"
"io"
@@ -61,6 +62,10 @@ func (fs *IPFS) Unpin(hash string) error {
return fs.shell.Unpin(hash)
}
func (fs *IPFS) GetPinnedFiles() (map[string]shell.PinInfo, error) {
return fs.shell.PinsOfType(context.Background(), shell.RecursivePin)
}
type ipfsWriter struct {
writer *io.PipeWriter
finished chan any
Write
Preview
Loading…
Cancel
Save