Versions in this module Expand all Collapse all v1 v1.0.2003 Sep 28, 2021 v1.0.2002 Sep 28, 2021 v1.0.8 Sep 10, 2021 v1.0.7 Sep 8, 2021 v1.0.6 Sep 8, 2021 Changes in this version + var ErrMissingInstallation = errors.New("installation is missing") + type Account struct + Login string type Client + AddApp func(ctx context.Context, app GithubApp) (err error) + AddInstallation func(ctx context.Context, installation GithubInstallation) (err error) + ConvertAppManifestCode func(ctx context.Context, code string) (err error) + GetAppAndInstallationByID func(ctx context.Context, installationID int) (app *GithubApp, installation *GithubInstallation, err error) + GetAppAndInstallationByOwner func(ctx context.Context, repoOwner string) (app *GithubApp, installation *GithubInstallation, err error) + GetAppByID func(ctx context.Context, id int) (app *GithubApp, err error) + GetApps func(ctx context.Context) (apps []*GithubApp, err error) + RemoveApp func(ctx context.Context, app GithubApp) (err error) + RemoveInstallation func(ctx context.Context, installation GithubInstallation) (err error) + type GithubApp struct + ClientID string + ClientSecret string + ID int + Installations []*GithubInstallation + Name string + PrivateKey string + Slug string + WebhookSecret string + type GithubInstallation struct + Account *Account + AppID int + ID int + Organizations []*contracts.Organization type MockClient + func (m *MockClient) AddApp(ctx context.Context, app GithubApp) error + func (m *MockClient) AddInstallation(ctx context.Context, installation GithubInstallation) error + func (m *MockClient) ConvertAppManifestCode(ctx context.Context, code string) error + func (m *MockClient) GetAppAndInstallationByID(ctx context.Context, installationID int) (*GithubApp, *GithubInstallation, error) + func (m *MockClient) GetAppAndInstallationByOwner(ctx context.Context, repoOwner string) (*GithubApp, *GithubInstallation, error) + func (m *MockClient) GetAppByID(ctx context.Context, id int) (*GithubApp, error) + func (m *MockClient) GetApps(ctx context.Context) ([]*GithubApp, error) + func (m *MockClient) RemoveApp(ctx context.Context, app GithubApp) error + func (m *MockClient) RemoveInstallation(ctx context.Context, installation GithubInstallation) error type MockClientMockRecorder + func (mr *MockClientMockRecorder) AddApp(ctx, app interface{}) *gomock.Call + func (mr *MockClientMockRecorder) AddInstallation(ctx, installation interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ConvertAppManifestCode(ctx, code interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetAppAndInstallationByID(ctx, installationID interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetAppAndInstallationByOwner(ctx, repoOwner interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetAppByID(ctx, id interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetApps(ctx interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveApp(ctx, app interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveInstallation(ctx, installation interface{}) *gomock.Call v1.0.5 Aug 30, 2021 v1.0.4 Aug 27, 2021 v1.0.3 Aug 26, 2021 v1.0.2 Aug 25, 2021 v1.0.1 Aug 18, 2021 v1.0.0 Aug 13, 2021 Changes in this version + func IsRepoSourceGithub(repoSourceToCompare string) bool + type AccessToken struct + ExpiresAt string + Token string + type AnyEvent struct + Installation Installation + Repository *Repository + func (ae *AnyEvent) GetRepository() string + type Author struct + Email string + Name string + UserName string + type Client interface + GetEstafetteManifest func(ctx context.Context, accesstoken AccessToken, event PushEvent) (valid bool, manifest string, err error) + GetGithubAppToken func(ctx context.Context) (token string, err error) + GetInstallationID func(ctx context.Context, repoOwner string) (installationID int, err error) + GetInstallationToken func(ctx context.Context, installationID int) (token AccessToken, err error) + JobVarsFunc func(ctx context.Context) ... + func NewClient(config *api.APIConfig) Client + func NewLoggingClient(c Client) Client + func NewMetricsClient(c Client, requestCount metrics.Counter, requestLatency metrics.Histogram) Client + func NewTracingClient(c Client) Client + type Commit struct + Author Author + ID string + Message string + type Installation struct + ID int + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) GetEstafetteManifest(ctx context.Context, accesstoken AccessToken, event PushEvent) (bool, string, error) + func (m *MockClient) GetGithubAppToken(ctx context.Context) (string, error) + func (m *MockClient) GetInstallationID(ctx context.Context, repoOwner string) (int, error) + func (m *MockClient) GetInstallationToken(ctx context.Context, installationID int) (AccessToken, error) + func (m *MockClient) JobVarsFunc(ctx context.Context) func(context.Context, string, string, string) (string, error) + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) GetEstafetteManifest(ctx, accesstoken, event interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetGithubAppToken(ctx interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetInstallationID(ctx, repoOwner interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetInstallationToken(ctx, installationID interface{}) *gomock.Call + func (mr *MockClientMockRecorder) JobVarsFunc(ctx interface{}) *gomock.Call + type PushEvent struct + After string + Commits []Commit + HeadCommit Commit + Installation Installation + Pusher Pusher + Ref string + Repository Repository + func (pe *PushEvent) GetRepoBranch() string + func (pe *PushEvent) GetRepoFullName() string + func (pe *PushEvent) GetRepoName() string + func (pe *PushEvent) GetRepoOwner() string + func (pe *PushEvent) GetRepoRevision() string + func (pe *PushEvent) GetRepoSource() string + func (pe *PushEvent) GetRepository() string + type Pusher struct + Email string + Name string + type Repository struct + FullName string + GitURL string + HTMLURL string + Name string + type RepositoryChanges struct + Repository RepositoryChangesRepository + type RepositoryChangesRepository struct + Name RepositoryChangesRepositoryName + type RepositoryChangesRepositoryName struct + From string + type RepositoryContent struct + Content string + Encoding string + Name string + Path string + Sha string + Size int + Type string + type RepositoryEvent struct + Action string + Changes RepositoryChanges + Installation Installation + Repository Repository + func (pe *RepositoryEvent) GetNewRepoName() string + func (pe *RepositoryEvent) GetNewRepoOwner() string + func (pe *RepositoryEvent) GetOldRepoName() string + func (pe *RepositoryEvent) GetOldRepoOwner() string + func (pe *RepositoryEvent) GetRepoName() string + func (pe *RepositoryEvent) GetRepoOwner() string + func (pe *RepositoryEvent) GetRepoSource() string + func (pe *RepositoryEvent) IsValidRenameEvent() bool