Documentation ¶
Index ¶
Constants ¶
const EndAck string = "DONE"
EndAck signals to the user that the sync process is done
const ErrorAck string = "ERROR"
ErrorAck signals to the user that an error occurred
const IsDirectory uint64 = 040000
IsDirectory is a constant that can be used to determine whether a file is a folder
const IsRegularFile uint64 = 0100000
IsRegularFile is a constant that can be used to determine whether a file is a regular file
const IsSymbolicLink uint64 = 0120000
IsSymbolicLink is a constant that can be used to determine whether a file is a symbolic link
const StartAck string = "START"
StartAck signals to the user that the sync process is starting
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SyncConfig ¶
type SyncConfig struct { Kubectl *kubernetes.Clientset Pod *k8sv1.Pod Container *k8sv1.Container WatchPath string DestPath string ExcludePaths []string DownloadExcludePaths []string UploadExcludePaths []string // contains filtered or unexported fields }
SyncConfig holds the necessary information for the syncing process
func (*SyncConfig) Error ¶ added in v0.2.0
func (s *SyncConfig) Error(err error)
Error handles a sync error with context
func (*SyncConfig) Logf ¶
func (s *SyncConfig) Logf(format string, args ...interface{})
Logf prints the given information to the synclog with context data
func (*SyncConfig) Logln ¶
func (s *SyncConfig) Logln(line interface{})
Logln prints the given information to the synclog with context data