fix(core): update
This commit is contained in:
parent
701af797c2
commit
11cf620040
@ -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'
|
||||
}
|
||||
|
@ -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 };
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -17,7 +17,9 @@ export interface IServerMetrics {
|
||||
}
|
||||
|
||||
export interface IServer {
|
||||
type: 'server';
|
||||
id: string;
|
||||
data: {
|
||||
type: 'baremetal' | 'hetzner';
|
||||
|
||||
/**
|
||||
* a list of debian packages to be installed
|
||||
@ -28,4 +30,5 @@ export interface IServer {
|
||||
* a list of SSH keys to deploy
|
||||
*/
|
||||
sshKeys: plugins.tsclass.network.ISshKey[];
|
||||
};
|
||||
}
|
||||
|
13
ts/data/service.ts
Normal file
13
ts/data/service.ts
Normal 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 };
|
||||
}
|
Loading…
Reference in New Issue
Block a user