sync

package module
v0.0.0-...-601d287 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 18 Imported by: 0

README

ECM sync library

We are using rclone library to perform sync operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EcmCreateConfig

func EcmCreateConfig(cname string) error

EcmCreateConfig creates sync config to be used by ecm (and rclone)

func EcmSync

func EcmSync(cpath, src, dst string, mobile bool) error

EcmSync provides a sync interface between source and destination The code is based on https://rclone.org/ library and relies on sync module

func EcmUpdateConfig

func EcmUpdateConfig(cpath, provider string) error

EcmUpdateConfig update given config file and add appropriate tokens to cloud providers

func SyncFromServer

func SyncFromServer(rurl, dst string) error

helper function to perform sync operation from HTTP end-point

Types

type ServerRecord

type ServerRecord struct {
	ID   string
	Data []byte
}

ServerRecord represents HTTP vault record

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL