/// <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; }
/// <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> /// コンストラクタで各 DI オブジェクトを引数で受け取ります。 /// </summary> public BackupPostgresTimer( IClusterManagementService clusterManagementService, IOptions <ContainerManageOptions> containerManageOptions, IOptions <BackupPostgresTimerOptions> backupPostgresTimerOptions, ILogger <BackupPostgresTimer> logger ) : base(logger, backupPostgresTimerOptions.Value) { // kubernetes による cluster 管理サービス this.clusterManagementService = clusterManagementService; // kubernetes の token this.kubernetesToken = containerManageOptions.Value.ResourceManageKey; // backup コマンド実行環境の各情報 this.systemNamespace = backupPostgresTimerOptions.Value.SystemNamespace; this.backupSavedPath = backupPostgresTimerOptions.Value.FileSavedPath; this.backupFileBodyName = backupPostgresTimerOptions.Value.FileBodyName; this.maxNumberOfBackupFiles = backupPostgresTimerOptions.Value.MaxNumberOfBackupFiles; // DB 接続情報 string dbInfo = Environment.GetEnvironmentVariable("ConnectionStrings__DefaultConnection"); IDictionary <string, string> dbInfoDic = string2KeyValDic(dbInfo, ';', '='); dbUser = dbInfoDic["User Id"]; dbName = dbInfoDic["Database"]; }
public ClusterController(IClusterService clusterService, IUserManagementService userService, IClusterManagementService clusterManagementService, IDatabaseEngine databaseEngine, IConfiguration configurationManager) { ClusterManagementService = clusterManagementService; Cluster_Service = clusterService; UserManagementService = userService; DatabaseEngine = databaseEngine; //databaseEngine.Integrated_Populate(); //databaseEngine.Set_Totals(new Area("", "", "", "Brooklyn")); //var list = databaseEngine.Get_Totals(new Area("", "", "", "Brooklyn")); Azure_Key = configurationManager["AzureToken"]; }
public Seed( CommonDbContext context, IOptions <DeployOptions> deployOptions, IObjectStorageService objectStorageService, IClusterManagementService clusterManagementService, ILogger <Seed> logger ) { this.dbContext = context; this.deployOptions = deployOptions.Value; this.objectStorageService = objectStorageService; this.clusterManagementService = clusterManagementService; this.logger = logger; }
/// <summary> /// コンストラクタで各 DI オブジェクトを引数で受け取ります。 /// </summary> public DeleteNotebookContainerTimer( INotebookHistoryRepository notebookHistoryRepository, IClusterManagementService clusterManagementService, IUnitOfWork unitOfWork, IOptions <ContainerManageOptions> containerManageOptions, IOptions <DeleteNotebookContainerTimerOptions> deleteNotebookContainerTimerOptions, ILogger <DeleteNotebookContainerTimer> logger ) : base(logger, deleteNotebookContainerTimerOptions.Value) { // 各 DI オブジェクトの設定 this.notebookHistoryRepository = notebookHistoryRepository; this.clusterManagementService = clusterManagementService; this.unitOfWork = unitOfWork; // kubernetes の token this.kubernetesToken = containerManageOptions.Value.ResourceManageKey; }
public Seed( CommonDbContext context, IRoleRepository roleRepository, IGitRepository gitRepository, IRegistryRepository registryRepository, IOptions <DeployOptions> deployOptions, IObjectStorageService objectStorageService, IClusterManagementService clusterManagementService, ILogger <Seed> logger ) { this.dbContext = context; this.roleRepository = roleRepository; this.gitRepository = gitRepository; this.registryRepository = registryRepository; this.deployOptions = deployOptions.Value; this.objectStorageService = objectStorageService; this.clusterManagementService = clusterManagementService; this.logger = logger; }