CreateManagedNetwork creates an agent network.
(create clustertypes.NetworkCreateRequest)
| 280 | |
| 281 | // CreateManagedNetwork creates an agent network. |
| 282 | func (daemon *Daemon) CreateManagedNetwork(create clustertypes.NetworkCreateRequest) error { |
| 283 | return daemon.runInNetNS(func() error { |
| 284 | _, err := daemon.createNetwork(context.TODO(), &daemon.config().Config, create.CreateRequest, create.ID, true) |
| 285 | return err |
| 286 | }) |
| 287 | } |
| 288 | |
| 289 | // CreateNetwork creates a network with the given name, driver and other optional parameters |
| 290 | func (daemon *Daemon) CreateNetwork(ctx context.Context, create networktypes.CreateRequest) (*networktypes.CreateResponse, error) { |
nothing calls this directly
no test coverage detected