Documentation
¶
Overview ¶
Package policy describes generic image uploader capabilities. Tracker-owned acceptance and ownership rules are exposed by the tracker registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostAllowed ¶
HostAllowed reports whether host is present in allowed; an empty allowlist permits every host.
func IsUploadHost ¶
IsUploadHost reports whether host has a configured uploader.
func KnownUploadHosts ¶
func KnownUploadHosts() []string
KnownUploadHosts returns supported upload host names in deterministic order.
Types ¶
type Metadata ¶
type Metadata struct {
// UploadHosts lists every configured uploader name.
UploadHosts []string
// TrackerUploadHosts maps tracker names to upload-capable accepted hosts.
TrackerUploadHosts map[string][]string
// OwnedHosts maps normalized host names to their owning tracker.
OwnedHosts map[string]string
}
Metadata is a defensive snapshot of uploader and composed tracker policy data.
Click to show internal directories.
Click to hide internal directories.