Documentation ¶
Index ¶
- type Backup
- func (r *Backup) AllFollower() ([]*github.User, error)
- func (r *Backup) AllFollowing() ([]*github.User, error)
- func (r *Backup) AllGist() ([]*github.Gist, error)
- func (r *Backup) AllIssueByRepo(repo *github.Repository) ([]*github.Issue, error)
- func (r *Backup) AllIssueComment(repo string, id int) ([]*github.IssueComment, error)
- func (r *Backup) AllRepo() ([]*github.Repository, error)
- func (r *Backup) AllStar() ([]*github.StarredRepository, error)
- func (r *Backup) Download(path string) error
- func (r *Backup) DownloadMeta() error
- func (r *Backup) Init() error
- func (r *Backup) IsRepoProcessedRecently(repoName string) bool
- func (r *Backup) Run()
- func (r *Backup) SaveFollower() error
- func (r *Backup) SaveFollowing() error
- func (r *Backup) SaveGist() error
- func (r *Backup) SaveRepoZip(repo *github.Repository)
- func (r *Backup) SaveRepos(enableRepoGit, issuesEnabled, issuesEnabledComment bool) error
- func (r *Backup) SaveStar() error
- func (r *Backup) SelfUser() (*github.User, error)
- func (r *Backup) SetRepoProcessedRecently(repoName string)
- func (r *Backup) Upload(path string) error
- func (r *Backup) UploadMeta() error
- type LastProcessed
- type Meta
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { *Option GithubClient *github.Client // contains filtered or unexported fields }
func (*Backup) AllFollowing ¶ added in v0.2.0
func (*Backup) AllIssueByRepo ¶ added in v0.2.0
func (*Backup) AllIssueComment ¶ added in v0.2.0
func (*Backup) AllStar ¶ added in v0.2.0
func (r *Backup) AllStar() ([]*github.StarredRepository, error)
func (*Backup) DownloadMeta ¶ added in v0.2.0
func (*Backup) IsRepoProcessedRecently ¶ added in v0.2.0
func (*Backup) SaveFollower ¶ added in v0.2.0
func (*Backup) SaveFollowing ¶ added in v0.2.0
func (*Backup) SaveRepoZip ¶ added in v0.2.0
func (r *Backup) SaveRepoZip(repo *github.Repository)
func (*Backup) SetRepoProcessedRecently ¶ added in v0.2.0
func (*Backup) UploadMeta ¶ added in v0.2.0
type LastProcessed ¶ added in v0.2.0
type Meta ¶
type Meta struct { Stars map[string]*LastProcessed `json:"stars"` Followers map[string]*LastProcessed `json:"followers"` Followings map[string]*LastProcessed `json:"followings"` Repos map[string]*LastProcessed `json:"repos"` Gists map[string]*LastProcessed `json:"gists"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.