You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/namespaces/ipfs/v1alpha1/ipfs_cli.go
+62-51Lines changed: 62 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -20,50 +20,55 @@ var (
20
20
funcGetGeneratedCommands() *core.Commands {
21
21
returncore.NewCommands(
22
22
ipfsRoot(),
23
-
ipfsIpfs(),
23
+
ipfsPin(),
24
24
ipfsVolume(),
25
25
ipfsVolumeCreate(),
26
26
ipfsVolumeGet(),
27
27
ipfsVolumeList(),
28
28
ipfsVolumeUpdate(),
29
29
ipfsVolumeDelete(),
30
-
ipfsIpfsAddURL(),
31
-
ipfsIpfsAddCid(),
32
-
ipfsIpfsGetPinID(),
33
-
ipfsIpfsListPins(),
34
-
ipfsIpfsRmPinID(),
30
+
ipfsPinCreateByURL(),
31
+
ipfsPinCreateByCid(),
32
+
ipfsPinGet(),
33
+
ipfsPinList(),
34
+
ipfsPinDelete(),
35
35
)
36
36
}
37
37
funcipfsRoot() *core.Command {
38
38
return&core.Command{
39
-
Short: `Pinning service ipfs API for Scaleway`,
40
-
Long: `Ipfs pinning service v1alpha1.`,
39
+
Short: `IPFS Pinning service API`,
40
+
Long: `IPFS Pinning service API.`,
41
41
Namespace: "ipfs",
42
42
}
43
43
}
44
44
45
-
funcipfsIpfs() *core.Command {
45
+
funcipfsPin() *core.Command {
46
46
return&core.Command{
47
-
Short: `add content by cid or url and manage pins`,
48
-
Long: `add content by cid or url and manage pins.`,
47
+
Short: `Manage your pins (create-by-*, delete, list by volume ID)`,
48
+
Long: `A pin is an abstract object that holds a Content Identifier (CID). It is defined that during the lifespan of a pin, the CID (and all sub-CIDs) must be hosted by the service
49
+
It is possible that many pins target the same CID, regardless of the user.
50
+
`,
49
51
Namespace: "ipfs",
50
-
Resource: "ipfs",
52
+
Resource: "pin",
51
53
}
52
54
}
53
55
54
56
funcipfsVolume() *core.Command {
55
57
return&core.Command{
56
-
Short: `manage volumes`,
57
-
Long: `manage volumes.`,
58
+
Short: `Manage your volumes (create, delete, list by Project ID)`,
59
+
Long: `A volume is bucket of pins. It is similar to an Object Storage bucket. Volumes are useful to gather pins with similar lifespans
60
+
All pins must be attached to a volume. And all volumes must be attached to a Project ID.
61
+
`,
58
62
Namespace: "ipfs",
59
63
Resource: "volume",
60
64
}
61
65
}
62
66
63
67
funcipfsVolumeCreate() *core.Command {
64
68
return&core.Command{
65
-
Short: `Create volume`,
66
-
Long: `Create volume.`,
69
+
Short: `Create a new volume from a Project ID. Volume is identified by an ID and used to host pin references`,
70
+
Long: `Volume is personal (at least to your organization) even if IPFS blocks and CID are available to anyone.
71
+
Should be the first command you made because every pin must be attached to a volume.`,
0 commit comments