Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.3.1
Client manages communication with the remote Snippet repository
func NewGistClient ¶ added in v0.3.1
NewGistClient returns GistClient
func NewGitLabClient ¶ added in v0.3.1
NewGitLabClient returns GitLabClient
func NewSyncClient ¶ added in v0.3.1
NewSyncClient returns Client
type GistClient ¶ added in v0.3.1
GistClient manages communication with Gist
func (GistClient) GetSnippet ¶ added in v0.3.1
func (g GistClient) GetSnippet() (*Snippet, error)
GetSnippet returns the remote snippet
func (GistClient) UploadSnippet ¶ added in v0.3.1
func (g GistClient) UploadSnippet(content string) error
UploadSnippet uploads local snippets to Gist
type GitLabClient ¶ added in v0.3.1
type GitLabClient struct { Client *gitlab.Client ID int }
GitLabClient manages communication with GitLab Snippets
func (GitLabClient) GetSnippet ¶ added in v0.3.1
func (g GitLabClient) GetSnippet() (*Snippet, error)
GetSnippet returns the remote snippet
func (GitLabClient) UploadSnippet ¶ added in v0.3.1
func (g GitLabClient) UploadSnippet(content string) error
UploadSnippet uploads local snippets to GitLab Snippet
Click to show internal directories.
Click to hide internal directories.