Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeOptions ¶
type ComputeOptions struct {
MaxBytes int64
TimeoutMs int
MaxRedirects int
AllowedContentType []string
SkipSSRFCheck bool // For testing only - disables SSRF protection
InsecureSkipVerify bool // For testing only - disables TLS verification
}
ComputeOptions configures the remote checksum computation behavior
func DefaultOptions ¶
func DefaultOptions() ComputeOptions
DefaultOptions returns the default configuration for checksum computation
type Result ¶
ChecksumResult represents the result of a checksum computation
func ComputeRemoteChecksum ¶
func ComputeRemoteChecksum(urlStr string, opts ComputeOptions) (*Result, error)
ComputeRemoteChecksum downloads a remote binary file and computes its SHA-256 checksum Returns nil if the file cannot be processed (too large, wrong type, network error, SSRF blocked)
Click to show internal directories.
Click to hide internal directories.