Documentation
¶
Overview ¶
Package sync provides functions to copy data from the exporter system to the importer system (where this application is running).
While there are two fundamentally different ways to achieve this synchronization (regular sync with cron style and final sync based on a fixed timestamp), the technical level keeps being the same -- only the timing makes the difference between these two.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsyncSyncer ¶
type RsyncSyncer struct {
// contains filtered or unexported fields
}
RsyncSyncer allows copying data from a remote host.
func NewRsyncSyncer ¶
func NewRsyncSyncer(host string, user string, privateKeyPath string, client exportDoguApiClient, provider systemInfoProvider, excludePattern []configuration.ExcludePattern, doguVolumeBasePath string, excludedDogus []string, verbose bool) *RsyncSyncer
NewRsyncSyncer creates a new RsyncSyncer instance.
func (*RsyncSyncer) SyncData ¶
func (rs *RsyncSyncer) SyncData(ctx context.Context) error
SyncData gets the exporting systems system info and synchronizes the volume data of every dogu errors are collected and returned
func (*RsyncSyncer) SyncDoguDir ¶
func (rs *RsyncSyncer) SyncDoguDir(_ context.Context, port int, source, destination string, excludePatterns []string) error
SyncDoguDir copies dogu volume data from a remote Cloudogu EcoSystem instance.