Documentation
¶
Index ¶
- func Copy(source string, dest string, hardCopy bool, verbose bool, ignore ...string) error
- func DownloadFile(filepath string, downloadUrl string) (err error)
- func ForceRename(src string, dest string) error
- func IgnoreDestination(c *WatchFileContext, eventPath string)
- func ParseManifest(fileUri string) (*models.PluginManifest, error)
- func StartGoCMS(destDir string, goCMSDevMode bool, doneChan chan bool)
- func Unzip(src, dest string) error
- func WatchFilesForCarbonCopy(src string, dest string, verbose bool, ignore ...string)
- type CopyContext
- type FilePathHelper
- func (cd *FilePathHelper) AddBackupDirPath(f string) string
- func (cd *FilePathHelper) AddStagingDirPath(f string) string
- func (cd *FilePathHelper) AddWorkingDirPath(f string) string
- func (cd *FilePathHelper) BackupToWorking(fileName string) error
- func (cd *FilePathHelper) StagingToWorking(fileName string) error
- func (cd *FilePathHelper) WorkingToBackup(fileName string) error
- type WatchFileContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func ForceRename ¶
func IgnoreDestination ¶
func IgnoreDestination(c *WatchFileContext, eventPath string)
func ParseManifest ¶
func ParseManifest(fileUri string) (*models.PluginManifest, error)
func StartGoCMS ¶
start goCMS
Types ¶
type CopyContext ¶
type FilePathHelper ¶
type FilePathHelper struct {
Current string
}
func NewFilePathHelper ¶
func NewFilePathHelper(p string) FilePathHelper
func (*FilePathHelper) AddBackupDirPath ¶
func (cd *FilePathHelper) AddBackupDirPath(f string) string
func (*FilePathHelper) AddStagingDirPath ¶
func (cd *FilePathHelper) AddStagingDirPath(f string) string
func (*FilePathHelper) AddWorkingDirPath ¶
func (cd *FilePathHelper) AddWorkingDirPath(f string) string
func (*FilePathHelper) BackupToWorking ¶
func (cd *FilePathHelper) BackupToWorking(fileName string) error
func (*FilePathHelper) StagingToWorking ¶
func (cd *FilePathHelper) StagingToWorking(fileName string) error
func (*FilePathHelper) WorkingToBackup ¶
func (cd *FilePathHelper) WorkingToBackup(fileName string) error
type WatchFileContext ¶
type WatchFileContext struct { Verbose bool SourceBase string DestinationBase string IgnorePaths []string DoneChan chan bool ChangeTimeoutMap map[string]time.Time Chmod func(c *WatchFileContext, eventPath string) Removed func(c *WatchFileContext, eventPath string) Create func(c *WatchFileContext, eventPath string) Rename func(c *WatchFileContext, eventPath string) Write func(c *WatchFileContext, eventPath string) }
func (*WatchFileContext) Watch ¶
func (c *WatchFileContext) Watch()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.