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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BindingCreate aBindingfrom the specified source and destination.static Bindingfrom(VolumeName sourceVolume, String destination) Create aBindingfrom the specified source and destination.inthashCode()static BindingCreate aBindingwith the specified value containing a host source, container destination, and options.toString()
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create aBindingwith the specified value containing a host source, container destination, and options.- Parameters:
value- the volume binding value- Returns:
- a new
Bindinginstance
-
from
Create aBindingfrom the specified source and destination.- Parameters:
sourceVolume- the volume binding host sourcedestination- the volume binding container destination- Returns:
- a new
Bindinginstance
-
from
Create aBindingfrom the specified source and destination.- Parameters:
source- the volume binding host sourcedestination- the volume binding container destination- Returns:
- a new
Bindinginstance
-