Documentation ¶
Overview ¶
Package rsync adds file server and copying client to copy files between glow driver and agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchFilesTo ¶
Types ¶
type FileHash ¶
type FileHash struct { FullPath string `json:"path,omitempty"` TargetFolder string `json:"targetFolder,omitempty"` File string `json:"file,omitempty"` Hash uint32 `json:"hash,omitempty"` }
func GenerateFileHash ¶
type FileResource ¶
type ListFileResult ¶
type ListFileResult struct {
Files []FileHash `json:"files,omitempty"`
}
type RsyncServer ¶
type RsyncServer struct { Ip string Port int RelatedFiles []FileResource // contains filtered or unexported fields }
func NewRsyncServer ¶
func NewRsyncServer(relatedFiles ...FileResource) (*RsyncServer, error)
func (*RsyncServer) StartRsyncServer ¶
func (rs *RsyncServer) StartRsyncServer(listenOn string)
go start a http server locally that will respond predictably to ranged requests
Click to show internal directories.
Click to hide internal directories.