agentnetwork

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 4 Imported by: 0 modules, 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

Overview

Package agentnetwork validates the hosted execution policy without selecting a harness, Provider, native proxy or initialization mechanism.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid hosted network policy")

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Access         string   `json:"access"`
	AllowedDomains []string `json:"allowed_domains"`
}

func (Policy) Equal

func (p Policy) Equal(other Policy) bool

Equal compares validated effective authority, independent of public list order.

func (Policy) Hosts

func (p Policy) Hosts() []string

Hosts is the deterministic native allowlist. The caller must validate first. DNS host identity is case-insensitive; public metadata remains untouched.

func (Policy) Narrows

func (p Policy) Narrows(template Policy) bool

Narrows reports whether this policy is a valid subset of the template policy.

func (Policy) Validate

func (p Policy) Validate() error

Validate accepts the qualified exact ASCII hostname form. It does not rewrite public field spelling, order or duplicates, or infer defaults from missing access.

Jump to

Keyboard shortcuts

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