Class DockerFixture.StackDefinition
Parses useful information from a Docker YAML compose file.
Namespace: Neon.Xunit
Assembly: Neon.Xunit.dll
Syntax
public class DockerFixture.StackDefinition
Constructors
StackDefinition(string, string)
Constructor.
Declaration
public StackDefinition(string name, string composeYaml)
Parameters
Type | Name | Description |
---|---|---|
string | name | The stack name. |
string | composeYaml | The stack compose YAML definition. |
Properties
Name
Returns the stack name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Services
Returns information about the stack's services.
Declaration
public List<DockerFixture.StackService> Services { get; }
Property Value
Type | Description |
---|---|
List<DockerFixture.StackService> |
Methods
GetServiceName(StackService)
Returns the service name Docker will assign to a stack service.
Declaration
public string GetServiceName(DockerFixture.StackService service)
Parameters
Type | Name | Description |
---|---|---|
DockerFixture.StackService | service | The stack service. |
Returns
Type | Description |
---|---|
string | The service name. |