Class ServicePlacement
Service container placement options.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServicePlacement
Properties
Constraints
Service constraints formatted as CONSTRAINT==VALUE or CONSTRAINT!=VALUE.
Declaration
public List<string> Constraints { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Platforms
Specifies the platforms where the service containers may be deployed or empty when there is no constraints.
Declaration
public List<ServicePlatform> Platforms { get; set; }
Property Value
Type | Description |
---|---|
List<ServicePlatform> |
Preferences
Service placement preferences.
Declaration
public ServicePlacementPreferences Preferences { get; set; }
Property Value
Type | Description |
---|---|
ServicePlacementPreferences |
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()