Documentation ¶
Index ¶
- Constants
- Variables
- func GitOrig2Http(url string) string
- func GitOrig2Url(url string) string
- func GitUrl2Orig(url string) string
- func Init(cfg config.GitConfig, repos map[string]*config.GitRepository) error
- func InitGitLabApi(conf config.GitLab)
- type GitAuthor
- type GitBlobLog
- type GitCommit
- type GitCommitLog
- type GitEvents
- type GitTreeLog
- type Repository
- type SSHConfig
- type UpdateHistory
- type UserInfo
Constants ¶
View Source
const ( USERAPI_PREFIX = "/api/v3/users/" USERAPI_POSTFIX = "/?private_token=" )
View Source
const (
DEFAULT_BRANCH = "master"
)
Variables ¶
View Source
var (
Repositories = make(map[string]*Repository, 0)
)
Functions ¶
func GitOrig2Http ¶
func GitOrig2Url ¶
func GitUrl2Orig ¶
func InitGitLabApi ¶
Types ¶
type GitBlobLog ¶
type GitCommit ¶
type GitCommit []GitCommitLog
type GitCommitLog ¶
type GitTreeLog ¶
type Repository ¶
type Repository struct { Link *git2go.Repository Callback *git2go.RemoteCallbacks Path string Branch string Update chan string Quit chan bool QuitReport chan bool Name string Url string Lock bool FileWatchQuit chan bool FileUpdate bool Error bool LastError string History []UpdateHistory BlobLog []GitBlobLog TreeLog []GitTreeLog CommitLog GitCommit Events GitEvents SubDirectories []string // contains filtered or unexported fields }
func (*Repository) GetUpdates ¶
func (rep *Repository) GetUpdates() error
func (*Repository) InitFSWatch ¶
func (rep *Repository) InitFSWatch()
func (*Repository) StartFSWatch ¶
func (rep *Repository) StartFSWatch()
func (*Repository) StopFSWatch ¶
func (rep *Repository) StopFSWatch()
type UpdateHistory ¶
type UserInfo ¶
type UserInfo struct { Name string `json:"name"` Username string `json:"username"` Id int `json:"id"` State string `json:"state"` Avatar_url string `json:"avatar_url"` Is_admin bool `json:"is_admin"` Skype string `json:"skype"` LinkedIn string `json:"linkedin"` Twitter string `json:"twitter"` Website string `json:"website_url"` Email string `json:"email"` ThremeId int `json:"threme_id"` ColourSchemeId int `json:"color_scheme_id"` ProjectsLimit int `json:"projects_limit"` CanCreateGroup bool `json:"can_create_group"` CanCreateProject bool `json:"can_create_project"` }
func GetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.