hostutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 14 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicWrite

func AtomicWrite(path string, data []byte, mode os.FileMode) error

AtomicWrite publishes only complete files, on the same filesystem.

func CatalogDestination

func CatalogDestination(raw, source string) error

func CatalogTransport

func CatalogTransport(source string) *http.Transport

Catalog-directed connections are direct and dial only verified IP addresses. This provenance survives config sync, preventing cached catalogs from silently becoming trusted local destinations or secret bindings.

func Fetch

func Fetch(ctx context.Context, raw string, limit int64) ([]byte, error)

func NewRequestID

func NewRequestID() string

Request IDs are generated locally; remote arbitrary strings are never reflected.

func RemoteURL

func RemoteURL(raw string) error

func SetProxy

func SetProxy(raw, noProxy string) error

func SetRequestID

func SetRequestID(req *http.Request)

func Transport

func Transport() *http.Transport

func ValidateProxy

func ValidateProxy(raw string) error

func WithRequestID

func WithRequestID(ctx context.Context, id string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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