serververify

package
v1.13.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FetchError = errors.New("failed to fetch owner")
)

Functions

func MarkKnotVerified

func MarkKnotVerified(d *db.DB, e *rbac.Enforcer, domain, owner string) error

MarkKnotVerified marks a knot as verified and sets up ownership/permissions

func MarkSpindleVerified

func MarkSpindleVerified(d *db.DB, e *rbac.Enforcer, instance, owner string) (int64, error)

MarkSpindleVerified marks a spindle as verified in the DB and adds the user as its owner

func RunVerification

func RunVerification(ctx context.Context, domain, expectedOwner string, dev bool) error

RunVerification verifies that the server at the given domain has the expected owner

Types

type OwnerMismatch

type OwnerMismatch struct {
	// contains filtered or unexported fields
}

func (*OwnerMismatch) Error

func (e *OwnerMismatch) Error() string

Source Files

  • verify.go

Jump to

Keyboard shortcuts

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