Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶
CheckSignature checks the dst and sign for local usage
func Download ¶
func Download(ctx context.Context, dst string, sha256sum string, urls []string, suffix string) (err error)
Download function to download executable or gzip or remote server From Elkeid v1.9.1
Elkeid v1.9.1 enhance this function by setting a more robust http client configuration and also the reader part
var DefaultTransport RoundTripper = &Transport{ Proxy: ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, }
https://github.com/golang/go/blob/b2faff18ce28edad98303d2c3134dec1331fd7b5/src/net/http/transport.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.