コード例 #1
0
 public DestinationAeTitleController(
     IHttpContextAccessor httpContextAccessor,
     ILogger <DestinationAeTitleController> logger,
     IKubernetesWrapper kubernetesClient,
     ConfigurationValidator configurationValidator,
     IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration)
     : base(httpContextAccessor, logger, kubernetesClient, CustomResourceDefinition.DestinationAeTitleCrd, configurationValidator, dicomAdapterConfiguration)
 {
 }
コード例 #2
0
 public DestinationAeTitleController(
     IServiceProvider serviceProvider,
     ILogger <DestinationAeTitleController> logger,
     IKubernetesWrapper kubernetesClient,
     ConfigurationValidator configurationValidator,
     IOptions <DicomAdapterConfiguration> dicomAdapterConfiguration)
     : base(serviceProvider, logger, kubernetesClient, CustomResourceDefinition.DestinationAeTitleCrd, configurationValidator, dicomAdapterConfiguration)
 {
 }
コード例 #3
0
 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>();
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 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>();
 }
コード例 #6
0
 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));
 }
コード例 #7
0
 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));
 }
コード例 #8
0
        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>();
        }
コード例 #9
0
 public AwsAuthConfigMapRepository(IKubernetesWrapper client)
 {
     _client = client;
 }
コード例 #10
0
 public NamespaceRepository(IKubernetesWrapper client)
 {
     _client = client;
 }
コード例 #11
0
 public RoleBindingRepository(IKubernetesWrapper client)
 {
     _client = client;
 }