public static class DockerClient.ListNetworksParam extends DockerClient.Param
DockerClient.listNetworks(ListNetworksParam...)| Modifier and Type | Method and Description |
|---|---|
static DockerClient.ListNetworksParam |
builtInNetworks()
Return built-in networks only.
|
static DockerClient.ListNetworksParam |
byNetworkId(String id)
Filter networks by ID.
|
static DockerClient.ListNetworksParam |
byNetworkName(String name)
Filter networks by name.
|
static DockerClient.ListNetworksParam |
customNetworks()
Return user-defined (custom) networks only.
|
static DockerClient.ListNetworksParam |
filter(String name,
String value)
Create a custom filter.
|
static DockerClient.ListNetworksParam |
withDriver(String driver)
Filter networks by network driver.
|
static DockerClient.ListNetworksParam |
withLabel(String label)
Return networks with a label.
|
static DockerClient.ListNetworksParam |
withLabel(String label,
String value)
Return networks with a label value.
|
static DockerClient.ListNetworksParam |
withType(Network.Type type)
Filter networks by network type.
|
equals, hashCode, name, valuepublic static DockerClient.ListNetworksParam filter(String name, String value)
name - of filtervalue - of filterpublic static DockerClient.ListNetworksParam byNetworkId(String id)
id - Matches all or part of a network ID.public static DockerClient.ListNetworksParam byNetworkName(String name)
name - Matches all or part of a network name.public static DockerClient.ListNetworksParam withDriver(String driver)
driver - The network driver name.public static DockerClient.ListNetworksParam withType(Network.Type type)
type - The network type.builtInNetworks(),
customNetworks()public static DockerClient.ListNetworksParam builtInNetworks()
withType(com.spotify.docker.client.messages.Network.Type),
customNetworks()public static DockerClient.ListNetworksParam customNetworks()
withType(com.spotify.docker.client.messages.Network.Type),
builtInNetworks()public static DockerClient.ListNetworksParam withLabel(String label, String value)
label - The label to filter onvalue - The value of the labelpublic static DockerClient.ListNetworksParam withLabel(String label)
label - The label to filter onCopyright © 2019. All rights reserved.