Documentation ¶
Index ¶
- func AutoSync(file string) error
- func BackupFiles(syncFiles SyncInfos, outputPath string) error
- func ReplaceDirFromSign(dirPath string, homeDir string, confDir string) (string, bool)
- func ReplaceDirToSign(filePath string, homeDir string, confDir string) (string, bool)
- func RestoreFiles(bkpFilePath string, restoreDir string) error
- type Backups
- type Client
- type FileInfo
- type GistClient
- type GitLabClient
- type Snippet
- type SyncInfo
- type SyncInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFiles ¶
func ReplaceDirFromSign ¶
func ReplaceDirToSign ¶
func RestoreFiles ¶
Types ¶
type GistClient ¶
GistClient manages communication with Gist
func (GistClient) GetSnippet ¶
func (g GistClient) GetSnippet() (*Snippet, error)
GetSnippet returns the remote snippet
func (GistClient) UploadSnippet ¶
func (g GistClient) UploadSnippet(content string) error
UploadSnippet uploads local snippets to Gist
type GitLabClient ¶
type GitLabClient struct { Client *gitlab.Client ID int }
GitLabClient manages communication with GitLab Snippets
func (GitLabClient) GetSnippet ¶
func (g GitLabClient) GetSnippet() (*Snippet, error)
GetSnippet returns the remote snippet
func (GitLabClient) UploadSnippet ¶
func (g GitLabClient) UploadSnippet(content string) error
UploadSnippet uploads local snippets to GitLab Snippet
Click to show internal directories.
Click to hide internal directories.