Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiskCache ¶
NewDiskCache returns a diskcache.Cache with restrictive file permissions (0600 for files, 0700 for directories) to prevent other users from reading cached API responses that may contain sensitive data.
func NewSafeClient ¶
NewSafeClient returns an http.Client that strips authentication headers when following redirects to a different host. This prevents credential leakage if a download URL redirects to an attacker-controlled server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.