fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-18 20:08:52 +01:00
parent 701af797c2
commit 11cf620040
5 changed files with 28 additions and 23 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/interfaces',
version: '1.0.35',
version: '1.0.36',
description: 'interfaces for working with containers'
}

View File

@ -1,6 +1,6 @@
import * as plugins from '../plugins.js';
import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js';
import { type IDockerRegistryInfo } from '../data/docker.js';
import type { IServer } from './server.js';
export interface IClusterIdentifier {
@ -42,15 +42,3 @@ export interface ICluster {
sshKeys: plugins.tsclass.network.ISshKey[];
};
}
export interface IService {
name: string;
image: string;
ports: {
web: number;
custom?: { [domain: string]: string };
};
resources?: IServiceRessources;
domains: string[];
secrets: { [key: string]: string };
}

View File

@ -7,6 +7,7 @@ export * from './env.js';
export * from './event.js';
export * from './secret.js'
export * from './server.js';
export * from './service.js';
export * from './status.js';
export * from './traffic.js';
export * from './version.js';

View File

@ -17,15 +17,18 @@ export interface IServerMetrics {
}
export interface IServer {
type: 'server';
id: string;
data: {
type: 'baremetal' | 'hetzner';
/**
* a list of debian packages to be installed
*/
requiredDebianPackages: string[];
/**
* a list of debian packages to be installed
*/
requiredDebianPackages: string[];
/**
* a list of SSH keys to deploy
*/
sshKeys: plugins.tsclass.network.ISshKey[];
/**
* a list of SSH keys to deploy
*/
sshKeys: plugins.tsclass.network.ISshKey[];
};
}

13
ts/data/service.ts Normal file
View File

@ -0,0 +1,13 @@
import type { IServiceRessources } from "./docker.js";
export interface IService {
name: string;
image: string;
ports: {
web: number;
custom?: { [domain: string]: string };
};
resources?: IServiceRessources;
domains: string[];
secrets: { [key: string]: string };
}