mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
export const REGISTRY_ACCESS = {
|
|
ELIGIBLE: "eligible",
|
|
INELIGIBLE: "ineligible",
|
|
UNKNOWN: "unknown",
|
|
} as const;
|
|
|
|
export type RegistryAccessStatus =
|
|
(typeof REGISTRY_ACCESS)[keyof typeof REGISTRY_ACCESS];
|
|
|
|
export interface RegistryAccessResult {
|
|
status: RegistryAccessStatus;
|
|
}
|
|
|
|
export const isRegistryEligible = (
|
|
cloudEnabled: unknown,
|
|
registryEnabled: unknown,
|
|
manageRegistry: unknown,
|
|
) =>
|
|
cloudEnabled === true && registryEnabled === true && manageRegistry === true;
|