Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = xerror.NotFound(xerror.Organization).Detail("GitHub App connection was not found")
Functions ¶
This section is empty.
Types ¶
type Installation ¶
type Repository ¶
type Repository interface {
CreateIntent(context.Context, postgres.DBTX, slug.Slug, string, string, time.Time, slug.Slug, string) error
GetIntent(context.Context, postgres.DBTX, string) (Intent, error)
LockIntent(context.Context, postgres.DBTX, string) (Intent, error)
ConsumeIntent(context.Context, postgres.DBTX, int) error
UpsertInstallation(context.Context, postgres.DBTX, Intent, VerifiedInstallation) (int64, error)
UpsertRepository(context.Context, postgres.DBTX, int32, int64, RepositoryBinding) error
RemoveMissingRepositories(context.Context, postgres.DBTX, int32, int64, []int64) error
GetInstallation(context.Context, postgres.DBTX, slug.Slug) (*Installation, error)
ListRepositories(context.Context, postgres.DBTX, slug.Slug) ([]RepositoryBinding, error)
Disconnect(context.Context, postgres.DBTX, slug.Slug) error
OrganizationForInstallation(context.Context, postgres.DBTX, int64) (slug.Slug, error)
Resolve(context.Context, postgres.DBTX, int64, int64) (slug.Slug, error)
UpdateLifecycle(context.Context, postgres.DBTX, string, int64) error
AddRepository(context.Context, postgres.DBTX, int64, RepositoryBinding) error
RemoveRepository(context.Context, postgres.DBTX, int64, int64) error
}
func New ¶
func New() Repository
type RepositoryBinding ¶
type VerifiedInstallation ¶
Click to show internal directories.
Click to hide internal directories.