sync

package
v0.0.0-...-89f11bb Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downstream

type Downstream struct {
	// RemotePath is the path to watch for changes
	RemotePath string

	// TempDownloadPath is the temporary download file path
	TempDownloadPath string
	// contains filtered or unexported fields
}

Downstream is the implementation for the downstream server

func (*Downstream) Changes

func (d *Downstream) Changes(excluded *remote.Excluded, stream remote.Downstream_ChangesServer) error

Changes retrieves all changes from the

func (*Downstream) Compress

func (d *Downstream) Compress(stream remote.Downstream_CompressServer) error

Compress compresses the given files into a tar archive

func (*Downstream) Download

func (d *Downstream) Download(empty *remote.Empty, stream remote.Downstream_DownloadServer) error

Download sends the file at the temp download location to the client

type Upstream

type Upstream struct {
	UploadPath string
}

Upstream is the implementation for the upstream server

func (*Upstream) Remove

func (u *Upstream) Remove(stream remote.Upstream_RemoveServer) error

Remove implements the server

func (*Upstream) Upload

func (u *Upstream) Upload(stream remote.Upstream_UploadServer) error

Upload implements the server upload interface and writes all the data received to a temporary file

Jump to

Keyboard shortcuts

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