gitlabproofwebhooks

package
v0.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Binding

type Binding struct {
	Organization          slug.Slug
	DataSource            slug.Slug
	ProjectID             int64
	HookID                int64
	Status                string
	RouteKeyHash          string
	EncryptedSigningToken []byte
}

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

Jump to

Keyboard shortcuts

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