From 0012db2b6fa34806e694022b140d6cb160e0488b Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 6 Feb 2024 12:32:52 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/data/cluster.ts | 4 ++-- ts/data/server.ts | 8 +++----- ts/requests/config.ts | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2ac627b..507ad07 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/interfaces', - version: '1.0.20', + version: '1.0.21', description: 'interfaces for working with containers' } diff --git a/ts/data/cluster.ts b/ts/data/cluster.ts index e1d9cb3..fd06ddf 100644 --- a/ts/data/cluster.ts +++ b/ts/data/cluster.ts @@ -1,5 +1,5 @@ import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js'; -import type { IServerConfig } from './server.js'; +import type { IServer } from './server.js'; export interface IClusterIdentifier { clusterName: string; @@ -27,7 +27,7 @@ export interface ICluster { /** * what servers are expected to be part of the cluster */ - servers: IServerConfig[]; + servers: IServer[]; /** * ACME info. This is used to get SSL certificates. diff --git a/ts/data/server.ts b/ts/data/server.ts index 7bf96b4..9f638cf 100644 --- a/ts/data/server.ts +++ b/ts/data/server.ts @@ -14,7 +14,7 @@ export interface IServerMetrics { }>; } -export interface IServerConfig { +export interface IServer { type: 'server'; /** @@ -25,12 +25,10 @@ export interface IServerConfig { /** * a list of SSH keys to deploy */ - sshKeys: IServezoneSshKey[]; - - dockerRegistryInfo: IDockerRegistryInfo; + sshKeys: ISshKey[]; } -export interface IServezoneSshKey { +export interface ISshKey { keyName: string; public: string; private?: string; diff --git a/ts/requests/config.ts b/ts/requests/config.ts index e679583..5c5db41 100644 --- a/ts/requests/config.ts +++ b/ts/requests/config.ts @@ -12,7 +12,7 @@ extends plugins.typedrequestInterfaces.implementsTR< clusterIdentifier: clusterInterfaces.IClusterIdentifier; }; response: { - configData: serverInterfaces.IServerConfig; + configData: serverInterfaces.IServer; }; }