@push.rocks/smartregistry 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.d.ts +8 -0
- package/dist_ts/00_commitinfo_data.js +9 -0
- package/dist_ts/classes.smartregistry.d.ts +45 -0
- package/dist_ts/classes.smartregistry.js +113 -0
- package/dist_ts/core/classes.authmanager.d.ts +108 -0
- package/dist_ts/core/classes.authmanager.js +315 -0
- package/dist_ts/core/classes.baseregistry.d.ts +28 -0
- package/dist_ts/core/classes.baseregistry.js +6 -0
- package/dist_ts/core/classes.registrystorage.d.ts +109 -0
- package/dist_ts/core/classes.registrystorage.js +226 -0
- package/dist_ts/core/index.d.ts +7 -0
- package/dist_ts/core/index.js +10 -0
- package/dist_ts/core/interfaces.core.d.ts +142 -0
- package/dist_ts/core/interfaces.core.js +5 -0
- package/dist_ts/index.d.ts +8 -0
- package/dist_ts/index.js +13 -0
- package/dist_ts/npm/classes.npmregistry.d.ts +36 -0
- package/dist_ts/npm/classes.npmregistry.js +717 -0
- package/dist_ts/npm/index.d.ts +5 -0
- package/dist_ts/npm/index.js +6 -0
- package/dist_ts/npm/interfaces.npm.d.ts +245 -0
- package/dist_ts/npm/interfaces.npm.js +6 -0
- package/dist_ts/oci/classes.ociregistry.d.ts +43 -0
- package/dist_ts/oci/classes.ociregistry.js +565 -0
- package/dist_ts/oci/index.d.ts +5 -0
- package/dist_ts/oci/index.js +6 -0
- package/dist_ts/oci/interfaces.oci.d.ts +103 -0
- package/dist_ts/oci/interfaces.oci.js +5 -0
- package/dist_ts/paths.d.ts +1 -0
- package/dist_ts/paths.js +3 -0
- package/dist_ts/plugins.d.ts +6 -0
- package/dist_ts/plugins.js +9 -0
- package/npmextra.json +18 -0
- package/package.json +49 -0
- package/readme.hints.md +3 -0
- package/readme.md +486 -0
- package/ts/00_commitinfo_data.ts +8 -0
- package/ts/classes.smartregistry.ts +129 -0
- package/ts/core/classes.authmanager.ts +388 -0
- package/ts/core/classes.baseregistry.ts +36 -0
- package/ts/core/classes.registrystorage.ts +270 -0
- package/ts/core/index.ts +11 -0
- package/ts/core/interfaces.core.ts +159 -0
- package/ts/index.ts +16 -0
- package/ts/npm/classes.npmregistry.ts +890 -0
- package/ts/npm/index.ts +6 -0
- package/ts/npm/interfaces.npm.ts +263 -0
- package/ts/oci/classes.ociregistry.ts +734 -0
- package/ts/oci/index.ts +6 -0
- package/ts/oci/interfaces.oci.ts +101 -0
- package/ts/paths.ts +5 -0
- package/ts/plugins.ts +11 -0
package/ts/oci/index.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OCI Distribution Specification specific interfaces
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* OCI manifest structure
|
|
7
|
+
*/
|
|
8
|
+
export interface IOciManifest {
|
|
9
|
+
schemaVersion: number;
|
|
10
|
+
mediaType: string;
|
|
11
|
+
config: {
|
|
12
|
+
mediaType: string;
|
|
13
|
+
size: number;
|
|
14
|
+
digest: string;
|
|
15
|
+
};
|
|
16
|
+
layers: Array<{
|
|
17
|
+
mediaType: string;
|
|
18
|
+
size: number;
|
|
19
|
+
digest: string;
|
|
20
|
+
urls?: string[];
|
|
21
|
+
}>;
|
|
22
|
+
subject?: {
|
|
23
|
+
mediaType: string;
|
|
24
|
+
size: number;
|
|
25
|
+
digest: string;
|
|
26
|
+
};
|
|
27
|
+
annotations?: { [key: string]: string };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* OCI Image Index (manifest list)
|
|
32
|
+
*/
|
|
33
|
+
export interface IOciImageIndex {
|
|
34
|
+
schemaVersion: number;
|
|
35
|
+
mediaType: string;
|
|
36
|
+
manifests: Array<{
|
|
37
|
+
mediaType: string;
|
|
38
|
+
size: number;
|
|
39
|
+
digest: string;
|
|
40
|
+
platform?: {
|
|
41
|
+
architecture: string;
|
|
42
|
+
os: string;
|
|
43
|
+
'os.version'?: string;
|
|
44
|
+
'os.features'?: string[];
|
|
45
|
+
variant?: string;
|
|
46
|
+
features?: string[];
|
|
47
|
+
};
|
|
48
|
+
annotations?: { [key: string]: string };
|
|
49
|
+
}>;
|
|
50
|
+
subject?: {
|
|
51
|
+
mediaType: string;
|
|
52
|
+
size: number;
|
|
53
|
+
digest: string;
|
|
54
|
+
};
|
|
55
|
+
annotations?: { [key: string]: string };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Upload session for chunked blob uploads
|
|
60
|
+
*/
|
|
61
|
+
export interface IUploadSession {
|
|
62
|
+
uploadId: string;
|
|
63
|
+
repository: string;
|
|
64
|
+
chunks: Buffer[];
|
|
65
|
+
totalSize: number;
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
lastActivity: Date;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Tag list response
|
|
72
|
+
*/
|
|
73
|
+
export interface ITagList {
|
|
74
|
+
name: string;
|
|
75
|
+
tags: string[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Referrers response
|
|
80
|
+
*/
|
|
81
|
+
export interface IReferrersResponse {
|
|
82
|
+
schemaVersion: number;
|
|
83
|
+
mediaType: string;
|
|
84
|
+
manifests: Array<{
|
|
85
|
+
mediaType: string;
|
|
86
|
+
size: number;
|
|
87
|
+
digest: string;
|
|
88
|
+
artifactType?: string;
|
|
89
|
+
annotations?: { [key: string]: string };
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Pagination options for listing
|
|
95
|
+
*/
|
|
96
|
+
export interface IPaginationOptions {
|
|
97
|
+
/** Maximum number of results to return */
|
|
98
|
+
n?: number;
|
|
99
|
+
/** Last entry from previous request */
|
|
100
|
+
last?: string;
|
|
101
|
+
}
|
package/ts/paths.ts
ADDED
package/ts/plugins.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// native scope
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
|
|
4
|
+
export { path };
|
|
5
|
+
|
|
6
|
+
// @push.rocks scope
|
|
7
|
+
import * as smartbucket from '@push.rocks/smartbucket';
|
|
8
|
+
import * as smartlog from '@push.rocks/smartlog';
|
|
9
|
+
import * as smartpath from '@push.rocks/smartpath';
|
|
10
|
+
|
|
11
|
+
export { smartbucket, smartlog, smartpath };
|