smartnginx/ts/smartnginx.classes.nginxconfig.ts

47 lines
640 B
TypeScript
Raw Permalink Normal View History

2016-07-06 01:14:44 +00:00
import * as plugins from "./smartnginx.plugins";
export enum ZoneTypes {
}
export class NginxConfig {
zones:NginxZone[];
constructor(){
};
// interact with Zones
addZone(zoneArg:NginxZone){
}
listZones():NginxZone[] {
return this.zones;
};
removeZones(zoneArg:NginxZone){
}
// handle deployment of zones
deploy(){
};
nginxStart(){
};
nginxStop(){
};
};
export class NginxZone {
domain
constructor(optionsArg:{
zoneName:string,
type:ZoneTypes,
destination:string
}){
}
}
let mynginx = new NginxConfig();