generated from SwissLife-OSS/template
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathContainerInstance.cs
More file actions
71 lines (61 loc) · 1.64 KB
/
ContainerInstance.cs
File metadata and controls
71 lines (61 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Collections.Generic;
namespace Squadron;
/// <summary>Represents a created docker container</summary>
public class ContainerInstance : IDisposable
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>
/// The identifier.
/// </value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the name
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the address.
/// </summary>
/// <value>
/// The address.
/// </value>
public string Address { get; set; }
/// <summary>
/// Gets or sets the ip address.
/// </summary>
/// <value>
/// The ip address.
/// </value>
public string IpAddress { get; set; }
/// <summary>
/// Gets or sets the host port.
/// </summary>
/// <value>
/// The host port.
/// </value>
public int HostPort { get; set; }
/// <summary>
/// A list of additional ports, that were exposed in addition to the main port
/// </summary>
public IList<ContainerPortMapping> AdditionalPorts { get; } =
new List<ContainerPortMapping>();
/// <summary>
/// Gets a value indicating whether this instance is running.
/// </summary>
/// <value>
/// <c>true</c> if this instance is running; otherwise, <c>false</c>.
/// </value>
public bool IsRunning { get; internal set; }
/// <summary>
/// Gets or sets the container logs.
/// </summary>
/// <value>
/// The logs.
/// </value>
public IList<string> Logs { get; set; } = new List<string>();
public void Dispose()
{
}
}