mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-09 00:43:11 +00:00
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
|
|
namespace KubernetesWorkflow
|
|||
|
|
{
|
|||
|
|
public class Configuration
|
|||
|
|
{
|
|||
|
|
public Configuration(string k8sNamespace, string? kubeConfigFile, TimeSpan operationTimeout, TimeSpan retryDelay, ConfigurationLocationEntry[] locationMap)
|
|||
|
|
{
|
|||
|
|
K8sNamespace = k8sNamespace;
|
|||
|
|
KubeConfigFile = kubeConfigFile;
|
|||
|
|
OperationTimeout = operationTimeout;
|
|||
|
|
RetryDelay = retryDelay;
|
|||
|
|
LocationMap = locationMap;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string K8sNamespace { get; }
|
|||
|
|
public string? KubeConfigFile { get; }
|
|||
|
|
public TimeSpan OperationTimeout { get; }
|
|||
|
|
public TimeSpan RetryDelay { get; }
|
|||
|
|
public ConfigurationLocationEntry[] LocationMap { get; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class ConfigurationLocationEntry
|
|||
|
|
{
|
|||
|
|
public ConfigurationLocationEntry(Location location, string workerName)
|
|||
|
|
{
|
|||
|
|
Location = location;
|
|||
|
|
WorkerName = workerName;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public Location Location { get; }
|
|||
|
|
public string WorkerName { get; }
|
|||
|
|
}
|
|||
|
|
}
|