forked from nocalhost/nocalhost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.go
27 lines (22 loc) · 894 Bytes
/
base.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* This source code is licensed under the Apache License Version 2.0.
*/
package base
type DevModeAction struct {
ScalePatches []PatchItem `json:"scalePatches" yaml:"scalePatches"`
PodTemplatePath string `json:"podTemplatePath" yaml:"podTemplatePath"`
Create bool `json:"create" yaml:"create"`
}
type CrdDevModeAction struct {
CrdType string `json:"crdType" yaml:"crdType"`
DevModeAction *DevModeAction `json:"devModeAction" yaml:"devModeAction"`
}
type ConfigFile struct {
NhEsUrl string `json:"nhEsUrl" yaml:"nhEsUrl"`
CrdDevModeActions []CrdDevModeAction `json:"crdDevModeActions" yaml:"crdDevModeActions"`
}
type PatchItem struct {
Patch string `json:"patch" yaml:"patch"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}