pmcf
Version:
Poor mans configuration management
79 lines (78 loc) • 2.4 kB
text/typescript
export function subnets(sources: any): Set<any>;
export class Subnet extends Base {
static get typeDefinition(): {
name: string;
owners: string[];
priority: number;
constructWithIdentifierOnly: boolean;
attributes: {
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;
};
family: {
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;
};
};
};
networks: Set<any>;
prefix: any;
prefixLength: any;
longPrefix: any;
family: any;
get cidr(): string;
get fullName(): string;
matchesAddress(address: any): any;
get isLinkLocal(): any;
get addressRange(): any;
get dhcpPools(): any[];
get address(): string;
get longAddress(): string;
_traverse(...args: any[]): boolean;
}
export const SUBNET_GLOBAL_IPV4: Subnet;
export const SUBNET_GLOBAL_IPV6: Subnet;
export const SUBNET_LOCALHOST_IPV4: Subnet;
export const SUBNET_LOCALHOST_IPV6: Subnet;
export const SUBNET_LINK_LOCAL_IPV6: Subnet;
import { Base } from "./base.mjs";