feat: support per-remote upstream timeouts
Add upstream_dial_timeout, upstream_tls_timeout and upstream_response_header_timeout (seconds; 0 = server default) to the remote resource and data source, matching the artifactapi server. Wire them through the API model, schema, create/read/update mapping, docs and unit tests.
This commit is contained in:
@@ -22,6 +22,10 @@ type remoteAPI struct {
|
||||
StaleOnError bool `json:"stale_on_error"`
|
||||
ReleasesRemote string `json:"releases_remote,omitempty"`
|
||||
ManagedBy string `json:"managed_by,omitempty"`
|
||||
|
||||
UpstreamDialTimeout int64 `json:"upstream_dial_timeout"`
|
||||
UpstreamTLSTimeout int64 `json:"upstream_tls_timeout"`
|
||||
UpstreamResponseHeaderTimeout int64 `json:"upstream_response_header_timeout"`
|
||||
}
|
||||
|
||||
type virtualAPI struct {
|
||||
|
||||
Reference in New Issue
Block a user