fix(core): update

This commit is contained in:
Philipp Kunz 2024-06-10 00:48:44 +02:00
parent 9fb7f13bdd
commit d00bb5eaaa
6 changed files with 43 additions and 32 deletions

View File

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

View File

@ -7,7 +7,8 @@ export * from './docker.js';
export * from './env.js';
export * from './event.js';
export * from './image.js';
export * from './secret.js'
export * from './secretgroup.js';
export * from './secretgroup.js'
export * from './server.js';
export * from './service.js';
export * from './status.js';

34
ts/data/secrebundle.ts Normal file
View File

@ -0,0 +1,34 @@
export interface ISecretBundle {
id: string;
data: {
name: string;
description: string;
/**
* determines if the secret is a service or an external secret
* if external secret additional checks are put in place to protect the secret
*/
type: 'service' | 'external';
/**
* You can add specific secret groups using this
*/
includedSecretGroupIds: string[];
/**
* You can add specific tags using this
*/
includedTags: {
key: string;
value: string;
}[];
/**
* authrozations select a specific environment of a config bundle
*/
authorizations: Array<{
secretAccessKey: string;
environment: string;
}>;
};
}

View File

@ -52,32 +52,3 @@ export interface ISecretGroup {
};
};
}
export interface ISecretBundle {
id: string;
data: {
name: string;
description: string;
/**
* You can add specific secret groups using this
*/
includedSecretGroupIds: string[];
/**
* You can add specific tags using this
*/
includedTags: {
key: string;
value: string;
}[];
/**
* authrozations select a specific environment of a config bundle
*/
authorizations: Array<{
secretAccessKey: string;
environment: string;
}>;
};
}

View File

@ -2,7 +2,9 @@ import type { IServiceRessources } from "./docker.js";
export interface IService {
name: string;
image: string;
imageId: string;
scaleFactor: number;
balancingStrategy: 'round-robin' | 'least-connections';
ports: {
web: number;
custom?: { [domain: string]: string };

View File

@ -15,6 +15,9 @@ export interface IRequest_GetAllImages extends plugins.typedrequestInterfaces.im
};
}
/**
* get all kinds of image metadata
*/
export interface IRequest_GetImageMetadata extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_GetImageMetadata