pmcf
Version:
Poor mans configuration management
503 lines (502 loc) • 19.3 kB
text/typescript
export class ChronyService extends ExtraSourceService {
static get typeDefinition(): {
name: string;
specializationOf: {
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;
};
};
specializations: {};
factoryFor(owner: any, value: any): any;
properties: {
alias: {
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;
};
weight: {
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;
};
systemd: import("pacc").AttributeDefinition;
port: {
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;
};
protocol: {
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;
};
type: {
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;
};
types: typeof import("pacc").string_collection_attribute;
tls: 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;
};
};
};
owners: string[];
extends: {
name: string;
owners: string[];
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;
};
};
specializations: {};
factoryFor(owner: any, value: any): any;
properties: {
alias: {
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;
};
weight: {
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;
};
systemd: import("pacc").AttributeDefinition;
port: {
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;
};
protocol: {
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;
};
type: {
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;
};
types: typeof import("pacc").string_collection_attribute;
tls: 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;
};
};
};
priority: number;
properties: {
source: {
type: string;
collection: boolean;
writable: boolean;
};
};
};
priority: number;
properties: {};
service: {
extends: string[];
services: {
"chrony-cmd": {
endpoints: ({
family: string;
port: number;
protocol: string;
tls: boolean;
path?: undefined;
} | {
family: string;
path: string;
port?: undefined;
protocol?: undefined;
tls?: undefined;
})[];
};
};
};
};
_systemd: 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: string[];
};
}, void, unknown>;
}
import { ExtraSourceService } from "../extra-source-service.mjs";
import { FileContentProvider } from "npm-pkgbuild";