gitlabproofwebhooks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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