Class ServiceMount
Service mount specification.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceMount
Properties
BindOptions
Specifies the bind propagation mode.
Declaration
public ServiceBindOptions BindOptions { get; set; }
Property Value
Type | Description |
---|---|
ServiceBindOptions |
Consistency
Specifies the mount consistency.
Declaration
public ServiceMountConsistency Consistency { get; set; }
Property Value
Type | Description |
---|---|
ServiceMountConsistency |
ReadOnly
Specifies whether the mount is to be read-only within the service containers.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
Source
Specifies the external mount source
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
string |
Target
Specifies where the mount will appear within the service containers.
Declaration
public string Target { get; set; }
Property Value
Type | Description |
---|---|
string |
TmpfsOptions
Optionally specifies Tempfs mount configuration options.
Declaration
public ServiceTmpfsOptions TmpfsOptions { get; set; }
Property Value
Type | Description |
---|---|
ServiceTmpfsOptions |
Type
The mount type.
Declaration
public ServiceMountType Type { get; set; }
Property Value
Type | Description |
---|---|
ServiceMountType |
VolumeOptions
Optionally specifies volume mount configuration options.
Declaration
public ServiceVolumeOptions VolumeOptions { get; set; }
Property Value
Type | Description |
---|---|
ServiceVolumeOptions |
Methods
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()