gitproviders

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type GitProviderService

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

func (*GitProviderService) DeleteConfig added in v0.52.0

func (s *GitProviderService) DeleteConfig(ctx context.Context, gitProviderId string) error

func (*GitProviderService) FindConfig added in v0.52.0

func (*GitProviderService) GetGitProvider

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

func (*GitProviderService) GetGitProviderForHttpRequest added in v0.26.0

func (s *GitProviderService) GetGitProviderForHttpRequest(ctx context.Context, req *http.Request) (gitprovider.GitProvider, error)

func (*GitProviderService) GetGitProviderForUrl

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

func (*GitProviderService) GetGitUser

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

func (*GitProviderService) GetLastCommitSha added in v0.16.0

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

func (*GitProviderService) GetNamespaces

func (s *GitProviderService) GetNamespaces(ctx context.Context, gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error)

func (*GitProviderService) GetPrebuildWebhook added in v0.26.0

func (s *GitProviderService) GetPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (*string, error)

func (*GitProviderService) GetRepoBranches

func (s *GitProviderService) GetRepoBranches(ctx context.Context, gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitBranch, error)

func (*GitProviderService) GetRepoPRs

func (s *GitProviderService) GetRepoPRs(ctx context.Context, gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitPullRequest, error)

func (*GitProviderService) GetRepositories

func (s *GitProviderService) GetRepositories(ctx context.Context, gitProviderId, namespaceId string, options gitprovider.ListOptions) ([]*gitprovider.GitRepository, error)

func (*GitProviderService) ListConfigs

func (s *GitProviderService) ListConfigs(ctx context.Context) ([]*models.GitProviderConfig, error)

func (*GitProviderService) ListConfigsForUrl added in v0.38.0

func (s *GitProviderService) ListConfigsForUrl(ctx context.Context, repoUrl string) ([]*models.GitProviderConfig, error)

func (*GitProviderService) RegisterPrebuildWebhook added in v0.26.0

func (s *GitProviderService) RegisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (string, error)

func (*GitProviderService) SaveConfig added in v0.52.0

func (s *GitProviderService) SaveConfig(ctx context.Context, providerConfig *models.GitProviderConfig) error

func (*GitProviderService) UnregisterPrebuildWebhook added in v0.26.0

func (s *GitProviderService) UnregisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, id string) error

type GitProviderServiceConfig

type GitProviderServiceConfig struct {
	ConfigStore stores.GitProviderConfigStore

	DetachWorkspaceTemplates func(ctx context.Context, gitProviderConfigId string) error
	TrackTelemetryEvent      func(event telemetry.Event, clientId string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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