forked from AzureCR/vscode-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
32 lines (24 loc) · 1.23 KB
/
constants.ts
File metadata and controls
32 lines (24 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//AsyncPool Constants
export const MAX_CONCURRENT_REQUESTS = 8;
export const MAX_CONCURRENT_SUBSCRIPTON_REQUESTS = 5;
// Consider downloading multiple pages (images, tags, etc)
export const PAGE_SIZE = 100;
export namespace keytarConstants {
export const serviceId: string = 'vscode-docker';
export const dockerHubTokenKey: string = 'dockerhub.token';
export const dockerHubUserNameKey: string = 'dockerhub.username';
export const dockerHubPasswordKey: string = 'dockerhub.password';
}
export namespace configurationKeys {
export const defaultRegistryPath = "defaultRegistryPath";
}
//Credentials Constants
export const NULL_GUID = '00000000-0000-0000-0000-000000000000';
//Azure Container Registries
export const skus = ["Standard", "Basic", "Premium"];
//Repository + Tag format
export const imageTagRegExp = new RegExp('^[a-zA-Z0-9.-_/]{1,256}:(?![.-])[a-zA-Z0-9.-_]{1,128}$');