Changes

Jump to navigation Jump to search
Line 18: Line 18:  
== Record types ==
 
== Record types ==
   −
* Push changes of Sugar Network resource's properties.
+
Push changes of Sugar Network resource's properties.
 
:* {{Code|cmd: sn_push}};
 
:* {{Code|cmd: sn_push}};
 
:* {{Code|content_type: records}};
 
:* {{Code|content_type: records}};
Line 25: Line 25:  
:* {{Code|diff}}, dictionary of {{Code|<prop_name>: {"value": <value>, "mtime": <mtime>}}} with changed property values.
 
:* {{Code|diff}}, dictionary of {{Code|<prop_name>: {"value": <value>, "mtime": <mtime>}}} with changed property values.
   −
* '''ACK''' packet:
+
'''ACK''' packet:
 
:* {{Code|type}}: {{Code|ack}}
 
:* {{Code|type}}: {{Code|ack}}
 
:* {{Code|src}}: master's identity
 
:* {{Code|src}}: master's identity
Line 32: Line 32:  
:* {{Code|pull_sequence}}: Sequence after merging original PUSH packet
 
:* {{Code|pull_sequence}}: Sequence after merging original PUSH packet
   −
* Pull Sugar Network data.
+
Pull Sugar Network data.
 
:* {{Code|cmd: sn_pull}};
 
:* {{Code|cmd: sn_pull}};
 
:* {{Code|sequence}}: sequence to pull.
 
:* {{Code|sequence}}: sequence to pull.
   −
* Pull files from shared directory.
+
Pull files from shared directory.
 
:* {{Code|cmd: files_pull}};
 
:* {{Code|cmd: files_pull}};
 
:* {{Code|directory}}, synchronized directory to pull;
 
:* {{Code|directory}}, synchronized directory to pull;
 
:* {{Code|sequence}}, sequence to pull.
 
:* {{Code|sequence}}, sequence to pull.
 +
 +
Push a file from shared directory.
 +
:* {{Code|cmd: files_push}};
 +
:* {{Code|directory}}, synchronized directory;
 +
:* {{Code|path}}, pushed file path relative to {{Code|directory}};
 +
 +
Push deleted file from shared directory.
 +
:* {{Code|cmd: files_delete}};
 +
:* {{Code|directory}}, synchronized directory;
 +
:* {{Code|path}}, pushed file path relative to {{Code|directory}};
 +
 +
Commit recently pushed shared files.
 +
:* {{Code|cmd: files_commit}};
 +
:* {{Code|directory}}, synchronized directory;
 +
:* {{Code|sequence}}, pushed sequence.

Navigation menu