Versions in this module Expand all Collapse all v1 v1.4.15 Oct 19, 2026 Changes in this version + const CertMarker + const Dir + const Generated + const LockFile + const OwnerFile + const QuarantineDir + const SchemaVersion + var ErrOwnerNotRunning = errors.New("the shared proxy owner's nginx is not running") + func Detach(ctx context.Context, ownerDir string, regs ...Registration) error + func DirOf(ownerRoot string) string + func FileName(project string) string + func Leave(ctx context.Context, ownerDir, project string) ([]string, error) + func Lock(ctx context.Context, ownerDir string) (func(), error) + func Marshal(r Registration) ([]byte, error) + func OwnerNginx(ctx context.Context, ownerDir string) (string, error) + func Quarantine(ownerDir string, set Set, reg Registration) ([]string, error) + func Restore(ownerDir string, reg Registration) ([]string, error) + func Unregister(ownerDir, project string) ([]string, error) + func ValidFile(rel string) bool + func ValidProject(name string) bool + func Write(dir, name string, r Registration) error + type Outcome struct + Attached []string + Missing []string + Quarantined []string + Reloaded bool + func Attach(ctx context.Context, ownerDir, self string, regs []Registration) (Outcome, error) + type Registration struct + Files []string + Generated string + Network string + Project string + ProjectDir string + SchemaVersion string + ServerNames []string + ServiceNames []string + UpstreamHosts []string + func Implicated(set Set, text string) []Registration + func New(project, projectDir string) Registration + func Parse(name string, data []byte, ownerDir string) (Registration, error) + func (r *Registration) Sort() + type Role int + const RoleFronted + const RoleNone + const RoleOwner + type Set struct + Owner *Registration + Projects []Registration + func Load(dir, ownerDir string) (Set, error) + func (s Set) Find(project string) *Registration + func (s Set) Others(project string) []Registration + func (s Set) RegisteredFiles() map[string]bool + func (s Set) Removable(ownerDir, project, rel string) bool + type Site struct + OwnerDir string + Reg *Registration + Role Role + Set Set + func Locate(workdir string) (Site, error)