Documentation ¶
Index ¶
- Variables
- type Repo
- func (r *Repo) Categories() []string
- func (r *Repo) Category(cat string) *component.Category
- func (r *Repo) ComponentHash(c component.Component) (string, error)
- func (r *Repo) Create(c component.Component, u *models.User) error
- func (r *Repo) Delete(c component.Component, u *models.User) error
- func (r *Repo) Get(c component.Component) (string, error)
- func (r *Repo) Handler() RepoHandler
- func (r *Repo) MarshalJSON() ([]byte, error)
- func (r *Repo) StartSync(interval time.Duration, trigger <-chan struct{})
- func (r *Repo) StopSync()
- func (r *Repo) String() string
- func (r *Repo) Update(c component.Component, u *models.User) error
- type RepoHandler
- func (r *RepoHandler) CanDelete(c *gin.Context)
- func (r *RepoHandler) Create(c *gin.Context)
- func (r *RepoHandler) Delete(c *gin.Context)
- func (r *RepoHandler) Info(c *gin.Context)
- func (r *RepoHandler) IsNew(c *gin.Context)
- func (r *RepoHandler) ParseCat(c *gin.Context)
- func (r *RepoHandler) ParseCheck(c *gin.Context)
- func (r *RepoHandler) ParseItem(c *gin.Context)
- func (r *RepoHandler) ParseSub(c *gin.Context)
- func (r *RepoHandler) Root(c *gin.Context)
- func (r *RepoHandler) SetCat(c *gin.Context)
- func (r *RepoHandler) SetCheck(c *gin.Context)
- func (r *RepoHandler) SetItem(c *gin.Context)
- func (r *RepoHandler) SetSub(c *gin.Context)
- func (r *RepoHandler) Show(c *gin.Context)
- func (r *RepoHandler) Update(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotReady = errors.New("Repository not ready") ErrFileNotFound = git.ErrFileNotFound )
Functions ¶
This section is empty.
Types ¶
type Repo ¶
func (*Repo) Categories ¶
func (*Repo) Handler ¶
func (r *Repo) Handler() RepoHandler
func (*Repo) MarshalJSON ¶
type RepoHandler ¶
type RepoHandler struct {
// contains filtered or unexported fields
}
func (*RepoHandler) CanDelete ¶
func (r *RepoHandler) CanDelete(c *gin.Context)
func (*RepoHandler) Create ¶
func (r *RepoHandler) Create(c *gin.Context)
func (*RepoHandler) Delete ¶
func (r *RepoHandler) Delete(c *gin.Context)
func (*RepoHandler) Info ¶
func (r *RepoHandler) Info(c *gin.Context)
func (*RepoHandler) IsNew ¶
func (r *RepoHandler) IsNew(c *gin.Context)
func (*RepoHandler) ParseCat ¶
func (r *RepoHandler) ParseCat(c *gin.Context)
func (*RepoHandler) ParseCheck ¶
func (r *RepoHandler) ParseCheck(c *gin.Context)
func (*RepoHandler) ParseItem ¶
func (r *RepoHandler) ParseItem(c *gin.Context)
func (*RepoHandler) ParseSub ¶
func (r *RepoHandler) ParseSub(c *gin.Context)
func (*RepoHandler) Root ¶
func (r *RepoHandler) Root(c *gin.Context)
func (*RepoHandler) SetCat ¶
func (r *RepoHandler) SetCat(c *gin.Context)
SetCat loads the category using the url parameter
func (*RepoHandler) SetCheck ¶
func (r *RepoHandler) SetCheck(c *gin.Context)
func (*RepoHandler) SetItem ¶
func (r *RepoHandler) SetItem(c *gin.Context)
func (*RepoHandler) SetSub ¶
func (r *RepoHandler) SetSub(c *gin.Context)
func (*RepoHandler) Show ¶
func (r *RepoHandler) Show(c *gin.Context)
func (*RepoHandler) Update ¶
func (r *RepoHandler) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.