Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompilePaths ¶
func CompilePaths(excludePaths []string) (gitignore.IgnoreParser, error)
CompilePaths compiles the exclude paths into an ignore parser
func RecursiveTar ¶
func RecursiveTar(basePath, relativePath string, writtenFiles map[string]*FileInformation, tw *tar.Writer, ignoreMatcher gitignore.IgnoreParser) error
RecursiveTar runs recursively over the given path and basepath and tars the found files and folders
Types ¶
type FileInformation ¶
type FileInformation struct {
Name string
Size int64
Mtime int64
MtimeNano int64
IsSymbolicLink bool
IsDirectory bool
}
FileInformation describes a path or file that is synced either in the remote container or locally
func (*FileInformation) Event ¶
func (f *FileInformation) Event() notify.Event
Event implements interface
type Options ¶
type Options struct {
ExcludePaths []string
DownloadExcludePaths []string
UploadExcludePaths []string
UpstreamLimit int64
DownstreamLimit int64
Verbose bool
DownloadOnInitialSync bool
// These channels can be used to listen for certain sync events
DownstreamInitialSyncDone chan bool
UpstreamInitialSyncDone chan bool
SyncDone chan bool
SyncError chan error
Log log.Logger
}
Options holds the sync options
type Symlink ¶
type Symlink struct {
SymlinkPath string
TargetPath string
IsDir bool
// contains filtered or unexported fields
}
Symlink holds information about a symlink
func NewSymlink ¶
NewSymlink creates a new symlink object
type Sync ¶
Sync holds the necessary information for the syncing process
func (*Sync) InitDownstream ¶
func (s *Sync) InitDownstream(reader io.ReadCloser, writer io.WriteCloser) error
InitDownstream inits the downstream
func (*Sync) InitUpstream ¶
func (s *Sync) InitUpstream(reader io.ReadCloser, writer io.WriteCloser) error
InitUpstream inits the upstream
Click to show internal directories.
Click to hide internal directories.