2024-04-17 05:00:00 +00:00
|
|
|
export interface HostRule {
|
2021-03-09 18:25:18 +00:00
|
|
|
authType?: string;
|
2020-03-02 11:06:16 +00:00
|
|
|
token?: string;
|
|
|
|
username?: string;
|
|
|
|
password?: string;
|
|
|
|
insecureRegistry?: boolean;
|
|
|
|
timeout?: number;
|
2020-06-23 07:25:03 +00:00
|
|
|
abortOnError?: boolean;
|
|
|
|
abortIgnoreStatusCodes?: number[];
|
2020-07-09 15:34:26 +00:00
|
|
|
enabled?: boolean;
|
2020-08-11 09:53:23 +00:00
|
|
|
enableHttp2?: boolean;
|
2020-12-11 09:09:09 +00:00
|
|
|
concurrentRequestLimit?: number;
|
2022-10-25 11:03:19 +00:00
|
|
|
maxRequestsPerSecond?: number;
|
2024-01-17 09:22:19 +00:00
|
|
|
headers?: Record<string, string>;
|
2023-12-14 07:10:50 +00:00
|
|
|
maxRetryAfter?: number;
|
2022-08-31 11:49:54 +00:00
|
|
|
|
2023-11-28 22:31:18 +00:00
|
|
|
keepAlive?: boolean;
|
2023-04-17 06:16:02 +00:00
|
|
|
artifactAuth?: string[] | null;
|
2023-09-06 12:02:34 +00:00
|
|
|
httpsCertificateAuthority?: string;
|
|
|
|
httpsPrivateKey?: string;
|
|
|
|
httpsCertificate?: string;
|
2022-04-06 14:56:40 +00:00
|
|
|
|
|
|
|
encrypted?: HostRule;
|
|
|
|
hostType?: string;
|
|
|
|
matchHost?: string;
|
2021-05-01 16:19:38 +00:00
|
|
|
resolvedHost?: string;
|
2024-04-23 03:26:20 +00:00
|
|
|
readOnly?: boolean;
|
2020-03-02 11:06:16 +00:00
|
|
|
}
|
2024-04-17 05:00:00 +00:00
|
|
|
|
|
|
|
export type CombinedHostRule = Omit<
|
|
|
|
HostRule,
|
2024-04-23 03:26:20 +00:00
|
|
|
'encrypted' | 'hostType' | 'matchHost' | 'resolvedHost' | 'readOnly'
|
2024-04-17 05:00:00 +00:00
|
|
|
>;
|