Documentation ¶
Index ¶
- Variables
- func GitRewriteArchive(config *GitConfig, path string) string
- func GitRewriteRepository(config *GitConfig, path string) string
- func NewGitPat() goji.Pattern
- type GitConfig
- type GitPat
- type GitService
- func (gs *GitService) End() error
- func (gs *GitService) Init(app *goapp.App) error
- func (gs *GitService) Serve(state *goapp.GoroutineState) error
- func (gs *GitService) SyncRepositories(service string, wg sync.WaitGroup)
- func (gs *GitService) SyncServices()
- func (gs *GitService) WriteArchive(w io.Writer, path, ref string) error
- func (gs *GitService) WriteFile(w io.Writer, path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BITBUCKET_ARCHIVE = regexp.MustCompile(`http(s|):\/\/([\w-\.]+)\/([\w\.\d-]+)\/([\w-\.\d]+)\/get\/([\w]+)\.zip`) GITHUB_ARCHIVE = regexp.MustCompile(`http(s|):\/\/api\.([\w-\.]+)\/repos\/([\w\.\d-]+)\/([\w\.\d-]+)\/zipball\/([\w]+)`) GITLAB_ARCHIVE = regexp.MustCompile(`http(s|):\/\/([\w-\.]+)\/([\w-\.\d]+)\/([\w-\.\d]+)\/repository\/archive.zip\?ref=([\w]+)`) GIT_REPOSITORY = regexp.MustCompile(`^(((git|http(s|)):\/\/|git@))([\w-\.]+@|)([\w-\.]+)(\/|:)([\w-\.\/]+?)(\.git|)$`) SVN_REPOSITORY = regexp.MustCompile(`(svn:\/\/(.*)|(.*)\.svn\.(.*))`) CACHEABLE_REF = regexp.MustCompile(`([\w\d]{40}|[\w\d]+\.[\w\d]+\.[\w\d]+(-[\w\d]+|))`) )
View Source
var (
GIT_PATTTERN_URL = regexp.MustCompile(`\/git\/(.*)\/([\w\d]{40}|(.*))\.zip`)
)
Functions ¶
func GitRewriteArchive ¶
func GitRewriteRepository ¶
Types ¶
type GitService ¶
func NewGitService ¶
func NewGitService() *GitService
func (*GitService) End ¶
func (gs *GitService) End() error
func (*GitService) Serve ¶
func (gs *GitService) Serve(state *goapp.GoroutineState) error
func (*GitService) SyncRepositories ¶
func (gs *GitService) SyncRepositories(service string, wg sync.WaitGroup)
func (*GitService) SyncServices ¶
func (gs *GitService) SyncServices()
func (*GitService) WriteArchive ¶
func (gs *GitService) WriteArchive(w io.Writer, path, ref string) error
Click to show internal directories.
Click to hide internal directories.