Docr::Endpoints::Networks
The Networks class provides methods to interact with network-related endpoints.
This class uses the client to send requests to the server and handles the responses.
Constructors
Instance methods
create(config : Docr::Types::NetworkConfig)
Creates a new network using the given configuration.
- config: Configuration for creating the network.
Returns the created network.
delete(id : String)
Deletes a specific network using its ID.
- id: ID of the network to delete.
Deletes the network.
disconnect
Disconnects a given container from a network. (Implementation is currently pending.)
Inspects a specific network using its ID. Additional optional parameters can be used to adjust the verbosity and scope of the inspection.
- id: ID of the network to inspect.
- verbose: If true, provides detailed information. Default is false.
- scope: Specifies the scope of the inspection. Default is "local".
Returns details about the network.