MCPcopy
hub / github.com/serverless/serverless / getNetwork

Method getNetwork

packages/util/src/docker/index.js:901–903  ·  view source on GitHub ↗

* Gets a Docker network by name * @param {Object} params * @param {string} params.networkName - Name of the network * @returns {Promise } Network object

({ networkName })

Source from the content-addressed store, hash-verified

899 * @returns {Promise<Dockerode.Network>} Network object
900 */
901 getNetwork({ networkName }) {
902 return this.client.getNetwork(networkName)
903 }
904
905 /**
906 * Removes a Docker network if it exists

Callers 2

removeNetworkMethod · 0.95
removeNetworkIfExistsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected