api

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL