Class Binding
java.lang.Object
org.springframework.cloud.bindings.Binding
A representation of a binding as defined by the
Kubernetes Service Binding Specification.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the name of the binding.getPath()Returns the path of the binding.Returns the provider of the binding.Returns the secret of the binding.getSecretFilePath(String name) Returns thePathto a secret file on disk.getType()Returns the type of the binding.inthashCode()toString()
-
Field Details
-
KIND
The key for the kind of a binding.- See Also:
-
PROVIDER
The key for the provider of a binding.- See Also:
-
TYPE
The key for the type of a binding.- See Also:
-
-
Constructor Details
-
Binding
Creates a newBindinginstance using the specified file system root.- Parameters:
path- the path to theBinding.
-
Binding
Creates a newBindinginstance using the specified content.- Parameters:
name- the name of theBinding.path- the path to theBinding.secret- the secret of theBinding.
-
-
Method Details
-
getName
Returns the name of the binding.- Returns:
- the name of the binding
-
getPath
Returns the path of the binding.- Returns:
- the path of the binding
-
getSecret
Returns the secret of the binding.- Returns:
- a Map of the secret of the binding
-
getType
Returns the type of the binding.- Returns:
- the type of the binding
-
getProvider
Returns the provider of the binding.- Returns:
- the provider of the binding
-
getSecretFilePath
Returns thePathto a secret file on disk.- Parameters:
name- the name of the secret key.- Returns:
- the
Pathto a secret file on disk.
-
equals
-
hashCode
public int hashCode() -
toString
-