Support deploying one certificate to multiple SSH hosts, and support deploying multiple certificates to one SSH host.
This commit is contained in:
@@ -11,6 +11,10 @@ export const accessTypeMap: Map<string, [string, string]> = new Map([
|
||||
["webhook", ["Webhook", "/imgs/providers/webhook.svg"]],
|
||||
]);
|
||||
|
||||
export const getProviderInfo = (t: string) => {
|
||||
return accessTypeMap.get(t);
|
||||
};
|
||||
|
||||
export const accessFormType = z.union(
|
||||
[
|
||||
z.literal("aliyun"),
|
||||
@@ -32,6 +36,7 @@ export type Access = {
|
||||
name: string;
|
||||
configType: string;
|
||||
usage: AccessUsage;
|
||||
group?: string;
|
||||
config:
|
||||
| TencentConfig
|
||||
| AliyunConfig
|
||||
|
||||
10
ui/src/domain/access_groups.ts
Normal file
10
ui/src/domain/access_groups.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Access } from "./access";
|
||||
|
||||
export type AccessGroup = {
|
||||
id?: string;
|
||||
name?: string;
|
||||
access?: string[];
|
||||
expand?: {
|
||||
access: Access[];
|
||||
};
|
||||
};
|
||||
@@ -6,12 +6,14 @@ export type Domain = {
|
||||
email?: string;
|
||||
crontab: string;
|
||||
access: string;
|
||||
targetAccess: string;
|
||||
targetAccess?: string;
|
||||
targetType: string;
|
||||
expiredAt?: string;
|
||||
phase?: Pahse;
|
||||
phaseSuccess?: boolean;
|
||||
lastDeployedAt?: string;
|
||||
variables?: string;
|
||||
group?: string;
|
||||
enabled?: boolean;
|
||||
created?: string;
|
||||
updated?: string;
|
||||
|
||||
Reference in New Issue
Block a user