Class ServiceTaskTemplate
User modifiable service task configuration.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceTaskTemplate
Properties
ContainerSpec
Service container settings.
Declaration
public ServiceContainerSpec ContainerSpec { get; set; }
Property Value
Type | Description |
---|---|
ServiceContainerSpec |
EndpointSpec
Optionally specifies the network endpoints for the service containers.
Declaration
public ServiceEndpointSpec EndpointSpec { get; set; }
Property Value
Type | Description |
---|---|
ServiceEndpointSpec |
ForceUpdate
Counter that triggers an update even if no relevant service properties have changed.
Declaration
public long ForceUpdate { get; set; }
Property Value
Type | Description |
---|---|
long |
LogDriver
Optionally specifies the log driver to use for the service containers.
Declaration
public ServiceLogDriver LogDriver { get; set; }
Property Value
Type | Description |
---|---|
ServiceLogDriver |
Networks
Specifies the networks to be attached to the service containers.
Declaration
public List<ServiceNetwork> Networks { get; set; }
Property Value
Type | Description |
---|---|
List<ServiceNetwork> |
Placement
Service container placement options.
Declaration
public ServicePlacement Placement { get; set; }
Property Value
Type | Description |
---|---|
ServicePlacement |
Resources
Specifies resource requirements for each service container.
Declaration
public ServiceResources Resources { get; set; }
Property Value
Type | Description |
---|---|
ServiceResources |
RestartPolicy
Restart policy for service containers.
Declaration
public ServiceRestartPolicy RestartPolicy { get; set; }
Property Value
Type | Description |
---|---|
ServiceRestartPolicy |
Runtime
Specifies the runtime for the service task executor.
Declaration
public string Runtime { get; set; }
Property Value
Type | Description |
---|---|
string |
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()