UNPKG

@soft-stech/fleet

Version:
186 lines (185 loc) 6.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ImageScan = void 0; const IoK8sApimachineryPkgApisMetaV1ObjectMeta_1 = require("@soft-stech/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"); const base_1 = require("@soft-stech/base"); const validate_1 = require("@soft-stech/validate"); const schemaId = "fleet.cattle.io.v1alpha1.ImageScan"; const schema = { "type": "object", "properties": { "apiVersion": { "type": "string", "enum": [ "fleet.cattle.io/v1alpha1" ] }, "kind": { "type": "string", "enum": [ "ImageScan" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "properties": { "gitrepoName": { "nullable": true, "type": "string" }, "image": { "nullable": true, "type": "string" }, "interval": { "nullable": true, "type": "string" }, "policy": { "properties": { "alphabetical": { "nullable": true, "properties": { "order": { "nullable": true, "type": "string" } }, "type": "object" }, "semver": { "nullable": true, "properties": { "range": { "nullable": true, "type": "string" } }, "type": "object" } }, "type": "object", "nullable": true }, "secretRef": { "nullable": true, "properties": { "name": { "default": "", "type": "string", "nullable": true } }, "type": "object" }, "suspend": { "type": "boolean", "nullable": true }, "tagName": { "nullable": true, "type": "string" } }, "type": "object", "nullable": true }, "status": { "properties": { "canonicalImageName": { "type": "string", "nullable": true }, "conditions": { "items": { "properties": { "lastTransitionTime": { "type": "string", "nullable": true }, "lastUpdateTime": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "reason": { "type": "string", "nullable": true }, "status": { "type": "string" }, "type": { "type": "string" } }, "required": [ "status", "type" ], "type": "object" }, "type": "array", "nullable": true }, "lastScanTime": { "format": "date-time", "type": "string", "nullable": true }, "latestDigest": { "type": "string", "nullable": true }, "latestImage": { "type": "string", "nullable": true }, "latestTag": { "type": "string", "nullable": true }, "observedGeneration": { "format": "int64", "type": "integer", "nullable": true } }, "type": "object", "nullable": true } }, "required": [ "apiVersion", "kind" ] }; class ImageScan extends base_1.Model { constructor(data) { super({ apiVersion: ImageScan.apiVersion, kind: ImageScan.kind, ...data }); } } exports.ImageScan = ImageScan; ImageScan.apiVersion = "fleet.cattle.io/v1alpha1"; ImageScan.kind = "ImageScan"; ImageScan.is = (0, base_1.createTypeMetaGuard)(ImageScan); (0, base_1.setSchema)(ImageScan, schemaId, () => { (0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)(); (0, validate_1.register)(schemaId, schema); });