Hi, I would like to incorporate rclones functionality into a larger project. Ideally this would be done by statically linking to rclones code base rather than making subprocess calls.
Can anyone provide advice on how to go about this?
Are there any foreseeable hurdles?
I have to admit I am very new to GoLang but am certainly not new to programming. I know various languages and have learned them all by jumping in head first.
As for go - it should be very similar to java or C#. A high abstraction language in other words, and thus should be fairly quick to pick up for someone who knows how to code in general.
You can use the functions in operations - these are the high level functions wrapping the backend functionality.
Provided you don't mind using the rclone config file it is pretty easy. I don't guarantee stability of the internal rclone interfaces but in general they are pretty stable.
You can also run rclone rcd to run an rclone API server and use the rclone API - I try not to break the backwards compatibility of the API.
Thanks, I want to avoid having to manage subprocesses and awkward interprocess communication via a network interface.
What would be required to manage the rclone configuration? I haven't gotten to where that is accessed.
I need to be able to configure it without an external file.