Decentralized Cloud Storage
Resources

Import an Access to an Object

Importing an access is done using the import command.

Import from the file

Windows
Linux
macOS
Windows
./uplink.exe import cheesecake cheesecake.access
Linux
uplink import cheesecake ~/cheesecake.access
macOS
uplink import cheesecake ~/cheesecake.access

This should give you the following output:

Import from the input

Windows
Linux
macOS
Windows
./uplink.exe import cheesecake 14dfgh....qr
Linux
uplink import cheesecake 14dfgh....qr
macOS
uplink import cheesecake 14dfgh....qr

Import from the input to the default access

Windows
Linux
macOS
Windows
./uplink.exe import 14dfgh....qr
Linux
uplink import 14dfgh....qr
macOS
uplink import 14dfgh....qr

Check list of Access grants

You can list your available accesses using:

Windows
Linux
macOS
Windows
./uplink.exe access list
Linux
uplink access list
macOS
uplink access list
=========== ACCESSES LIST: name / satellite ================================
cheesecake / [email protected]:7777
pumpkin-pie / [email protected]:7777
tarte / [email protected]:7777

To get more information on an access use the inspect command:

Windows
Linux
macOS
Windows
./uplink.exe access inspect cheesecake
Linux
uplink access inspect cheesecake
macOS
uplink access inspect cheesecake
{
"satellite_addr": "[email protected]:7777",
"encryption_access": {
"default_path_cipher": "ENC_AESGCM"
},
"api_key": "...",
"macaroon": {
"head": "...",
"caveats": [
{
"not_after": "2021-04-17T00:00:00Z",
"not_before": "2021-04-18T00:00:00Z",
"nonce": "..."
}
],
"tail": "..."
}
}

There is no command to delete an access. You can delete an access directly in your configuration file.

How to use an Access grant with commands

You can now use this access setting the --access flag. For example, to copy the shared object to your current directory you would use:

Windows
Linux
macOS
Windows
./uplink.exe --access cheesecake cp sj://cakes/cheesecake.jpg .
Linux
uplink --access cheesecake cp sj://cakes/cheesecake.jpg .
macOS
uplink --access cheesecake cp sj://cakes/cheesecake.jpg .