fix(core): update

This commit is contained in:
Philipp Kunz 2024-01-24 01:35:26 +01:00
parent afc12c7bab
commit a4e9efe845
4 changed files with 95 additions and 2 deletions

View File

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

6
ts/data/env.ts Normal file
View File

@ -0,0 +1,6 @@
export interface IEnvBundle {
environment: string;
timeSensitive: boolean;
configKeyValueObject: {[key: string]: string};
}

View File

@ -1,6 +1,8 @@
export * from './cluster.js';
export * from './config.js';
export * from './env.js';
export * from './event.js';
export * from './secret.js'
export * from './status.js';
export * from './traffic.js';
export * from './version.js';
export * from './version.js';

85
ts/data/secret.ts Normal file
View File

@ -0,0 +1,85 @@
export interface ISecretGroup {
/**
* the insatnce id. This should be a random id, except for default
*/
id: string;
data: {
/**
* the key of the secretgroup like CI_RUNNER_TOKEN
*/
key: string;
/**
* the priority of the secretgroup
* will be used to determine which secretgroup will be used
* when there are multiple secretgroups with the same key
*/
priority?: number;
/**
* any tags that can be used to filter the secretgroup
* can be used for putting secrets into projects
*/
tags: {
key: string;
value: string;
}[];
/**
* the values for this secretGroup
*/
environments: {
[key: string]: {
value: string;
/**
* can be used to update the value
*/
updateToken?: string;
/**
* the linux timestamp of the last update
*/
lastUpdated: number;
history: {
timestamp: string;
value: string;
}[];
};
};
};
}
export interface IEnvBundle {
environment: string;
timeSensitive: boolean;
configKeyValueObject: {[key: string]: string};
}
export interface ISecretBundle {
id: string;
data: {
purpose: 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;
}>;
};
}