Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = xerror.NotFound(xerror.DataSource).Detail("GitLab Proof webhook binding was not found") ErrSetupInProgress = xerror.AlreadyExists(xerror.DataSource).Detail("GitLab Proof webhook setup is already in progress") )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
GetByDataSource(context.Context, postgres.DBTX, slug.Slug, slug.Slug) (Binding, error)
GetByRoute(context.Context, postgres.DBTX, string) (Binding, error)
ClaimSetup(context.Context, postgres.DBTX, Binding) error
Activate(context.Context, postgres.DBTX, Binding) error
FailSetup(context.Context, postgres.DBTX, Binding) error
}
func New ¶
func New() Repository
Click to show internal directories.
Click to hide internal directories.