Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepo ¶
func CloneRepo(repo *github.Repository, repoPath string, config Config) error
CloneRepo clones an individual repo to a local path
func FilteredRepos ¶
func FilteredRepos(config Config) ([]*github.Repository, error)
FilteredRepos loads a list of repositories and removes ones that match a filter
func HandleRepos ¶
func HandleRepos(config Config, repos []*github.Repository) error
HandleRepos handles all repos, updating or cloning as necessary
func UpdateRepo ¶
UpdateRepo updates an existing repo
Types ¶
type Config ¶
type Config struct { AuthToken string `json:"auth_token"` TargetPath string `json:"target_path"` Excludes []string `json:"excludes"` }
Config definition for syncgithub
func LoadConfig ¶
LoadConfig reads the config from a file
func (*Config) GithubClient ¶
GithubClient creates a Github Client from the provided OAuth token
Click to show internal directories.
Click to hide internal directories.