Class Binding
java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.Binding
Volume bindings to apply when creating a container.
- Since:
- 2.5.0
- Author:
- Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Binding
Create aBinding
from the specified source and destination.static Binding
from
(VolumeName sourceVolume, String destination) Create aBinding
from the specified source and destination.int
hashCode()
static Binding
Create aBinding
with the specified value containing a host source, container destination, and options.toString()
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create aBinding
with the specified value containing a host source, container destination, and options.- Parameters:
value
- the volume binding value- Returns:
- a new
Binding
instance
-
from
Create aBinding
from the specified source and destination.- Parameters:
sourceVolume
- the volume binding host sourcedestination
- the volume binding container destination- Returns:
- a new
Binding
instance
-
from
Create aBinding
from the specified source and destination.- Parameters:
source
- the volume binding host sourcedestination
- the volume binding container destination- Returns:
- a new
Binding
instance
-