public DestinationAeTitleController( IHttpContextAccessor httpContextAccessor, ILogger <DestinationAeTitleController> logger, IKubernetesWrapper kubernetesClient, ConfigurationValidator configurationValidator, IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration) : base(httpContextAccessor, logger, kubernetesClient, CustomResourceDefinition.DestinationAeTitleCrd, configurationValidator, dicomAdapterConfiguration) { }
public DestinationAeTitleController( IServiceProvider serviceProvider, ILogger <DestinationAeTitleController> logger, IKubernetesWrapper kubernetesClient, ConfigurationValidator configurationValidator, IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration) : base(serviceProvider, logger, kubernetesClient, CustomResourceDefinition.DestinationAeTitleCrd, configurationValidator, dicomAdapterConfiguration) { }
public InferenceRequestStore( ILoggerFactory loggerFactory, IOptions <DicomAdapterConfiguration> configuration, IKubernetesWrapper kubernetesClient) { _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); _logger = loggerFactory.CreateLogger <InferenceRequestStore>(); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); _requests = new BlockingCollection <InferenceRequestCustomResource>(); _cache = new HashSet <string>(); }
public K8sCrdMonitorService( ILoggerFactory loggerFactory, IOptions <DicomAdapterConfiguration> configuration, ILogger <K8sCrdMonitorService> logger, IKubernetesWrapper kubernetesClient, ConfigurationValidator configurationValidator) { _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); _configurationValidator = configurationValidator ?? throw new ArgumentNullException(nameof(configurationValidator)); }
public JobStore( ILoggerFactory loggerFactory, IOptions <DicomAdapterConfiguration> configuration, IKubernetesWrapper kubernetesClient, IFileSystem fileSystem) { _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); _logger = _loggerFactory.CreateLogger <JobStore>(); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); _fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); _jobs = new BlockingCollection <JobCustomResource>(); _jobIds = new HashSet <string>(); }
public CrdCrudControllerBase( IHttpContextAccessor httpContextAccessor, ILogger <S> logger, IKubernetesWrapper kubernetesClient, CustomResourceDefinition customResourceDefinition, ConfigurationValidator configurationValidator, IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration) { _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _logger = logger; _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); _customResourceDefinition = customResourceDefinition ?? throw new ArgumentNullException(nameof(customResourceDefinition)); _configurationValidator = configurationValidator ?? throw new ArgumentNullException(nameof(configurationValidator)); _dicomAdapterConfiguration = dicomAdapterConfiguration ?? throw new ArgumentNullException(nameof(dicomAdapterConfiguration)); }
public CrdCrudControllerBase( IServiceProvider serviceProvider, ILogger <S> logger, IKubernetesWrapper kubernetesClient, CustomResourceDefinition customResourceDefinition, ConfigurationValidator configurationValidator, IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration) { _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); _customResourceDefinition = customResourceDefinition ?? throw new ArgumentNullException(nameof(customResourceDefinition)); _configurationValidator = configurationValidator ?? throw new ArgumentNullException(nameof(configurationValidator)); _dicomAdapterConfiguration = dicomAdapterConfiguration ?? throw new ArgumentNullException(nameof(dicomAdapterConfiguration)); }
public CustomResourceWatcher( ILogger logger, IKubernetesWrapper client, CustomResourceDefinition crd, CancellationToken cancellationToken, Action <WatchEventType, T> handle) { Guard.Against.Null(logger, "iLogger"); Guard.Against.Null(client, "client"); Guard.Against.Null(crd, "crd"); Guard.Against.OutOfRange(crd.ApiVersion.Split('/').Count(), "crd.ApiVersion", 2, 2); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _client = client ?? throw new ArgumentNullException(nameof(client)); _crd = crd ?? throw new ArgumentNullException(nameof(crd)); _cancellationToken = cancellationToken; _handle = handle ?? throw new ArgumentNullException(nameof(handle)); _cache = new Dictionary <string, T>(); }
public AwsAuthConfigMapRepository(IKubernetesWrapper client) { _client = client; }
public NamespaceRepository(IKubernetesWrapper client) { _client = client; }
public RoleBindingRepository(IKubernetesWrapper client) { _client = client; }