fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-06 12:32:52 +01:00
parent 02423c825c
commit 0012db2b6f
4 changed files with 7 additions and 9 deletions

View File

@ -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'
}

View File

@ -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.

View File

@ -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;

View File

@ -12,7 +12,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
clusterIdentifier: clusterInterfaces.IClusterIdentifier;
};
response: {
configData: serverInterfaces.IServerConfig;
configData: serverInterfaces.IServer;
};
}