gitproviders

package
v0.17.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitProviderService

type GitProviderService struct {
	// contains filtered or unexported fields
}

func (*GitProviderService) GetConfig

func (*GitProviderService) GetConfigForUrl

func (s *GitProviderService) GetConfigForUrl(url string) (*gitprovider.GitProviderConfig, error)

func (*GitProviderService) GetGitProvider

func (s *GitProviderService) GetGitProvider(id string) (gitprovider.GitProvider, error)

func (*GitProviderService) GetGitProviderForUrl

func (s *GitProviderService) GetGitProviderForUrl(repoUrl string) (gitprovider.GitProvider, error)

func (*GitProviderService) GetGitUser

func (s *GitProviderService) GetGitUser(gitProviderId string) (*gitprovider.GitUser, error)

func (*GitProviderService) GetLastCommitSha added in v0.16.0

func (s *GitProviderService) GetLastCommitSha(repo *gitprovider.GitRepository) (string, error)

func (*GitProviderService) GetNamespaces

func (s *GitProviderService) GetNamespaces(gitProviderId string) ([]*gitprovider.GitNamespace, error)

func (*GitProviderService) GetRepoBranches

func (s *GitProviderService) GetRepoBranches(gitProviderId, namespaceId, repositoryId string) ([]*gitprovider.GitBranch, error)

func (*GitProviderService) GetRepoPRs

func (s *GitProviderService) GetRepoPRs(gitProviderId, namespaceId, repositoryId string) ([]*gitprovider.GitPullRequest, error)

func (*GitProviderService) GetRepositories

func (s *GitProviderService) GetRepositories(gitProviderId, namespaceId string) ([]*gitprovider.GitRepository, error)

func (*GitProviderService) ListConfigs

func (s *GitProviderService) ListConfigs() ([]*gitprovider.GitProviderConfig, error)

func (*GitProviderService) RemoveGitProvider

func (s *GitProviderService) RemoveGitProvider(gitProviderId string) error

func (*GitProviderService) SetGitProviderConfig

func (s *GitProviderService) SetGitProviderConfig(providerConfig *gitprovider.GitProviderConfig) error

type GitProviderServiceConfig

type GitProviderServiceConfig struct {
	ConfigStore gitprovider.ConfigStore
}

type IGitProviderService added in v0.12.0

type IGitProviderService interface {
	GetConfig(id string) (*gitprovider.GitProviderConfig, error)
	GetConfigForUrl(url string) (*gitprovider.GitProviderConfig, error)
	GetGitProvider(id string) (gitprovider.GitProvider, error)
	GetGitProviderForUrl(url string) (gitprovider.GitProvider, error)
	GetGitUser(gitProviderId string) (*gitprovider.GitUser, error)
	GetNamespaces(gitProviderId string) ([]*gitprovider.GitNamespace, error)
	GetRepoBranches(gitProviderId string, namespaceId string, repositoryId string) ([]*gitprovider.GitBranch, error)
	GetRepoPRs(gitProviderId string, namespaceId string, repositoryId string) ([]*gitprovider.GitPullRequest, error)
	GetRepositories(gitProviderId string, namespaceId string) ([]*gitprovider.GitRepository, error)
	ListConfigs() ([]*gitprovider.GitProviderConfig, error)
	RemoveGitProvider(gitProviderId string) error
	SetGitProviderConfig(providerConfig *gitprovider.GitProviderConfig) error
	GetLastCommitSha(repo *gitprovider.GitRepository) (string, error)
}

func NewGitProviderService

func NewGitProviderService(config GitProviderServiceConfig) IGitProviderService

Jump to

Keyboard shortcuts

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