Documentation
¶
Index ¶
- Variables
- type Service
- func (c *Service) CompleteInstallation(ctx context.Context, ghApp *types.GithubApp, installationID int64) error
- func (c *Service) CompleteManifest(ctx context.Context, ghApp *types.GithubApp, code string) error
- func (s *Service) Create(ctx context.Context, ghApp *types.GithubApp) (*types.GithubApp, error)
- func (s *Service) Delete(ctx context.Context, ghApp *types.GithubApp) error
- func (s Service) Find(ctx context.Context, tenantID, projectID, githubAppID int64) (*types.GithubApp, error)
- func (s *Service) FindByUID(ctx context.Context, tenantID, projectID, githubAppUID int64) (*types.GithubApp, error)
- func (c *Service) GetCommitBySha(ctx context.Context, ghApp *types.GithubApp, repoURL string, sha string) (*github.RepositoryCommit, error)
- func (c *Service) GetLatestCommit(ctx context.Context, ghApp *types.GithubApp, repoURL string, branch string) (*github.RepositoryCommit, error)
- func (s *Service) List(ctx context.Context, tenantID, projectID int64) ([]*types.GithubApp, error)
- func (c *Service) ListBranches(ctx context.Context, ghApp *types.GithubApp, owner string, repo string) ([]*github.Branch, error)
- func (c *Service) ListRepos(ctx context.Context, ghApp *types.GithubApp) (*github.ListRepositories, error)
- func (s *Service) Netrc(ctx context.Context, tenantID, projectID, githubAppID int64, repoURL string) (*types.Netrc, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideService, )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New( tx dbtx.Transactor, githubAppStore store.GithubAppStore, privateKeyStore store.PrivateKeyStore, ) *Service
func ProvideService ¶
func ProvideService(tx dbtx.Transactor, ghAppStore store.GithubAppStore, privateKeyStore store.PrivateKeyStore) *Service
func (*Service) CompleteInstallation ¶
func (*Service) CompleteManifest ¶
func (*Service) GetCommitBySha ¶
func (*Service) GetLatestCommit ¶
func (*Service) ListBranches ¶
Click to show internal directories.
Click to hide internal directories.