@nasriya/orchestriq
Version:
A package to generate Docker files
26 lines (25 loc) • 829 B
JavaScript
import StackNetwork from "./StackNetwork.js";
class ServicesNetworksManager {
constructor(container) {
this.
}
/**
* Creates a new network and adds it to the container.
* @param network The data for the network to create.
* @returns The created network.
* @throws {Error} If a network with the same name already exists.
*/
create(network) {
const nw = new StackNetwork(network, this.
this.
return nw;
}
/**
* Returns a record of all networks in the container.
* @returns {Record<string, StackNetwork>} A record of all networks in the container.
*/
get list() { return this.
}
export default ServicesNetworksManager;