@kustodian/registry 1.1.0 → 2.0.0

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/auth.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import type { RegistryAuthType } from './types.js';
2
+ /**
3
+ * Gets authentication for Docker Hub from environment variables.
4
+ */
5
+ export declare function get_dockerhub_auth(): RegistryAuthType | undefined;
6
+ /**
7
+ * Gets authentication for GHCR from environment variables.
8
+ */
9
+ export declare function get_ghcr_auth(): RegistryAuthType | undefined;
10
+ /**
11
+ * Gets authentication for a registry based on hostname.
12
+ */
13
+ export declare function get_auth_for_registry(registry: string): RegistryAuthType | undefined;
14
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,GAAG,SAAS,CASjE;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,gBAAgB,GAAG,SAAS,CAQ5D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAkBpF"}
@@ -0,0 +1,24 @@
1
+ import type { ImageReferenceType, RegistryClientConfigType, RegistryClientType } from './types.js';
2
+ /**
3
+ * Parses an image string into its components.
4
+ *
5
+ * Supports various formats:
6
+ * - nginx -> docker.io/library/nginx
7
+ * - prom/prometheus -> docker.io/prom/prometheus
8
+ * - ghcr.io/org/image -> ghcr.io/org/image
9
+ * - ghcr.io/org/image:tag -> ghcr.io/org/image:tag
10
+ */
11
+ export declare function parse_image_reference(image: string): ImageReferenceType;
12
+ /**
13
+ * Detects the registry type from an image reference.
14
+ */
15
+ export declare function detect_registry_type(image: ImageReferenceType): 'dockerhub' | 'ghcr';
16
+ /**
17
+ * Creates a registry client for the given registry type.
18
+ */
19
+ export declare function create_registry_client(registry_type: 'dockerhub' | 'ghcr', config?: RegistryClientConfigType): RegistryClientType;
20
+ /**
21
+ * Creates a registry client with auto-detected type and authentication.
22
+ */
23
+ export declare function create_client_for_image(image: ImageReferenceType): RegistryClientType;
24
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEnG;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CA2CvE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAOpF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,WAAW,GAAG,MAAM,EACnC,MAAM,CAAC,EAAE,wBAAwB,GAChC,kBAAkB,CAOpB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,CAKrF"}
@@ -0,0 +1,6 @@
1
+ import type { RegistryClientConfigType, RegistryClientType } from './types.js';
2
+ /**
3
+ * Creates a Docker Hub registry client.
4
+ */
5
+ export declare function create_dockerhub_client(config?: RegistryClientConfigType): RegistryClientType;
6
+ //# sourceMappingURL=dockerhub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dockerhub.d.ts","sourceRoot":"","sources":["../src/dockerhub.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AA6EpB;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,CAAC,EAAE,wBAAwB,GAAG,kBAAkB,CA0C7F"}
package/dist/ghcr.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { RegistryClientConfigType, RegistryClientType } from './types.js';
2
+ /**
3
+ * Creates a GitHub Container Registry client.
4
+ */
5
+ export declare function create_ghcr_client(config?: RegistryClientConfigType): RegistryClientType;
6
+ //# sourceMappingURL=ghcr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ghcr.d.ts","sourceRoot":"","sources":["../src/ghcr.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AA8EpB;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,wBAAwB,GAAG,kBAAkB,CA0CxF"}
package/dist/helm.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { RegistryClientConfigType, RegistryClientType } from './types.js';
2
+ /**
3
+ * Creates a Helm repository client.
4
+ * Supports both traditional Helm repositories and OCI registries.
5
+ */
6
+ export declare function create_helm_client(helm_config: {
7
+ repository?: string;
8
+ oci?: string;
9
+ chart: string;
10
+ }, config?: RegistryClientConfigType): RegistryClientType;
11
+ //# sourceMappingURL=helm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../src/helm.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAuHpB;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACjE,MAAM,CAAC,EAAE,wBAAwB,GAChC,kBAAkB,CA2CpB"}
@@ -0,0 +1,8 @@
1
+ export { get_auth_for_registry, get_dockerhub_auth, get_ghcr_auth } from './auth.js';
2
+ export { create_client_for_image, create_registry_client, detect_registry_type, parse_image_reference, } from './client.js';
3
+ export { create_dockerhub_client } from './dockerhub.js';
4
+ export { create_ghcr_client } from './ghcr.js';
5
+ export { create_helm_client } from './helm.js';
6
+ export type { ImageReferenceType, RegistryAuthType, RegistryClientConfigType, RegistryClientType, TagInfoType, VersionCheckResultType, } from './types.js';
7
+ export { check_version_update, DEFAULT_SEMVER_PATTERN, filter_semver_tags, find_latest_matching, } from './version.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGrF,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,WAAW,EACX,sBAAsB,GACvB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,cAAc,CAAC"}