Skip to main content

io.edgehog.devicemanager.fileTransfer.Capabilities v0.1

File transfer capabilities the Device supports.

Features and capabilities the Device implementation or platform supports and is able to receive from Astarte.

About​

This interface is of type properties and is owned by the device, meaning that it is the device which initiates the data flow. Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.

Mappings​

The interface has the following mappings:

  • /transfer/unixPermissions with boolean type. Support unix file mode, user id and group id.
  • /transfer/serverToDevice/targets with stringarray type. Supported destination and sources for the transfers.
  • /transfer/deviceToServer/targets with stringarray type. Supported destination and sources for the transfers.
  • /deviceToServer/%{target}/encodings with stringarray type. Supported compressions and archive algorithms for the target.
  • /serverToDevice/%{target}/encodings with stringarray type. Supported compressions and archive algorithms for the target.

/transfer/unixPermissions​

Support unix file mode, user id and group id.

Flag to support setting the file mode, user and group ownership of a transferred file in a unix system.

This endpoint accepts values of type boolean: either true or false, adhering to JSON boolean type.

The value of the property cannot be unset.

/transfer/serverToDevice/targets​

Supported destination and sources for the transfers.

List of sources and destinations that the device can handle, possible values are: [storage, streaming, filesystem]

This endpoint accepts values of type stringarray: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.

The value of the property cannot be unset.

/transfer/deviceToServer/targets​

Supported destination and sources for the transfers.

List of sources and destinations that the device can handle, possible values are: [storage, streaming, filesystem]

This endpoint accepts values of type stringarray: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.

The value of the property cannot be unset.

/deviceToServer/%{target}/encodings​

Supported compressions and archive algorithms for the target.

List of encoding formats supported by the device for this target, possible values are: [gz, lz4, tar, tar.gz, tar.lz4].

This endpoint accepts values of type stringarray: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.

The endpoint is parametric and target can be replaced with any valid string to send data on specialized paths.

The value of the property cannot be unset.

/serverToDevice/%{target}/encodings​

Supported compressions and archive algorithms for the target.

List of encoding formats supported by the device for this target, possible values are: [gz, lz4, tar, tar.gz, tar.lz4].

This endpoint accepts values of type stringarray: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.

The endpoint is parametric and target can be replaced with any valid string to send data on specialized paths.

The value of the property cannot be unset.