Documentation
¶
Index ¶
- func AuthorizedClient(ctx context.Context, db gorp.SqlExecutor, store cache.Store, projectKey string, ...) (sdk.VCSAuthorizedClientService, error)
- func DefaultBranch(ctx context.Context, c sdk.VCSAuthorizedClientCommon, fullname string) (sdk.VCSBranch, error)
- func DeleteForApplication(db gorp.SqlExecutor, app *sdk.Application) error
- func GetReposForProjectVCSServer(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj sdk.Project, ...) ([]sdk.VCSRepo, error)
- func InsertForApplication(db gorp.SqlExecutor, app *sdk.Application) error
- func LoadLinkedApplicationNames(db gorp.SqlExecutor, projectKey, rmName string) (sdk.IDNames, error)
- func ReceiveEvents(ctx context.Context, DBFunc func() *gorp.DbMap, store cache.Store, ...)
- func RetryEvent(e *sdk.Event, err error, store cache.Store) error
- type Options
- type PollingInfos
- type WebhooksInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizedClient ¶
func AuthorizedClient(ctx context.Context, db gorp.SqlExecutor, store cache.Store, projectKey string, vcsName string) (sdk.VCSAuthorizedClientService, error)
AuthorizedClient returns an implementation of AuthorizedClient wrapping calls to vcs uService
func DefaultBranch ¶
func DefaultBranch(ctx context.Context, c sdk.VCSAuthorizedClientCommon, fullname string) (sdk.VCSBranch, error)
DefaultBranch get default branch from given repository
func DeleteForApplication ¶
func DeleteForApplication(db gorp.SqlExecutor, app *sdk.Application) error
DeleteForApplication removes association between a repositories manager and an application.
func InsertForApplication ¶
func InsertForApplication(db gorp.SqlExecutor, app *sdk.Application) error
InsertForApplication associates a repositories manager with an application.
func LoadLinkedApplicationNames ¶
func LoadLinkedApplicationNames(db gorp.SqlExecutor, projectKey, rmName string) (sdk.IDNames, error)
LoadLinkedApplicationNames loads applications which are linked with this repository manager name.
Types ¶
type PollingInfos ¶
type PollingInfos struct { PollingSupported bool `json:"polling_supported"` PollingDisabled bool `json:"polling_disabled"` }
PollingInfos is a set of info about polling functions
func GetPollingInfos ¶
func GetPollingInfos(ctx context.Context, c sdk.VCSAuthorizedClientService, prj sdk.Project) (PollingInfos, error)
GetPollingInfos returns polling_supported and polling_disabled for a vcs server
type WebhooksInfos ¶
type WebhooksInfos struct { WebhooksSupported bool `json:"webhooks_supported"` WebhooksDisabled bool `json:"webhooks_disabled"` GerritHookDisabled bool `json:"gerrithook_disabled"` Icon string `json:"webhooks_icon"` Events []string `json:"events"` }
WebhooksInfos is a set of info about webhooks
func GetWebhooksInfos ¶
func GetWebhooksInfos(ctx context.Context, c sdk.VCSAuthorizedClientService) (WebhooksInfos, error)
GetWebhooksInfos returns webhooks_supported, webhooks_disabled, webhooks_creation_supported, webhooks_creation_disabled for a vcs server