[Cmii][ImageSync] - 优化处理逻辑

This commit is contained in:
zeaslity
2024-03-25 09:20:08 +08:00
committed by zeaslity
parent 46b9ba59e9
commit 2af05c903c
9 changed files with 51 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ const DirectPushDeployHarborHost = "36.134.71.138"
type ImageSyncEntity struct {
ProjectName string
ProjectVersion string
DirectHarborHost string
DirectHarborHost string //此参数决定是否能够直连目标主机,如果有则代表直连,可以直接推送景象
PushToDemoMinio bool
}
@@ -32,6 +32,7 @@ type ImageSyncResult struct {
AllCmiiImageNameList []string
}
// PullFromEntityAndSyncConditionally 根据ImageSyncEntity拉取特定的镜像然后上传到特定的目标机器
func (sync ImageSyncEntity) PullFromEntityAndSyncConditionally() (imageSyncResult ImageSyncResult) {
var realCmiiImageList []string