domaincontract

package
v0.0.0-...-20ef0af Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package domaincontract guards resolver ownership and rejects newly introduced static Go hostnames that are not covered by the repository domain policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanRepo

func ScanRepo(root string) ([]lintapi.Violation, error)

ScanRepo runs the resolver-owned endpoint guard and a full repository domain inventory. CI should use ScanRepoWithOptions with a changed-from revision so historical unapproved domains are not attributed to an unrelated change.

func ScanRepoWithOptions

func ScanRepoWithOptions(root string, opts ScanOptions) ([]lintapi.Violation, error)

Types

type ScanOptions

type ScanOptions struct {
	ChangedFrom string
}

Jump to

Keyboard shortcuts

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