Documentation
¶
Index ¶
- type RepoService
- func (s *RepoService) Create(repo models.RepoEntity)
- func (s *RepoService) CreateOrUpdate(repo models.RepoEntity) error
- func (s *RepoService) Delete(repo models.RepoEntity) error
- func (s *RepoService) Get(repoSlug string) (*models.RepoEntity, error)
- func (s *RepoService) GetDefaultBranch(repoSlug string) *string
- func (s *RepoService) List() ([]models.RepoEntity, error)
- func (s *RepoService) Update(repo models.RepoEntity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoService ¶
type RepoService struct {
// contains filtered or unexported fields
}
func NewRepoService ¶
func NewRepoService(cfg utils.Config, projectKey string) *RepoService
func (*RepoService) Create ¶
func (s *RepoService) Create(repo models.RepoEntity)
Create new repository
func (*RepoService) CreateOrUpdate ¶
func (s *RepoService) CreateOrUpdate(repo models.RepoEntity) error
Create or update repository
func (*RepoService) Delete ¶
func (s *RepoService) Delete(repo models.RepoEntity) error
Delete repository
func (*RepoService) Get ¶
func (s *RepoService) Get(repoSlug string) (*models.RepoEntity, error)
Get — получает данные по конкретной репе (slug) внутри проекта
func (*RepoService) GetDefaultBranch ¶
func (s *RepoService) GetDefaultBranch(repoSlug string) *string
func (*RepoService) List ¶
func (s *RepoService) List() ([]models.RepoEntity, error)
List repositories
func (*RepoService) Update ¶
func (s *RepoService) Update(repo models.RepoEntity) error
Update existing repository
Click to show internal directories.
Click to hide internal directories.