installers.sysadmintools.rclone #
rclone
To get started
import freeflowuniverse.crystallib.installers.something. rclone
mut installer:= rclone.get()!
installer.start()!
example heroscript
!!rclone.install
homedir: '/home/user/rclone'
username: 'admin'
password: 'secretpassword'
title: 'Some Title'
host: 'localhost'
port: 8888
Constants #
const version = '1.67.0'
fn get #
fn get(args_ ArgsGet) !&RClone
fn heroscript_default #
fn heroscript_default() !string
fn play #
fn play(args_ PlayArgs) !
fn switch #
fn switch(name string)
switch instance to be used for rclone
enum RCloneCat #
enum RCloneCat {
b2
s3
ftp
}
struct ArgsGet #
@[params]
struct ArgsGet {
pub mut:
name string
}
///////FACTORY
struct InstallArgs #
@[params]
struct InstallArgs {
pub mut:
reset bool
}
struct PlayArgs #
@[params]
struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
struct RClone #
struct RClone {
pub mut:
name string = 'default'
cat RCloneCat
s3_account string
s3_key string
s3_secret string
hard_delete bool // hard delete a file when delete on server, not just hide
endpoint string
}
THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
fn (RClone) destroy #
fn (mut self RClone) destroy() !
fn (RClone) install #
fn (mut self RClone) install(args InstallArgs) !
fn (RClone) reload #
fn (mut self RClone) reload() !
load from disk and make sure is properly intialized