Documentation ¶ Overview ¶ Package remotefile downloads user-supplied asset URLs without allowing the server to become a proxy into loopback, private, link-local, or metadata networks. Index ¶ type File func Fetch(ctx context.Context, rawURL string, maximumBytes int64) (File, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type File ¶ type File struct { Filename string Bytes []byte } func Fetch ¶ func Fetch(ctx context.Context, rawURL string, maximumBytes int64) (File, error) Source Files ¶ View all Source files remotefile.go Click to show internal directories. Click to hide internal directories.