pmcf
Version:
Poor mans configuration management
508 lines (507 loc) • 21 kB
text/typescript
export class Root extends Location {
static get typeDefinition(): {
name: string;
owners: any[];
priority: number;
extends: {
name: string;
owners: (string | {
name: string;
owners: string[];
priority: number;
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: {
networks: {
type: string;
collection: boolean;
writable: boolean;
};
hosts: {
type: string;
collection: boolean;
writable: boolean;
};
clusters: {
type: string;
collection: boolean;
writable: boolean;
};
subnets: {
type: {
name: string;
owners: string[];
priority: number;
constructWithIdentifierOnly: boolean;
properties: {
address: {
isKey: boolean;
type: string;
writable: boolean;
mandatory: boolean;
collection: boolean;
private?: boolean;
depends?: string;
description?: string;
default?: any;
set?: Function;
get?: Function;
env?: string[] | string;
};
networks: {
type: string;
collection: boolean;
writable: boolean;
};
prefixLength: {
type: string;
isKey: boolean;
writable: boolean;
mandatory: boolean;
collection: boolean;
private?: boolean;
depends?: string;
description?: string;
default?: any;
set?: Function;
get?: Function;
env?: string[] | string;
};
};
};
collection: boolean;
writable: boolean;
};
country: {
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;
};
domain: {
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;
};
domains: {
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;
};
timezone: {
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;
};
architectures: {
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;
};
locales: {
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;
};
administratorEmail: {
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: number;
extends: {
name: string;
owners: string[];
priority: number;
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: {
networks: {
type: string;
collection: boolean;
writable: boolean;
};
hosts: {
type: string;
collection: boolean;
writable: boolean;
};
clusters: {
type: string;
collection: boolean;
writable: boolean;
};
subnets: {
type: {
name: string;
owners: string[];
priority: number;
constructWithIdentifierOnly: boolean;
properties: {
address: {
isKey: boolean;
type: string;
writable: boolean;
mandatory: boolean;
collection: boolean;
private?: boolean;
depends?: string;
description?: string;
default?: any;
set?: Function;
get?: Function;
env?: string[] | string;
};
networks: {
type: string;
collection: boolean;
writable: boolean;
};
prefixLength: {
type: string;
isKey: boolean;
writable: boolean;
mandatory: boolean;
collection: boolean;
private?: boolean;
depends?: string;
description?: string;
default?: any;
set?: Function;
get?: Function;
env?: string[] | string;
};
};
};
collection: boolean;
writable: boolean;
};
country: {
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;
};
domain: {
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;
};
domains: {
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;
};
timezone: {
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;
};
architectures: {
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;
};
locales: {
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;
};
administratorEmail: {
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;
};
};
};
properties: {
locales: {
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;
};
};
};
properties: {};
};
constructor(directory: any);
get fullName(): string;
get root(): this;
_load(name: any, type: any): Promise<any>;
load(name: any, options: any): any;
loadAll(): Promise<void>;
}
import { Location } from "./location.mjs";