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, Moritz Halbritter
-
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()
boolean
Whether the binding uses a sensitive container path.
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
usesSensitiveContainerPath
public boolean usesSensitiveContainerPath()Whether the binding uses a sensitive container path.- Returns:
- whether the binding uses a sensitive container path
- Since:
- 3.4.0
-
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
-