| @@ -1,7 +1,8 @@ | |||||
| package event | package event | ||||
| const ( | const ( | ||||
| UPDATE_CACHE_OP_UNTEMP = "UnTemp" | |||||
| UPDATE_CACHE_UNTEMP = "UnTemp" | |||||
| UPDATE_CACHE_CREATE_TEMP = "CreateTemp" | |||||
| ) | ) | ||||
| const ( | const ( | ||||
| @@ -1,6 +1,7 @@ | |||||
| package ipfs | package ipfs | ||||
| import ( | import ( | ||||
| "context" | |||||
| "fmt" | "fmt" | ||||
| "io" | "io" | ||||
| @@ -61,6 +62,10 @@ func (fs *IPFS) Unpin(hash string) error { | |||||
| return fs.shell.Unpin(hash) | 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 { | type ipfsWriter struct { | ||||
| writer *io.PipeWriter | writer *io.PipeWriter | ||||
| finished chan any | finished chan any | ||||