2022-02-27 16:26:13 +00:00
|
|
|
import { Model, UUID } from '@/api/definitions';
|
2022-02-27 16:40:51 +00:00
|
|
|
import { ServerEggVariable, ServerStatus } from '@/api/server/types';
|
2022-02-13 20:44:19 +00:00
|
|
|
|
|
|
|
interface SecurityKey extends Model {
|
2022-02-27 16:26:13 +00:00
|
|
|
uuid: UUID;
|
2022-02-13 20:44:19 +00:00
|
|
|
name: string;
|
|
|
|
type: 'public-key';
|
|
|
|
publicKeyId: string;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
}
|
2022-02-20 18:07:12 +00:00
|
|
|
|
|
|
|
interface PersonalAccessToken extends Model {
|
|
|
|
identifier: string;
|
|
|
|
description: string;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
lastUsedAt: Date | null;
|
|
|
|
}
|
2022-02-27 16:40:51 +00:00
|
|
|
|
|
|
|
interface Allocation extends Model {
|
|
|
|
id: number;
|
|
|
|
ip: string;
|
|
|
|
alias: string | null;
|
|
|
|
port: number;
|
|
|
|
notes: string | null;
|
|
|
|
isDefault: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Server extends Model {
|
|
|
|
id: string;
|
|
|
|
internalId: number | string;
|
|
|
|
uuid: UUID;
|
|
|
|
name: string;
|
|
|
|
node: string;
|
|
|
|
status: ServerStatus;
|
|
|
|
sftpDetails: {
|
|
|
|
ip: string;
|
|
|
|
port: number;
|
|
|
|
};
|
|
|
|
invocation: string;
|
|
|
|
dockerImage: string;
|
|
|
|
description: string;
|
|
|
|
limits: {
|
|
|
|
memory: number;
|
|
|
|
swap: number;
|
|
|
|
disk: number;
|
|
|
|
io: number;
|
|
|
|
cpu: number;
|
|
|
|
threads: string;
|
|
|
|
};
|
|
|
|
eggFeatures: string[];
|
|
|
|
featureLimits: {
|
|
|
|
databases: number;
|
|
|
|
allocations: number;
|
|
|
|
backups: number;
|
|
|
|
};
|
|
|
|
isInstalling: boolean;
|
|
|
|
isTransferring: boolean;
|
|
|
|
variables: ServerEggVariable[];
|
|
|
|
allocations: Allocation[];
|
|
|
|
}
|