gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
82 lines (81 loc) • 5.58 kB
TypeScript
/**
* Copyright 2013-2026 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import BaseWorkspacesGenerator from '../base-workspaces/index.ts';
import { getJdbcUrl, getR2dbcUrl } from '../spring-boot/generators/data-relational/support/index.ts';
import type { Config as KubernetesConfig, Deployment as KubernetesDeployment, Options as KubernetesOptions, Source as KubernetesSource, WorkspacesApplication as KubernetesWorkspacesApplication } from './types.ts';
/**
* Temporary base class for Kubernetes generators.
*/
export declare class BaseKubernetesGenerator extends BaseWorkspacesGenerator<KubernetesDeployment, KubernetesWorkspacesApplication, KubernetesConfig, KubernetesOptions, KubernetesSource> {
}
export default class KubernetesGenerator extends BaseKubernetesGenerator {
[BaseWorkspacesGenerator.INITIALIZING]: Record<"sayHello", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl>>;
[BaseWorkspacesGenerator.PROMPTING]: Record<"askForApplicationType" | "askForPath" | "askForApps", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl>>;
[BaseWorkspacesGenerator.PROMPTING_WORKSPACES]: Record<"askForMonitoring" | "askForClustersMode" | "askForServiceDiscovery" | "askForAdminPassword" | "askForKubernetesNamespace" | "askForDockerRepositoryName" | "askForDockerPushCommand" | "askForIstioSupport" | "askForKubernetesServiceType" | "askForIngressType" | "askForIngressDomain" | "askForPersistentStorage" | "askForStorageClassName", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
[BaseWorkspacesGenerator.PREPARING_WORKSPACES]: Record<"configureImageNames", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
[BaseWorkspacesGenerator.WRITING]: Record<"writeFiles", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
[BaseWorkspacesGenerator.END]: Record<"deploy", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
beforeQueue(): Promise<void>;
get initializing(): Record<"sayHello", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl>>;
get prompting(): Record<"askForApplicationType" | "askForPath" | "askForApps", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl>>;
get promptingWorkspaces(): Record<"askForMonitoring" | "askForClustersMode" | "askForServiceDiscovery" | "askForAdminPassword" | "askForKubernetesNamespace" | "askForDockerRepositoryName" | "askForDockerPushCommand" | "askForIstioSupport" | "askForKubernetesServiceType" | "askForIngressType" | "askForIngressDomain" | "askForPersistentStorage" | "askForStorageClassName", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
get preparingWorkspaces(): Record<"configureImageNames", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
get writing(): Record<"writeFiles", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
get end(): Record<"deploy", import("../base-core/types.js").GenericTask<any, import("../base/tasks.js").TaskParamWithControl & {
applications: KubernetesWorkspacesApplication[];
deployment: KubernetesDeployment;
}>>;
/**
* @private
* Returns the JDBC URL for a databaseType
*
* @param {string} databaseType
* @param {*} options: databaseName, and required infos that depends of databaseType (hostname, localDirectory, ...)
*/
getJDBCUrl(...args: Parameters<typeof getJdbcUrl>): string;
/**
* @private
* Returns the R2DBC URL for a databaseType
*
* @param {string} databaseType
* @param {*} options: databaseName, and required infos that depends of databaseType (hostname, localDirectory, ...)
*/
getR2DBCUrl(...args: Parameters<typeof getR2dbcUrl>): string;
}