agentnetwork

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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 public Environment network field.

Index

Constants

View Source
const HostPattern = `^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)*[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$`

HostPattern accepts an exact host name: dot-separated RFC 1123 labels whose last label starts with a letter, which also rejects IP literals. It is the one exact-host rule; the sandbox deployment cap shares it.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Access         string
	AllowedDomains []string
}

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