File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,21 @@ public interface IPinApi
42
42
/// </returns>
43
43
Task < IEnumerable < Cid > > ListAsync ( CancellationToken cancel = default ) ;
44
44
45
+ /// <summary>
46
+ /// List all the objects pinned to local storage.
47
+ /// </summary>
48
+ /// <param name="type">
49
+ /// The type of pin to list.
50
+ /// </param>
51
+ /// <param name="cancel">
52
+ /// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
53
+ /// </param>
54
+ /// <returns>
55
+ /// A task that represents the asynchronous operation. The task's value
56
+ /// is a sequence of <see cref="Cid"/>.
57
+ /// </returns>
58
+ Task < IEnumerable < Cid > > ListAsync ( PinType type , CancellationToken cancel = default ) ;
59
+
45
60
/// <summary>
46
61
/// Unpin an object.
47
62
/// </summary>
Original file line number Diff line number Diff line change
1
+ namespace Ipfs . CoreApi
2
+ {
3
+ /// <summary>
4
+ /// The type of pin.
5
+ /// </summary>
6
+ /// <remarks>
7
+ /// See <see href="https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-pin-ls">type</see>
8
+ /// for more information.
9
+ /// </remarks>
10
+ public enum PinType
11
+ {
12
+ /// <summary>
13
+ /// Direct pin.
14
+ /// </summary>
15
+ Direct ,
16
+ /// <summary>
17
+ /// Indirect pin.
18
+ /// </summary>
19
+ Indirect ,
20
+ /// <summary>
21
+ /// Recursive pin.
22
+ /// </summary>
23
+ Recursive ,
24
+ /// <summary>
25
+ /// All pins.
26
+ /// </summary>
27
+ All
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments