UNPKG

pmcf

Version:

Poor mans configuration management

453 lines (452 loc) 14.6 kB
export class Host extends ServiceOwner { static get typeDefinition(): { name: string; priority: number; owners: string[]; extends: { name: string; owners: any[]; properties: { owner: { type: string; collection: boolean; writable: boolean; }; type: import("pacc").AttributeDefinition; name: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; description: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; priority: import("pacc").AttributeDefinition; directory: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; packaging: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; disabled: import("pacc").AttributeDefinition; tags: import("pacc").AttributeDefinition; }; }; properties: { networkInterfaces: { type: string; collection: boolean; writable: boolean; }; services: { type: string; collection: boolean; writable: boolean; }; aliases: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; os: { writable: boolean; values: string[]; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; "machine-id": { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; distribution: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; deployment: { writable: boolean; values: string[]; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; weight: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; serial: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; vendor: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; keymap: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; chassis: { writable: boolean; values: string[]; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; architecture: { writable: boolean; values: string[]; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; replaces: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; depends: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; provides: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; extends: { type: string; collection: boolean; writable: boolean; }; model: import("pacc").AttributeDefinition; isModel: import("pacc").AttributeDefinition; hostName: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; cidrAddresses: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; cidrAddress: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; addresses: { writable: boolean; collection: boolean; type: string; isKey: boolean; mandatory: boolean; private: boolean; depends: string; description: string; default: any; set: Function; get: Function; env: string[] | string; }; address: { writable: boolean; type: string; isKey: boolean; mandatory: boolean; collection: boolean; private?: boolean; depends?: string; description?: string; default?: any; set?: Function; get?: Function; env?: string[] | string; }; }; }; _extends: any[]; _aliases: Set<any>; _networkInterfaces: Map<any, any>; _provides: Set<any>; _replaces: Set<any>; _depends: Set<any>; _os: any; _distribution: any; _deployment: any; _chassis: any; _vendor: any; _architecture: any; _serial: any; _keymap: any; extra: any; _applyExtends(host: any): void; set serial(value: any); get serial(): any; set deployment(value: any); get deployment(): any; set chassis(value: any); get chassis(): any; set vendor(value: any); get vendor(): any; set keymap(value: any); get keymap(): any; set architecture(value: any); get architecture(): any; get isTemplate(): true | RegExpMatchArray; get isModel(): boolean; get model(): any; set aliases(value: any); get aliases(): any; set extends(value: any[]); get extends(): any[]; set provides(value: any); get provides(): any; set replaces(value: any); get replaces(): any; set depends(value: any); get depends(): any; set os(value: any); get os(): any; set distribution(value: any); get distribution(): any; get modelName(): any; get hostName(): string; get foreignDomainNames(): any[]; get foreignDomains(): Set<any>; get domains(): Set<any>; get directDomainNames(): Set<any>; get domainNames(): Set<any>; get domainName(): any; domainNamesIn(domain: any): Generator<any, void, unknown>; get clusters(): Set<any>; get host(): this; hosts(): Generator<this, void, unknown>; get networks(): Set<any>; findNetworkInterfaces(filter: any): Generator<any, void, any>; findNetworkInterface(filter: any): any; set networkInterfaces(networkInterface: Map<any, any>); get networkInterfaces(): Map<any, any>; networkAddresses(filter: any): Generator<any, void, any>; get address(): any; get addresses(): Iterable<string>; get subnets(): Set<any>; publicKey(type?: string): Promise<string>; preparePackages(dir: any): AsyncGenerator<{ dir: any; sources: FileContentProvider[]; outputs: Set<typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>; properties: { name: string; description: string; access: string; dependencies: any[]; provides: any[]; replaces: any[]; requires: any[]; backup: string; hooks: any; }; }, void, unknown>; } import { ServiceOwner } from "pmcf"; import { FileContentProvider } from "npm-pkgbuild";