/// <summary> /// コンストラクタ /// </summary> public TrainingController( ITrainingHistoryRepository trainingHistoryRepository, IInferenceHistoryRepository inferenceHistoryRepository, ITensorBoardContainerRepository tensorBoardContainerRepository, IDataSetRepository dataSetRepository, ITagRepository tagRepository, ITenantRepository tenantRepository, INodeRepository nodeRepository, ITagLogic tagLogic, ITrainingLogic trainingLogic, IStorageLogic storageLogic, IGitLogic gitLogic, IClusterManagementLogic clusterManagementLogic, IOptions <ContainerManageOptions> containerOptions, IUnitOfWork unitOfWork, IHttpContextAccessor accessor) : base(accessor) { this.trainingHistoryRepository = trainingHistoryRepository; this.inferenceHistoryRepository = inferenceHistoryRepository; this.tensorBoardContainerRepository = tensorBoardContainerRepository; this.dataSetRepository = dataSetRepository; this.tagRepository = tagRepository; this.tenantRepository = tenantRepository; this.nodeRepository = nodeRepository; this.tagLogic = tagLogic; this.trainingLogic = trainingLogic; this.storageLogic = storageLogic; this.gitLogic = gitLogic; this.clusterManagementLogic = clusterManagementLogic; this.containerOptions = containerOptions.Value; this.unitOfWork = unitOfWork; }
/// <summary> /// コンストラクタで各 DI オブジェクトを引数で受け取ります。 /// </summary> public SyncClusterFromDBTimer( ITenantRepository tenantRepository, IRegistryRepository registryRepository, INodeRepository nodeRepository, IUnitOfWork unitOfWork, IClusterManagementService clusterManagementService, GitLabRegistryService gitLabRegistryService, DockerHubRegistryService dockerHubRegistryService, PrivateDockerRegistryService privateDockerRegistryService, NvidiaGPUCloudRegistryService nvidiaGPUCloudRegistryService, IClusterManagementLogic clusterManagementLogic, IStorageLogic storageLogic, IOptions <ContainerManageOptions> containerManageOptions, IOptions <SyncClusterFromDBOptions> SyncClusterFromDBOptions, ILogger <SyncClusterFromDBTimer> logger ) : base(logger, SyncClusterFromDBOptions.Value) { // 各 DI オブジェクトの設定 this.tenantRepository = tenantRepository; this.registryRepository = registryRepository; this.nodeRepository = nodeRepository; this.unitOfWork = unitOfWork; this.clusterManagementService = clusterManagementService; this.gitLabRegistryService = gitLabRegistryService; this.dockerHubRegistryService = dockerHubRegistryService; this.privateDockerRegistryService = privateDockerRegistryService; this.nvidiaGPUCloudRegistryService = nvidiaGPUCloudRegistryService; this.clusterManagementLogic = clusterManagementLogic; this.storageLogic = storageLogic; this.containerManageOptions = containerManageOptions.Value; }
/// <summary> /// コンストラクタ /// </summary> public ClusterManagementLogic( ICommonDiLogic commonDiLogic, IUserRepository userRepository, INodeRepository nodeRepository, ITensorBoardContainerRepository tensorBoardContainerRepository, IClusterManagementService clusterManagementService, IUnitOfWork unitOfWork, ILoginLogic loginLogic, IGitLogic gitLogic, IRegistryLogic registryLogic, IVersionLogic versionLogic, IOptions <ContainerManageOptions> containerOptions, IOptions <ActiveDirectoryOptions> adOptions ) : base(commonDiLogic) { this.tensorBoardContainerRepository = tensorBoardContainerRepository; this.userRepository = userRepository; this.nodeRepository = nodeRepository; this.clusterManagementService = clusterManagementService; this.loginLogic = loginLogic; this.gitLogic = gitLogic; this.registryLogic = registryLogic; this.versionLogic = versionLogic; this.unitOfWork = unitOfWork; this.containerOptions = containerOptions.Value; this.adOptions = adOptions.Value; }
public NodeController( INodeRepository nodeRepository, IUnitOfWork unitOfWork, IClusterManagementLogic clusterManagementLogic, IOptions <ContainerManageOptions> containerManageOptions, IHttpContextAccessor accessor) : base(accessor) { this.nodeRepository = nodeRepository; this.unitOfWork = unitOfWork; this.clusterManagementLogic = clusterManagementLogic; this.containerManageOptions = containerManageOptions.Value; }
public ResourceController( ITenantRepository tenantRepository, IUserRepository userRepository, ICommonDiLogic commonDiLogic, IClusterManagementLogic clusterManagementLogic, IOptions <ContainerManageOptions> containerManageOptions, IHttpContextAccessor accessor) : base(accessor) { this.tenantRepository = tenantRepository; this.userRepository = userRepository; this.commonDiLogic = commonDiLogic; this.clusterManagementLogic = clusterManagementLogic; this.containerManageOptions = containerManageOptions.Value; }
/// <summary> /// DBにないテナントに対応する出力モデルを作成する /// </summary> public TenantResourceOutputModel(string tenantName, ContainerManageOptions containerManageOptions) { if (tenantName == containerManageOptions.KqiAdminNamespace) { // KQI管理者用。(テナント実体は存在しないが、k8sの名前空間として使用している) Id = 0; Name = containerManageOptions.KqiAdminNamespace; DisplayName = containerManageOptions.KqiAdminNamespace; } else { // 正体不明テナント Id = -1; Name = tenantName; DisplayName = "Unknown:" + tenantName; } ContainerResourceList = new List <ContainerDetailsOutputModel>(); }
public TenantController( ITenantRepository tenantRepository, IUserRepository userRepository, IRoleRepository roleRepository, IRegistryRepository registryRepository, IGitRepository gitRepository, ICommonDiLogic commonDiLogic, IStorageLogic storageLogic, IClusterManagementLogic clusterManagementLogic, IOptions <ContainerManageOptions> containerManageOptions, IUnitOfWork unitOfWork, IHttpContextAccessor accessor) : base(accessor) { this.tenantRepository = tenantRepository; this.userRepository = userRepository; this.roleRepository = roleRepository; this.registryRepository = registryRepository; this.gitRepository = gitRepository; this.commonDiLogic = commonDiLogic; this.storageLogic = storageLogic; this.clusterManagementLogic = clusterManagementLogic; this.containerManageOptions = containerManageOptions.Value; this.unitOfWork = unitOfWork; }