class Docr::Types::VolumeConfig
- Docr::Types::VolumeConfig
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
docr/types/volume_config.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, driver : String = "local", driver_opts : Nil | Hash(String, String) = nil, labels : Nil | Hash(String, String) = nil)
Instance Method Summary
-
#driver : String
Name of the volume driver to use.
-
#driver=(driver : String)
Name of the volume driver to use.
-
#driver_opts : Hash(String, String) | Nil
A mapping of driver options and values.
-
#driver_opts=(driver_opts : Hash(String, String) | Nil)
A mapping of driver options and values.
-
#labels : Hash(String, String) | Nil
User-defined key/value metadata.
-
#labels=(labels : Hash(String, String) | Nil)
User-defined key/value metadata.
-
#name : String
The new volume's name.
-
#name=(name : String)
The new volume's name.
Constructor Detail
def self.new(name : String, driver : String = "local", driver_opts : Nil | Hash(String, String) = nil, labels : Nil | Hash(String, String) = nil)
#
Instance Method Detail
def driver_opts : Hash(String, String) | Nil
#
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
def driver_opts=(driver_opts : Hash(String, String) | Nil)
#
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.