forked from TencentBlueKing/bk-nodeman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: 提供 Agent 包管理后台接口 (closed TencentBlueKing#1683)
- Loading branch information
Showing
10 changed files
with
707 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
apps/node_man/migrations/0078_gsepackagedesc_gsepackages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Generated by Django 3.2.4 on 2023-11-10 09:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('node_man', '0077_auto_20231029_1336'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GsePackageDesc', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), | ||
('created_by', models.CharField(default='', max_length=32, verbose_name='创建者')), | ||
('updated_time', models.DateTimeField(auto_now=True, null=True, verbose_name='更新时间')), | ||
('updated_by', models.CharField(blank=True, default='', max_length=32, verbose_name='修改者')), | ||
('project', models.CharField(db_index=True, max_length=32, unique=True, verbose_name='工程名')), | ||
('description', models.TextField(verbose_name='安装包描述')), | ||
('description_en', models.TextField(blank=True, null=True, verbose_name='英文插件描述')), | ||
('category', models.CharField(choices=[('official', 'official'), ('external', 'external'), ('scripts', 'scripts')], max_length=32, verbose_name='所属范围')), | ||
], | ||
options={ | ||
'verbose_name': 'Gse包描述(GsePackageDesc)', | ||
'verbose_name_plural': 'Gse包描述(GsePackageDesc)', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='GsePackages', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), | ||
('created_by', models.CharField(default='', max_length=32, verbose_name='创建者')), | ||
('updated_time', models.DateTimeField(auto_now=True, null=True, verbose_name='更新时间')), | ||
('updated_by', models.CharField(blank=True, default='', max_length=32, verbose_name='修改者')), | ||
('pkg_name', models.CharField(max_length=128, verbose_name='压缩包名')), | ||
('version', models.CharField(max_length=128, verbose_name='版本号')), | ||
('project', models.CharField(db_index=True, max_length=32, verbose_name='工程名')), | ||
('pkg_size', models.IntegerField(verbose_name='包大小')), | ||
('pkg_path', models.CharField(max_length=128, verbose_name='包路径')), | ||
('md5', models.CharField(max_length=32, verbose_name='md5值')), | ||
('location', models.CharField(max_length=512, verbose_name='安装包链接')), | ||
('os', models.CharField(choices=[('windows', 'windows'), ('linux', 'linux'), ('aix', 'aix'), ('solaris', 'solaris')], db_index=True, default='linux', max_length=32, verbose_name='系统类型')), | ||
('cpu_arch', models.CharField(choices=[('x86', 'x86'), ('x86_64', 'x86_64'), ('powerpc', 'powerpc'), ('aarch64', 'aarch64'), ('sparc', 'sparc')], db_index=True, default='x86_64', max_length=32, verbose_name='CPU类型')), | ||
('is_ready', models.BooleanField(default=True, verbose_name='插件是否可用')), | ||
('version_log', models.TextField(blank=True, null=True, verbose_name='版本日志')), | ||
('version_log_en', models.TextField(blank=True, null=True, verbose_name='英文版本日志')), | ||
], | ||
options={ | ||
'verbose_name': 'Gse包(GsePackages)', | ||
'verbose_name_plural': 'Gse包(GsePackages)', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.