Documentation
¶
Index ¶
- func Register()
- type Gogs
- func (r *Gogs) Activate(user *model.User, repo *model.Repo, link string) error
- func (r *Gogs) Authorize(res http.ResponseWriter, req *http.Request) (*model.Login, error)
- func (r *Gogs) Deactivate(user *model.User, repo *model.Repo, link string) error
- func (r *Gogs) GetHost() string
- func (r *Gogs) GetKind() string
- func (r *Gogs) GetRepos(user *model.User) ([]*model.Repo, error)
- func (r *Gogs) GetScript(user *model.User, repo *model.Repo, hook *model.Hook) ([]byte, error)
- func (r *Gogs) GetToken(user *model.User) (*model.Token, error)
- func (r *Gogs) OpenRegistration() bool
- func (r *Gogs) ParseHook(req *http.Request) (*model.Hook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gogs ¶
func (*Gogs) Deactivate ¶
Deactivate removes a repository by removing all the post-commit hooks which are equal to link and removing the SSH deploy key.
func (*Gogs) GetRepos ¶
GetRepos fetches all repositories that the specified user has access to in the remote system.
func (*Gogs) GetScript ¶
GetScript fetches the build script (.drone.yml) from the remote repository and returns a byte array
func (*Gogs) OpenRegistration ¶
Click to show internal directories.
Click to hide internal directories.