Table of Contents

Class LocalVolumeOptions

Namespace
Bielu.Microservices.Orchestrator.Models
Assembly
Bielu.Microservices.Orchestrator.dll

Options for creating a local-driver volume bound to a host directory. Produces the driver opts required for docker volume create --driver local --opt type=none --opt o=bind --opt device=….

public class LocalVolumeOptions
Inheritance
LocalVolumeOptions
Inherited Members

Properties

Device

The host filesystem path to bind. Maps to the device driver option.

public string Device { get; set; }

Property Value

string

MountOptions

Mount flags. Defaults to Bind. Combine flags with the bitwise OR operator, e.g. LocalMountOptions.Bind | LocalMountOptions.ReadOnly.

public LocalMountOptions MountOptions { get; set; }

Property Value

LocalMountOptions

Type

The filesystem type passed to mount. Defaults to "none" for a bind mount.

public string Type { get; set; }

Property Value

string

Methods

ToDictionary()

Converts this object to the driver options dictionary accepted by the volume manager.

public IDictionary<string, string> ToDictionary()

Returns

IDictionary<string, string>